Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Carlos Ramos Carreño
erp5
Commits
8171ca3c
Commit
8171ca3c
authored
13 years ago
by
Aurel
Browse files
Options
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
:
...
...
This diff is collapsed.
Click to expand it.
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