Anton --

...and then Anton Graham said...
% 
% There seems to be some "funkiness" in the handling of
% multipart/alternative messages.  In particular, the attachments
% which are Content-Type: text/plain and Content-Transfer-Encoding:
% quoted-printable.  These frequently come from Outlook (Express) users.

... and that's because they are most frequently the ones who need the
most help.  Even though it's marked text/plain, that doesn't mean that
LookOut! users aren't depending on their mailer to autoformat their lines
based on fluctuating window width and such...


% 
% This is how mutt displays a single line of the message:
% 
% i'm using linux mandrake about 3 month it like me, the firts time install LM in
% +a machine with Win98, now i want to install it with WinNT,

Right; that '+' char is to let you know that mutt had to break the line
for display but it's actually connected to the apparent one above.  See
sections 6.3.80 and 6.3.181 of the manual.


% 
% 
% This is how the same line looks in the message:
% 
% i'm using linux mandrake about 3 month it like me, the firts time =
% install LM in a machine with Win98, now i want to install it with WinNT,

Yep; that's the Q-P encoding.


% 
% The '=' sign is a sort of "soft-return" that gets dropped in the
% decoding process, resulting in abnormally long lines.

Well, yes and no; it indicates that the mailer which sent it had to break
the line there because it wanted to try to keep it at a reasonable
length, and mutt [properly] reassembles the lines into one long one.


% 
% At present, I am dealing with the problem via procmail (see below),
% but I guess my question is, "Shouldn't these soft returns be preserved
% by the receiving client (i.e. mutt)?"

The answer is that they are :-)


% 
% # Force multipart/alternative to appropriate column widths
% :0
% * ^Content-Type.*multipart/alternative
% {
%         :0 fbBw
%         * ^Content-Transfer-Encoding:.*quoted-printable
%         | sed -e "s/=$//g"

Are you sure that that shouldn't be "s/= $//" (and you certainly don't
need the /g if you're targeting the end of the line!)?  When I have q-p
messages whose lines have been broken, that's what I get...


% }
% 
% -- 
%        _
%      _|_|_
%       ( )   *    Anton Graham
%       /v\  /     <[EMAIL PROTECTED]>
%     /(   )X
%      (m_m)       GPG ID: 18F78541
% Penguin Powered!

HTH & HAND


:-D
-- 
David T-G                       * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]      * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/        Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*

PGP signature

Reply via email to