Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-mail
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
Commits
67a35bd0
Commit
67a35bd0
authored
Feb 06, 2006
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- modified member-notify to handle attachments
parent
ba836940
Pipeline
#77
failed with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
138 additions
and
142 deletions
+138
-142
acs-mail-create.sql
sql/postgresql/acs-mail-create.sql
+5
-5
acs-mail-procs-postgresql.xql
tcl/acs-mail-procs-postgresql.xql
+10
-10
acs-mail-procs.tcl
tcl/acs-mail-procs.tcl
+123
-127
No files found.
sql/postgresql/acs-mail-create.sql
View file @
67a35bd0
tcl/acs-mail-procs-postgresql.xql
View file @
67a35bd0
...
...
@@ -167,7 +167,7 @@ select acs_mail_body__new (
:header_to, -- header_to
:content_item_id, -- content_item_id
'acs_mail_body', -- object_type
now()
,
-- creation_date
now()
::date,
-- creation_date
:creation_user, -- creation_user
:creation_ip, -- creation_ip
null -- context_id
...
...
tcl/acs-mail-procs.tcl
View file @
67a35bd0
...
...
@@ -198,6 +198,7 @@ ad_proc -private acs_mail_encode_content {
ns_log Debug
"acs-mail: encode: starting
$content
_item_id"
# What sort of content do we have?
if !
[
acs_mail_multipart_p
$content
_item_id
]
{
ns_log Debug
"acs-mail: encode: one part
$content
_item_id"
# Easy as pie.
# Let's get the data.
...
...
@@ -210,7 +211,8 @@ ad_proc -private acs_mail_encode_content {
]
set storage_type
[
db_string get_storage_type
"
select storage_type from cr_items
select storage_type
from cr_items
where item_id = :content_item_id
"
]
...
...
@@ -221,18 +223,7 @@ ad_proc -private acs_mail_encode_content {
}]
{
if
[
string
equal
$storage
_type text
]
{
ns_log Debug
"acs-mail: encode: one part hit
$content
_item_id"
# vinodk: no need for this, since we're checking
# storage_type
#
# We win! Hopefully. Check if there are 8bit characters/data.
# HT NL CR SP-~ The full range of ASCII with spaces but no
# control characters.
#if !
[
regexp
"
\[
^
\u0009\u000A\u000D\u0020
-
\u007E\]
"
$content
]
{
# ns_log Debug
"acs-mail: encode: good code
$content
_item_id"
# # We're still okay. Use it!
return
[
list
$v
_content_type
$content
]
#
}
#ns_log
"Notice"
"acs-mail: encode: bad code
$content
_item_id"
}
else
{
# this content is in the file system or a blob
ns_log Debug
"acs-mail: encode: binary content
$content
_item_id"
...
...
@@ -266,7 +257,10 @@ ad_proc -private acs_mail_encode_content {
return
[
list
$v
_content_type
$encoded
_content
]
}
}
}
else
{
# This is a multipart item.
# Harder. Oops.
ns_log Debug
"acs-mail: encode: multipart
$content
_item_id"
set boundary
"=-=-="
...
...
@@ -277,8 +271,7 @@ ad_proc -private acs_mail_encode_content {
from acs_mail_multipart_parts
where multipart_id = :content_item_id
order by sequence_number
}
]
}]
if !
[
empty_string_p
$multipart
_list
]
{
foreach multipart_item
$multipart
_list
{
...
...
@@ -304,7 +297,9 @@ ad_proc -private acs_mail_encode_content {
}
lappend contents
[
list
$mime
_disposition
$content
]
}
}
else
{
# Defaults
return
{
"text/plain; charset=us-ascii"
...
...
@@ -405,6 +400,7 @@ ad_proc -private acs_mail_process_queue {
}
{
set to_send
[
acs_mail_body_to_output_format -link_id
$message
_id
]
set to_send_2
[
list
$envelope
_to
$envelope
_from
[
lindex
$to
_send 2
]
[
lindex
$to
_send 3
]
[
lindex
$to
_send 4
]]
ns_log notice
"acs_mail_process_queue: to_send_2=
$to
_send_2"
if
[
catch
{
eval ns_sendmail
$to
_send_2
...
...
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