On Wed, Mar 20, 2013 at 10:11:06AM -0500, David Champion wrote:
> * On 20 Mar 2013, Chris Green wrote: 
> > 
> > I suspect my MTA doesn't agree exactly with mutt about where the
> > 'message separator' is.
> 
> When your script delivers a message, does it append a message and then
> a blank line, or does it append a blank line and then a message?
> 
It appears to add a blank line and then the message.

Has the mutt handling of this changed in the last few versions?

The python way of doing this is correct according to the RFC as far as I
can tell, there *should* be a blank line between the end of a message
and the 'From ' starting the next message.  Thus the python library I'm
using does add this blank line.

However mutt detects this as an error and outputs the messsage about the
mailbox being modified.  

If, on the other hand, I append a message to my mbox file by hand and I
*don't* put a blank line in then mutt is quite happy. Thus mutt is quite
happy with the following in an mbox:-

    ...
    ...
    User-Agent: Mutt/1.5.21 (2010-09-15)
    Status: O
    Content-Length: 21
    Lines: 2

    Hello
    --
    Chris Green
    From ch...@zbmc.eu  Wed Mar 20 15:16:33 2013
    Return-Path: <ch...@zbmc.eu>
    X-Original-To: ch...@chris.zbmc.eu
    Delivered-To: ch...@chris.zbmc.eu
    Received: by chris.zbmc.eu (Postfix, from userid 1000)
            id 88E8C381B20; Wed, 20 Mar 2013 15:16:33 +0000 (GMT)
    Date: Wed, 20 Mar 2013 15:16:33 +0000
    From: Chris Green <ch...@isbd.co.uk>
    ...
    ...

but strictly this is wrong as there should be an empty line there.

-- 
Chris Green

Reply via email to