Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
140
Merge Requests
140
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
nexedi
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
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