Long subject corrupts both subject and message
Brought to you by:
sheda0
When a long subject is used, it spills into the message
body and corrupts both the subject and the body. This
was tested with MailMessage.Charset set, which
causes the subject to become very long because each
character is tranmitted as 3 characters plus a "charset"
header.
Logged In: YES
user_id=1148645
Hi,
Have a look at [ 1145368 ] Umlaut in subject causes a
corrupt mail, there is some code posted.
This modification fixes the problem I have and might be a
solution for your problem.
Regards
Thomas
Logged In: YES
user_id=1310825
Thanks, it did solve the problem (as well as the question
mark problem)
Logged In: YES
user_id=1370840
This is due to a non-compliance to RFC1521 and RFC1522.
First, the quoted-printable encoding is different from
RFC1521 when used in the headers, as stated in RFC1522
(spaces should be encoded as underscores, question marks and
underscores as =XX, and so on...).
Second, when there is a line feed in a header value (this is
the case for a long quoted-printable encoded subject), each
additional line should begin with a tab or a space (RFC
1521) to be differenciated from the folowing headers.
Fix these two bugs, and it'll be ok.