Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-mail-lite
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-mail-lite
Commits
8f3642f7
Commit
8f3642f7
authored
Sep 28, 2009
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added upward compatibility to OpenACS 5.4
parent
5f3b5f2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
acs-mail-lite-procs.tcl
tcl/acs-mail-lite-procs.tcl
+17
-0
No files found.
tcl/acs-mail-lite-procs.tcl
View file @
8f3642f7
...
...
@@ -213,6 +213,20 @@ namespace eval acs_mail_lite {
return 1
}
ad_proc -public load_mails
{
-queue_dir:required
}
{
Upward compatibility to OpenACS 5.4
@author frank.bergmann@project-open.com
@option queue_dir The location of the qmail mail queue in the file-system.
}
{
if
{
""
==
$queue
_dir
}
{
set queue_dir
"
[
acs_root_dir
]
/Maildir"
}
return
[
load_mail_dir -queue_dir
$queue
_dir
]
}
ad_proc -private load_mail_dir
{
-queue_dir:required
}
{
...
...
@@ -297,6 +311,9 @@ namespace eval acs_mail_lite {
ns_log Notice
"acs-mail-lite: To:
$to
"
util_unlist
[
parse_bounce_address -bounce_address
$to
]
user_id package_id signature
# ad_return_complaint 1
"<pre>
\n
user_id=
$user
_id
\n
to=
$to
\n
from=
$from
\n
</pre>"
# im_nagios_process_alert -from:required -to:required -alert_type:required -host:required -service:required -status:required -bodies:required
# If no user_id found or signature invalid, ignore message
if
{[
empty_string_p
$user
_id
]
|| !
[
valid_signature -signature
$signature
-msg
$body
]}
{
if
{[
empty_string_p
$user
_id
]}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment