Re: Execute commands sequentially
Hi Feifei!
On Thu, 09 Nov 2006, Feifei Jia wrote:
> I want to know how to run serial commands in Mutt. Say, I set a macro
> like "macro index X "|/usr/bin/sa-learn --spam"", that is, use X key to tell
> the Spamassassin to "learn the message as spam". And, I want to add a delete
> command at the end to delete this message. Could anybody tell me how to
> do that?
Append <enter><delete-message> to your macro.
But you might want to add a set wait_key setting. I have this in my
macros.conf:
macro pager,index <F5> ":set wait_key=no<enter>|/usr/bin/sa-learn --spam
--single<enter>\
<save-message>~/mail/spam<enter><enter>:set wait_key=yes<enter>" 'learn message
as spam and save it in ~/mail/spam'
regards,
Christian
--
Real Programs don't use shared text. Otherwise, how can they use functions
for scratch space after they are finished calling them?