Hi,

On Thu, 31 Jan 2002 Philip Mak spewed into the ether:
> On Thu, Jan 31, 2002 at 07:25:41PM +0100, Adam Byrtek wrote:
> > On Thu, Jan 31, 2002 at 01:03:32PM -0500, Philip Mak wrote:
> > > So, it makes sense for me to keep my inbox clean so that it only
> > > contains messages that I still have to "do something" about. Any
> > > messages that I have finished, I move them into my "done" folder.
> > 
> > folder-hook mbox "macro index d '<save-message>=archive\n' 'archive message'"
> > folder-hook mbox "macro pager d '<save-message>=archive\n' 'archive message'"
> > 
> > But I'm not sure is this what are you looking for. If you want to, you
> > could add 'synchronize' at the end of this macro, but I prefer not to
> > - I tend to delete sometimes some mail by mistake.
> 
> That's not quite what I wanted to do. I wouldn't want to save *every*
> message to the archive (some messages are not useful to keep around,
> e.g. spam etc.).

Well, you could use the same idea, but just map it to a different key,
then. ie.

macro index <some-unbound-key> '<save-message>=archive\n<sync-mailbox>'

Alternatively, you could map some commonly used key (like <space> or
'r'eply), to sync the mailbox, before performing their default
operation. ie :

macro index <space> '<sync-mailbox><display-message>'

Both these are untested, but this problem seems like something that can
be achieved using the already existing macros/hooks available in mutt.
IMHO, you don't need to implement a patch.

pv.
-- 
Prahlad Vaidyanathan <[EMAIL PROTECTED]>

One way to stop a runaway horse is to bet on him.

Reply via email to