Paul --

...and then Paul Brannan said...
% On Mon, Dec 03, 2001 at 02:59:31PM -0500, David T-G wrote:
% > ...and then Paul Brannan said...
% > %   macro index $ ':set delete=ask-yes<enter><sync-mailbox>:set delete=no<enter>'
% > % 
% > % All I get is a beep, and delete remains set to "ask-yes".
% > 
% > That makes sense.  Your macro sets it to ask-yes and then tries to sync
% > the mailbox, which will generate a y/n prompt.  Instead of passing mutt
% > an expected value, however, you try to next give it a colon, which will
% > of course cause an error.
% 
% I was thinking about this last night, and it seems that this problem
% would easily be solved if mutt had some sort of scripting.  Does it have
% this capability in 1.3.x?

In this case, scripting isn't necessary; if you want to delete and insist
on ask-yes, then just feed in an extra "y" in your macro.

Scripting has been discussed much but ain't here yet; perhaps in 1.5 but
probably in 1.7 (figuring that there will be a 1.6 before a 2.0).

Nicolas has posted a tag-conditional patch that will let you do a tagged
operation only when there are tagged messages, which looks to be quite
useful in macros.  I haven't tried it yet, but it will go into my 1.3.24*
build cocktail as soon as I get a chance to put that all together (hi,
Cedric!).


% 
% Paul


:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg21031/pgp00000.pgp
Description: PGP signature

Reply via email to