[issue25553] SMTP.data(msg) function may cause the last CRLF of msg lost if msg is quoted-printable encoding.

2015-11-06 Thread Deli Zhang

Deli Zhang added the comment:

I can understand you, while could you please consider below fact:
Once our SMTP server module smtpd.py receives the sample mail, it will remove 
the end-of-data sequence, that makes the "=" become the last char of mail data. 
I think it's inconsistent to our SMTP client module smtplib.py.

If we can just add "." following mail data like postfix, which is 
influential amd authoritative in SMTP field, that will make things simple and 
will not make any trouble in reality situation.

I just advise this, if you think no need then I can compromise.
Thanks.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25553] SMTP.data(msg) function may cause the last CRLF of msg lost if msg is quoted-printable encoding.

2015-11-05 Thread R. David Murray

R. David Murray added the comment:

RFC 2812 says:

  Note that the first  of this terminating sequence is also the  
that ends the final line of the data (message text)

So, smtplib is correct.  If you have a server that is not respecting this, then 
that server is out of compliance and there isn't anything we can do about it.

However, I don't think that is your problem.  = at the end of a line actually 
represents a "soft carriage return", which means one that is *eliminated* in 
the decoded output.  If you will read section 6.7 of rfc 2045, specifically 
notes (2) and (3) in the second block of numbered paragraphs, you will see that 
an 'ultimate' = (an = at the end of an encoded block, with or without a CRLF 
after it), such as you have in your sample, is illegal.  Further, the 
recommended recovery action if one is seen while decoding is to leave the = in 
the decoded output, just as you are observing happening.

So, there is no bug here except in your message :)

--
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25553] SMTP.data(msg) function may cause the last CRLF of msg lost if msg is quoted-printable encoding.

2015-11-04 Thread Deli Zhang

Deli Zhang added the comment:

Correct the action of appending the end-of-data sequence "."

--
Added file: http://bugs.python.org/file40945/smtplib.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com