Re: macro for mailman moderation?
=- William Yardley wrote on Tue 25.Jul'06 at 14:28:31 -0700 -=
> > macro index M ":set editor=~/bin/mutt_mailman_approve.pl<enter> \
> > <view-attachments><last-entry><search-reverse>message/rfc822<enter> \
> > <reply><send-message>:set editor=\"vim +'/^$/+2'\"<enter><exit>"
>
> Couple questions:
>
> 1) When (accidentally) running on a message that is NOT a
> mailman confirm message, and which has only one MIME part, this
> macro fails (you end up getting "Save to file: <exit>"
>
> Any way around this?
1. use <enter-command> instead of ":".
2. don't use SPACE between >< , whatever SPACE does for you.
3. debug the fail case by starting with only the part up to 1st
<enter>, then step-by-step expand it with 1 more <> at a time, but
without sending <enter> so you see where the macro ends, i.e. why
it fails.
When you know that, finding workarounds should be easier.
(at 1st glance I don't see why it would offer a "save" dialog)
> 2) My "quit" feature (from the script above) doesn't quite work.
This is quite not enough to analyze it further. More context!
--
© Rado S. -- You must provide YOUR effort for your goal!
Even if it seems insignificant, in fact EVERY effort counts
for a shared task, at least to show your deserving attitude.