On 20.03.13 14:11, Chris Green wrote:
> What I want to know is:-
> 
>     Is it possible for a message to be delivered into an mbox that mutt
>     is looking at without provoking the ""Mailbox was externally
>     modified" message?

Yes. Here the message is "New mail in this mailbox."
(Confirmed by sending myself an email while in !)

>     If the above is possible then what does the delivering MTA have to
>     do so that the delivered message is 'N' and all others are left
>     unchanged?

I'd grab the source. The message is output by curs_main.c, on detecting
(check == M_REOPENED). There are assignments to "check" in mx.c and
curs_main.c, and mbox_check_mailbox() in mbox.c tells (in comments) that
our guess at the meaning of M_REOPENED is correct. It's 2 a.m. here,
so I'll leave it to you to figure out how to make the python behave so
that it detects M_NEW_MAIL instead. (Is it respecting the file locking
in mx_lock_file(0 in mx.c?) I see that function does a sleep(). I should
do that too.

Erik

-- 
manual, n.:                                                                   
A unit of documentation. There are always three or more on a given item.       
One is on the shelf; someone has the others.                                  
The information you need is in the others.               - Ray Simard

Reply via email to