Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(932)

Issue 12927043: Multipart mail support (plain and html) in sendmail() (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by ana.balica
Modified:
10 years, 8 months ago
Reviewers:
waldi
Visibility:
Public.

Description

The function doesn't break previous usages of sending plain text mail. In case we need to send a multipart/alternative mail with plain and html contents, we set the argument html= to html data.

Patch Set 1 #

Total comments: 7

Patch Set 2 : Check 'if html' - assume it can't be an empty string #

Patch Set 3 : Remove the replacement to CRLF #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -6 lines) Patch
M MoinMoin/mail/sendmail.py View 1 2 4 chunks +20 lines, -6 lines 0 comments Download

Messages

Total messages: 3
waldi
https://codereview.appspot.com/12927043/diff/1/MoinMoin/mail/sendmail.py File MoinMoin/mail/sendmail.py (right): https://codereview.appspot.com/12927043/diff/1/MoinMoin/mail/sendmail.py#newcode114 MoinMoin/mail/sendmail.py:114: text_msg = Message() I'm not sure if Message and ...
10 years, 9 months ago (2013-08-14 13:00:00 UTC) #1
ana.balica
https://codereview.appspot.com/12927043/diff/1/MoinMoin/mail/sendmail.py File MoinMoin/mail/sendmail.py (right): https://codereview.appspot.com/12927043/diff/1/MoinMoin/mail/sendmail.py#newcode114 MoinMoin/mail/sendmail.py:114: text_msg = Message() On 2013/08/14 13:00:00, waldi wrote: > ...
10 years, 9 months ago (2013-08-14 13:24:15 UTC) #2
ana.balica
10 years, 9 months ago (2013-08-14 13:39:10 UTC) #3
https://codereview.appspot.com/12927043/diff/1/MoinMoin/mail/sendmail.py
File MoinMoin/mail/sendmail.py (right):

https://codereview.appspot.com/12927043/diff/1/MoinMoin/mail/sendmail.py#newc...
MoinMoin/mail/sendmail.py:131: html = html.encode(CHARSET)
On 2013/08/14 13:00:00, waldi wrote:
> Please change this to always utf-8 in a different change-set.

I think i am missing something.
Are you suggesting to remove this line from the cr and then commit
html.encode('utf-8') to a different change-set?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b