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
Mukul
erp5
Commits
8171ca3c
Commit
8171ca3c
authored
Sep 02, 2011
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
follow of commit
cabb7eae
check must be done on email address part only, not the formatted address
parent
79f3b8bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
product/ERP5/Document/EmailDocument.py
product/ERP5/Document/EmailDocument.py
+4
-1
No files found.
product/ERP5/Document/EmailDocument.py
View file @
8171ca3c
...
...
@@ -665,11 +665,14 @@ class EmailDocument(TextDocument):
# To (multiple)
to_url_list = set()
to_email_list = []
if to_url is None:
for recipient in self.getDestinationValueList():
email = recipient.getDefaultEmailText()
if email:
to_url_list.add(formataddr((recipient.getTitle(), email)))
if email not in to_email_list:
to_email_list.append(email)
to_url_list.add(formataddr((recipient.getTitle(), email)))
else:
raise ValueError, '
Recipient
%
s
has
no
defined
email
' % recipient
if not to_url_list:
...
...
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