Skip to content

Instantly share code, notes, and snippets.

@craue
Created November 24, 2011 12:11
Show Gist options
  • Save craue/1391209 to your computer and use it in GitHub Desktop.
Save craue/1391209 to your computer and use it in GitHub Desktop.
body for an email which will be stripped when sent with SwiftMailer
Mail will be stripped due to the length of THIS line and the dot.
Apparently, this line will not be sent due to the exact length of the previous line, the trailing dot and two newlines, no matter which kind of newlines (Windows/UNIX) will be used.
@craue
Copy link
Author

craue commented Nov 24, 2011

This one (using a different MTA) is correct:

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Mail will be stripped due to the length of THIS line and the dot=
..

Apparently, this line will be cut off due to the exact length=
 of the previous line, the trailing dot, and two newlines.

in detail:

61 6E 64 20 74 68 65 20 64 6F 74   and the dot
3D 0D 0A 2E 2E 0D 0A 0D 0A         =........
41 70 70 61 72 65 6E 74 6C 79      Apparently

@craue
Copy link
Author

craue commented Nov 24, 2011

Failing case:

0x0070:                           743d 0d0a 2e0d            t=....
0x0080:  0a0d 0a41 616d 656e 737a 7573 6174 7a20  ...A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment