Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aurélien Vermylen
erp5
Commits
cabb7eae
Commit
cabb7eae
authored
Aug 30, 2011
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure we do not send mail to the same email address multiple time
parent
94f2c311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5/Document/EmailDocument.py
product/ERP5/Document/EmailDocument.py
+4
-4
No files found.
product/ERP5/Document/EmailDocument.py
View file @
cabb7eae
...
...
@@ -664,18 +664,18 @@ class EmailDocument(TextDocument):
additional_headers['
In
-
Reply
-
To
'] = destination_reference
# To (multiple)
to_url_list =
[]
to_url_list =
set()
if to_url is None:
for recipient in self.getDestinationValueList():
email = recipient.getDefaultEmailText()
if email:
to_url_list.a
ppen
d(formataddr((recipient.getTitle(), email)))
to_url_list.a
d
d(formataddr((recipient.getTitle(), email)))
else:
raise ValueError, '
Recipient
%
s
has
no
defined
email
' % recipient
if not to_url_list:
to_url_list.a
ppen
d(self.getRecipient())
to_url_list.a
d
d(self.getRecipient())
elif type(to_url) in types.StringTypes:
to_url_list.a
ppen
d(to_url)
to_url_list.a
d
d(to_url)
# Attachments
if attachment_list is None:
...
...
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