Support for format=flowed messages. (As generated by iPhone.)
| Project: | Mailhandler |
| Version: | 6.x-1.7 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Plain text email messages generated by most email clients have lines wrapped before the 80 column mark for standards-compliance. Different encoding methods may be used to perform this wrapping while still preserving enough information to reconstruct the original lines.
One such encoding standard, used by the iPhone and others, is format=flowed: http://www.ietf.org/rfc/rfc3676.txt
An example message:
Return-Path: <myaddress@example.com>
Received: from ?10.90.205.193? ([166.205.7.16])
by mx.google.com with ESMTPS id 20sm649597pxi.8.2009.09.16.09.31.28
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Wed, 16 Sep 2009 09:31:29 -0700 (PDT)
Message-Id: <71F201A1-430E-469D-8103-6296640DDA25@example.com>
From: Alex Markley <myaddress@example.com>
To: Alex Markley <myaddress@example.com>
Content-Type: text/plain;
charset=us-ascii;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
X-Mailer: iPhone Mail (7A400)
Mime-Version: 1.0 (iPhone Mail 7A400)
Subject: Stuff foo
Date: Wed, 16 Sep 2009 12:31:21 -0400
Here is a very long test line. Experimenting with iPhone email. Here
is a very long test line. Experimenting with iPhone email. Here is a
very long test line. Experimenting with iPhone email. Here is a very
long test line. Experimenting with iPhone email.
Foobar
--
Alex Markley / 740.927.3588Notice the format=flowed and the delsp=yes flags on the Content-Type. Those two flags together mean that any SPACE CR LF character sequences should be removed. (With no delsp flag or delsp=no, the SPACE CR LF character sequence should be replaced with a single space.) Notice also that the first three wrapped lines of the "very long test line" are trailed by two space characters. These wrapped lines are reconstructed appropriately by conforming mail clients.
For more information about the format=flowed parameters, please see the relevant RFC: http://www.ietf.org/rfc/rfc3676.txt
So, my question: Can MailHandler be modified to support format=flowed messages? Reconstructing wrapped lines is critical to me being able to post content from my iPhone. :)
Thanks for your time!
