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

Re: Setting Mutt exit code



On Sun, Sep 28, 2003 at 01:02:00PM +0200, Florian Weimer wrote:
> 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.

Well, then you must be doing something other than what you mentioned.
Doing what I said requires no temporary file.  It sources the script
output directly.

> > 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,
> depending on various criteria (mailbox name matches a regexp, mailbox
> contains flagged messages, unread mail).  Another mode invokes mutt
> repeatedly for different mailboxes, sorting the mailboxes by their
> priority.  This means that there is a single command "show me
> 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.

So, then, you just exit mutt when you're done.  I still see no need
for a temporary file.  But maybe I'm missing something...

-- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.
Replying to it will result in undeliverable mail.
Sorry for the inconvenience.  Thank the spammers.

Attachment: pgptcTUa9LUaM.pgp
Description: PGP signature