<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 11 Apr 2017, at 13:36, Philip Paeps wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">MailMate seems to be better at preserving trailing whitespace in replies than in new messages, if that helps.</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto">I think this is because MailMate only strips “extraneous” whitespace from non-quoted text.</p>

<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">For instance: I typed this message in Vim but the only way to get the flowed format was to remove hard line breaks in MailMate.<br>
<br>
Is there a way to configure MailMate not to strip trailing whitespace from buffers messages edited externally?  Or perhaps to debug its behaviour when it gets the rewrapping wrong?</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto">I haven't changed anything related to <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">format=flowed</code> and external editors. The problem is that MailMate does not expect you to return <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">format=flowed</code> text. MailMate only considers <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">format=flowed</code> to be a technique used to “encode” text before sending. And received <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">format=flowed</code> text is “decoded” before being used in the text editor (both built-in and external). In other words, you should never hard-wrap the lines of a paragraph -- or if you do then your text editor must unwrap them before saving.</p>

<p dir="auto">You might have noticed that MailMate seems to use <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">format=flowed</code> for quoted text in its internal editor, but this is a <em>hack</em> in order to be able to prefix <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">></code> visually. If you resize the window then these lines are actually reflowed. (Maybe some day I'll find a better way to do that.) It looks particularly bad if using a proportional font when editing, but I do recommend fixed width fonts in the Composer (for readability while editing). (The editor font is not used for outgoing emails.)</p>

<p dir="auto">-- <br>
Benny</p>
</div>
</div>
</body>
</html>