On Wed, Feb 04, 2004 at 06:10:40PM -0800, Stefan Baums wrote:
> So basically my question is: How can I get Mutt to automatically
> resynchronise in-memory mailbox and mailbox file whenever the
> newness status of a message in that folder changes?

Add this to your .muttrc:

    message-hook ~N 'exec sync-mailbox'

When you display any message, mutt will check to see if the message is
marked new; if so, it runs sync-mailbox, which is usually bound to the
'$' key.

I would find this setup unpleasant for two reasons: (1) it's <twitch>
inefficient because of the unnecessary, automatic disk activity it calls
for, and (2) it's <twitch> non-orthogonal, i.e., it feels untidy for
reading a new message to have the side effect of syncing your mailbox,
too. But if it neither of these things bugs you, then so be it.  :-)

-- 
Gregory K. Johnson


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to