* W. Michael Petullo on Saturday, August 15, 2015 at 11:24:39 -0400
> I would like to both clear the new flag on and save a message in one
> keystroke. I have tried the following:
> 
> macro index S "Wns=spam-samples\n\n"  "Save to spam-samples"
> 
> But "Wn" causes the current message to advance; thus mutt clears the
> new flag on message n, but saves message n + 1.
> 
> I cannot find any documentation which describes how to avoid this jump
> after invoking "Wn". Can anyone help?

Look for the 'resolve' option in the manual.

So something like (untested) unsets $resolve temporarily:

macro index S "\
<enter-command> set my_resolve=\$resolve resolve=no<enter>\
<clear-flag>N<save-message>=spam-samples<enter><enter>\
<enter-command> set resolve=\$my_resolve<enter>" "Save to spam-samples"

FWIW, I prefer not to use keyboard shortcuts in macros. It allows
me to change key bindings without worrying about updating macros.

Christian

-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions

Reply via email to