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
Labels
Merge Requests
139
Merge Requests
139
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
fdb0f6c9
Commit
fdb0f6c9
authored
Apr 14, 2021
by
Kazuhiko Shiozaki
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! mixin/mail_message: more robust algorythm to choose the first preferred text format part.
parent
57bb2836
Pipeline
#14884
passed with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
product/ERP5/bootstrap/erp5_core/MixinTemplateItem/portal_components/mixin.erp5.MailMessageMixin.py
...lateItem/portal_components/mixin.erp5.MailMessageMixin.py
+0
-1
No files found.
product/ERP5/bootstrap/erp5_core/MixinTemplateItem/portal_components/mixin.erp5.MailMessageMixin.py
View file @
fdb0f6c9
...
...
@@ -92,7 +92,6 @@ class MailMessageMixin:
if
part
.
is_multipart
():
if
part
.
get_content_subtype
()
in
(
'alternative'
,
'mixed'
,
'related'
):
# Try to get the favourite text format defined on preference
favourite_part
=
None
for
subpart
in
part
.
get_payload
():
if
subpart
.
get_content_maintype
()
==
'text'
and
not
subpart
.
get_filename
():
if
subpart
.
get_content_type
()
==
preferred_content_type
:
...
...
Kazuhiko Shiozaki
@kazuhiko
mentioned in commit
6511eab7
·
Apr 14, 2021
mentioned in commit
6511eab7
mentioned in commit 6511eab74cf42d13b2a7df93639416be14580b33
Toggle commit 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