Fourhundred Thecat wrote: > I am using mutt in 2 modes: > > 1) mutt -R -f folder > 2) mutt -f folder > > In case 1), pressing "q" should simply exit. This is read-only mode and > there are no messages to be deleted. > > In case 2), pressing "q" should exit while also automatically deleting > any messages marked for deletion. > > When I delete my custom macro, and revert "q" to its default action, > then I get this message when exiting from mutt (case 2): > > Purge 1 deleted message? ([yes]/no): > > When I create custom macro to sync automatically, I get the error on > read-only mutt, because it cannot be synced. > > So I need "q" that works in both cases.
You may want to look at the $delete option. It's a quad-option which defaults to ask-yes. http://www.mutt.org/doc/manual/#delete -- Todd