Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mail-tracking
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
mail-tracking
Commits
a4696dd0
Commit
a4696dd0
authored
Sep 05, 2014
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Mail Tracking:
Disable callback, because it creates strange errors
parent
0b29be8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
61 deletions
+78
-61
mail-tracking-callback-procs.tcl
tcl/mail-tracking-callback-procs.tcl
+78
-61
No files found.
tcl/mail-tracking-callback-procs.tcl
View file @
a4696dd0
...
...
@@ -10,72 +10,89 @@ ad_library {
@cvs-id $Id$
}
ad_proc -public -callback acs_mail_lite::complex_send -impl mail_tracking
{
{
-package_id:required
}
{
-from_party_id:required
}
{
-from_addr
""
}
{
-to_party_ids
""
}
{
-cc_party_ids
""
}
{
-bcc_party_ids
""
}
{
-to_addr
""
}
{
-cc_addr
""
}
{
-bcc_addr
""
}
{
-body
""
}
{
-message_id:required
}
{
-subject
""
}
{
-object_id
""
}
{
-file_ids
""
}
}
{
create a new entry in the mail tracking table
}
{
# We need to put lindex here since the value from
# the swithc converts this
"element element"
to this
#
"{element element}"
set file_ids
[
string
trim
$file
_ids
"{}"
]
foreach optional_param
{
cc_party_ids bcc_party_ids to_addr cc_addr bcc_addr body subject object_id file_ids to_party_ids
}
{
if
{
!
[
info
exists
$optional
_param
]}
{
set
$optional
_param
{}
}
}
set log_id
[
mail_tracking::new -package_id
$package
_id
\
-sender_id
$from
_party_id
\
-from_addr
$from
_addr
\
-recipient_ids
$to
_party_ids
\
-cc_ids
$cc
_party_ids
\
-bcc_ids
$bcc
_party_ids
\
-to_addr
$to
_addr
\
-cc_addr
$cc
_addr
\
-bcc_addr
$bcc
_addr
\
-body
$body
\
-message_id
$message
_id
\
-subject
$subject
\
-file_ids
$file
_ids
\
-object_id
$object
_id
]
# fraber 140906: Unable to fix error:
# This callback produces strange errors that "from_party_id" is
# not defined. Now just disabling, because mail-tracking doesn't
# seem to be used anymore.
#
# ad_proc -public -callback acs_mail_lite::complex_send -impl mail_tracking {
# {-package_id:required
}
# {-from_party_id:required
}
# {-from_addr ""
}
# {-to_party_ids ""
}
# {-cc_party_ids ""
}
# {-bcc_party_ids ""
}
# {-to_addr ""
}
# {-cc_addr ""
}
# {-bcc_addr ""
}
# {-body ""
}
# {-message_id:required
}
# {-subject ""
}
# {-object_id ""
}
# {-file_ids ""
}
#
}
{
# create a new entry in the mail tracking table
#
}
{
# # We need to put lindex here since the value from
# # the swithc converts this "element element" to this
# # "{element element
}
"
# set file_ids
[
string
trim
$file
_ids
"{}"
]
#
# foreach optional_param {cc_party_ids bcc_party_ids to_addr cc_addr bcc_addr body subject object_id file_ids to_party_ids} {
# if {!
[
info
exists
$optional
_param
]
} {
# set
$optional
_param {}
# }
# }
#
# set log_id
[
mail_tracking::new -package_id
$package
_id
\
# -sender_id
$from
_party_id
\
# -from_addr
$from
_addr
\
# -recipient_ids
$to
_party_ids
\
# -cc_ids
$cc
_party_ids
\
# -bcc_ids
$bcc
_party_ids
\
# -to_addr
$to
_addr
\
# -cc_addr
$cc
_addr
\
# -bcc_addr
$bcc
_addr
\
# -body
$body
\
# -message_id
$message
_id
\
# -subject
$subject
\
# -file_ids
$file
_ids
\
# -object_id
$object
_id
]
#
# }
}
ad_proc -public -callback acs_mail_lite::send -impl mail_tracking
{
{
-package_id:required
}
{
-from_party_id:required
}
{
-to_party_id:required
}
{
-body:required
}
{
-message_id:required
}
{
-subject:required
}
}
{
create a new entry in the mail tracking table
}
{
ns_log Notice
"acs_mail_lite::send -impl mail_tracking -package_id
$package
_id -from_party_id
$from
_party_id -to_party_id
$to
_party_id -message_id
$message
_id -subject
$subject
"
# fraber 140906: Unable to fix error:
# This callback produces strange errors that "
from_party_id
" is
# not defined. Now just disabling, because mail-tracking doesn't
# seem to be used anymore.
#
# ad_proc -public -callback acs_mail_lite::send -impl mail_tracking {
# {-package_id:required}
# {-from_party_id:required}
# {-to_party_id:required}
# {-body:required}
# {-message_id:required}
# {-subject:required}
# } {
# create a new entry in the mail tracking table
# } {
# if {
[
info
exists from_party_id
]
} { return }
# if {
[
info
exists to_party_id
]
} { return }
#
# ns_log Notice "
acs_mail_lite::send -impl mail_tracking -package_id
$package
_id -from_party_id
$from
_party_id -to_party_id
$to
_party_id -message_id
$message
_id -subject
$subject
"
#
# set log_id
[
mail_tracking::new -package_id
$package
_id
\
# -sender_id
$from
_party_id
\
# -recipient_ids
$to
_party_id
\
# -body
$body
\
# -message_id
$message
_id
\
# -subject
$subject
]
#
# }
set log_id
[
mail_tracking::new -package_id
$package
_id
\
-sender_id
$from
_party_id
\
-recipient_ids
$to
_party_id
\
-body
$body
\
-message_id
$message
_id
\
-subject
$subject
]
}
ad_proc -public -callback fs::file_delete -impl mail-tracking {
{-package_id:required}
...
...
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