<<< Date Index >>>     <<< Thread Index >>>

Re: Commands for deleted purge, move read messages



On 25 Jan 2008 11:24 -0500, by rvandegrift@xxxxxxxxxxxxxx (Ross Vandegrift):
> macro index     $       <sync-mailbox>c!<enter>

You might want to try something like this:

macro index $ '<enter-command>set delete=yes 
move=yes<enter><sync-mailbox><change-folder>^<enter><enter-command>set 
move=ask-yes delete=ask-yes<enter>'

It all goes on one line in your .muttrc (in case it wraps) and adjust
as desired at the end.

The "^" means "current mailbox", so if you use this macro in a mailbox
other than your inbox, you don't get thrown out of it.

The one downside of this that I can think of is that it repositions
the current message indicator as the mailbox is reloaded, but that
seems like a relatively small trade-off.

-- 
Michael Kjörling .. michael@xxxxxxxxxxx .. http://michael.kjorling.se
* ..... No bird soars too high if he soars with his own wings ..... *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x(758F8749)BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *

Attachment: pgpLWsoZD5L1k.pgp
Description: PGP signature