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

Re: Setting Mutt exit code



Florian --

...and then Florian Weimer said...
% 
% On Fri, Sep 26, 2003 at 04:56:41PM +0900, Derek Martin wrote:
% 
% > So, why not just write a script which spits out the appropriate mutt
% > syntax to name those mailboxes, like this:
% 
% This requires the use of a temporary file.

How about a *really* temporary flag file?


% 
% > I'm not really clear on what sort of problem you're trying to solve,
% > so I'm not sure how helpful this would be...
% 
% I've got a command which can quickly list my 400+ maildir folders,
...
% high-priority mail".  But my tool doesn't really know when to stop, so
% I have to tell it at some point that I don't consider the following
% mailboxes high-priority right now.

How about a mutt macro ,S which shell-escapes to touch /tmp/mutt-stop (or
even with hostname & $$ on it) which your looping script can see and use
as a trigger to quit (cleaning up the stop file as it does, of course)?


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) davidtg@xxxxxxxxxxxxxxx * society and not sufficient moral courage.
(work) davidtgwork@xxxxxxxxxxxxxxx  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgpqpTr4hPBFd.pgp
Description: PGP signature