According to Cedric Duval on Mon, Aug 13, 2001 at 01:03:48PM +0200:
| Hi Eric,
| 
| * Eric Smith <[EMAIL PROTECTED]> [08/13/01 12:03]:
| > Is this possible to implement without pathcing the source?
| >
| > I mean, Instead of having to explicitly calling it with '$'
| 
| You just have to define some macros. For instance :
| 
| macro index d "<delete-message><sync-mailbox>" "delete and sync"
| macro pager d "<delete-message><sync-mailbox>" "delete and sync"
| 

Of course !

But slight problem, the sync-mailbox command does not work on my Mutt
1.2.5i in the pager - only in the index.  Can check this by going
exec sync-mailbox
sync-mailbox: no such command

And of course this don't win any prizes cause you dont get to read the mail!
macro index <return> "<display-message><exit><sync-mailbox>" "read the mail and sync"

reason for wanting this is that I have a kind of an xbiff running
every minute viz.

#!/bin/sh
response=`nfrm`;
if [ "$response" != 'You have no new mail.' ];then
  screen -X -S 4880.ENVELOPE echo "$response"
fi

very kewl if you are a screen user (IMHO).
So I need to do a manual resync to stop the flashing of the new mail.
I do not want to have to do that.

| > Whatever I do in mutt I would like my mailbox flags to be updated in
| > real time.
| 
| But doing this you'll lose the ability to change your mind and undo
| changes. Furthermore, for huge mailboxes (especially if you manipulate
| old mails in mbox format), syncing can take a lot of time.

ten we use folder-hook, I only need theis macro for my incoming
mailspool.

-- 
Eric Smith
Fruitcom.com Benelux
Wire phone: +31 20 681 6889
Wireless:   +31 617 232 304

Reply via email to