On Sun, May 29, 2016 at 11:21 AM, Simon Ruderich <si...@ruderich.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On Sun, May 29, 2016 at 02:33:14AM -0400, Xu Wang wrote:
>> Dear all,
>>
>> When I send a message, it is appended to a big file called ~/sent. I
>> would like to get the last email in that big file. I'm trying to
>> understand the format. I thought I could just get everything starting
>> with From:. But if there is a line in the body that starts with
>> 'From:", the F is not escaped like I have seen it before. So my regex
>> would match that.
>>
>> Why is
>> From:
>> not escaped for the ~/sent folder and how can I change that?
>
> Hello,
>
> ~/sent is (per default) a mbox mailbox. See [1] for general
> documentation.
>
> You can't use a regex to parse it. Instead use one of the
> available mbox parsers out there, e.g [2].
>
> [1]: https://en.wikipedia.org/wiki/Mbox
> [2]: 
> http://search.cpan.org/~dcoppit/Mail-Mbox-MessageParser-1.5105/lib/Mail/Mbox/MessageParser.pm

Interesting! So the term is "From munge". So I guess the format of
mbox that mutt uses does not from munge. it must be then than that the
format mboxcl2 is being used, which does not from munge and relies on
Content-Length:. Can anyone confirm? I searched for mboxcl2 in man
muttrc but no instance.

Kind regards,

Xu

Reply via email to