Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
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
intranet-core
Commits
8c636eeb
Commit
8c636eeb
authored
Apr 30, 2024
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosine #5733: CC in notification uses wrong substitution
parent
885d2727
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
member-notify.tcl
www/member-notify.tcl
+18
-12
No files found.
www/member-notify.tcl
View file @
8c636eeb
...
@@ -130,8 +130,8 @@ foreach oid $user_id_from_search {
...
@@ -130,8 +130,8 @@ foreach oid $user_id_from_search {
# Determine the sender address
# Determine the sender address
set
sender_email
[
im_parameter -package_id
[
ad_acs_kernel_id
]
SystemOwner
""
[
ad_system_owner
]
]
set
current_user_email
[
db_string sender_email
"select email from parties where party_id = :current_user_id"
]
catch
{
set
sender_email
[
db_string sender_email
"select email as sender_email from parties where party_id = :current_user_id"
-default
$sender
_email
]}
set
sender_email
$current
_user_email
# Trim the subject. Otherwise we'll get MIME-garbage
# Trim the subject. Otherwise we'll get MIME-garbage
set
subject
[
string
trim
$subject
]
set
subject
[
string
trim
$subject
]
...
@@ -223,16 +223,7 @@ if {[im_table_exists im_notes]} {
...
@@ -223,16 +223,7 @@ if {[im_table_exists im_notes]} {
}
}
set
email_list
[
db_list email_list
$email
_list_sql
]
set
email_list
[
db_list email_list
$email
_list_sql
]
if
{
""
==
$from
_email
}
{
set from_email
$current
_user_email
}
# Include a copy to myself?
if
{
""
!=
$send
_me_a_copy
}
{
lappend email_list
[
db_string user_email
"select email from parties where party_id = :current_user_id"
]
}
if
{
""
==
$from
_email
}
{
set from_email
[
db_string from_email
"select email from parties where party_id = :current_user_id"
]
}
# ---------------------------------------------------------------
# ---------------------------------------------------------------
...
@@ -316,6 +307,21 @@ foreach email $email_list {
...
@@ -316,6 +307,21 @@ foreach email $email_list {
lappend error_list
"<p>Error sending out mail to:
$email
</p><div><code>
[
ns_quotehtml
$errmsg
]
</code></div>"
lappend error_list
"<p>Error sending out mail to:
$email
</p><div><code>
[
ns_quotehtml
$errmsg
]
</code></div>"
}
}
if
{
""
!=
$send
_me_a_copy
}
{
if
{[
catch
{
acs_mail_lite::send
\
-send_immediately
\
-to_addr
$current
_user_email
\
-from_addr
$sender
_email
\
-subject
$subject
\
-body
$message
_subst
\
-file_ids
$attachment
_ci_id
}
errmsg
]}
{
ns_log Error
"member-notify: Error sending to
\"
$email
\"
:
$errmsg
"
lappend error_list
"<p>Error sending out mail to:
$email
</p><div><code>
[
ns_quotehtml
$errmsg
]
</code></div>"
}
}
if
{
$throttle
_seconds > 0
}
{
if
{
$throttle
_seconds > 0
}
{
im_exec sleep
$throttle
_seconds
im_exec sleep
$throttle
_seconds
}
}
...
...
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