On Wed, Oct 19, 2016 at 04:12:54PM -0400, Scott Kostyshak wrote:
> On Wed, Oct 19, 2016 at 07:03:32PM +0200, Enrico Forestieri wrote:
> 
> > This is because mutt takes them to be separate emails placed somewhere
> > else in the list of emails and I have to search for them or edit the
> > mailbox file to add a ">" just before "From" in order to actually see
> > them as attachments.
> 
> I wonder why all MUA's don't automatically escape the "From".

I think they do, but only when it is in the email body, otherwise they
would change the attachment, which is no go. Here is how an email from
JMarc looks like:

==========================================
...
JMarc

--------------83A8A64D719F76B5A07C9640
Content-Type: text/x-patch;
 name="0001-When-breaking-an-empty-paragraph-reduces-depth-set-l.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0001-When-breaking-an-empty-paragraph-reduces-depth-set-l.pa";
 filename*1="tch"

From 43658068801ad9772728973103414e81373e5a75 Mon Sep 17 00:00:00 2001
From: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date: Thu, 13 Oct 2016 20:33:57 +0200
Subject: [PATCH] When breaking an empty paragraph reduces depth, set layout
 too
...
==========================================

As you can see, the line "From 4365..." is the start of the attachment,
but all lines starting with "From " are, by the default, the start of
a new email in the mailbox format.

Instead, here is an email from you:

==========================================
...
Scott

--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; 
filename="0001-autotools-remove-duplicate-check-for-NLS.patch"
Content-Transfer-Encoding: quoted-printable

=46rom 6bfb47eadad68faa8be86506d56e888735f2c7c5 Mon Sep 17 00:00:00 2001
=46rom: Scott Kostyshak <skost...@lyx.org>
Date: Fri, 20 Nov 2015 22:15:34 -0500
Subject: [PATCH] autotools: remove duplicate check for NLS
...
==========================================

Here the "From " line is encoded as "=46rom " and then later decoded
when displayed on screen. In this case you used quoted-printable, but
also base64 would do. No problem in this case with the mailbox format.

> Note that I don't have to do any manual configuration for JMarc's
> patches to show up in mutt, but I think this is due to different
> settings for storing messages (e.g. $mbox_type).

I guess you use the maildir format.

> P.S. By the way, the following is an exciting project to follow:
> https://github.com/neomutt/neomutt

Interesting. When NeoLyX? ;-)

-- 
Enrico

Reply via email to