Try the following:
mailboxes `echo ~/Mail/*`
Note the quotes are backticks, key above the TAB key on a PC keyboard.

That will list all the mailboxes in the folder you specify.
It has the following limitations:
Does not recurse into subdirectories.
Lists your outbox (should you have one).  This is annoying as mutt tells
you that you have new mail in your outbox whenever you send mail.

Due to the above, I have written a Perl script that recurses into
subdirectories and allows you to filter out mailboxes you don't want to
see.

Should I post a copy of the script to the list?  It's 87 lines.

I have only written it a few days ago, so it probably needs a bit of testing
by others.


On Tue, Apr 04, 2000 at 10:29:40AM +0300, Leonid Mamtchenkov wrote:
> I am using procmail to filter my mail into several mailboxes.  The problem
> is that when I add a new rule to my .procmailrc I have to also change my
> .muttrc to include a new mailbox.  Assuming that all my mailboxes are in
> the same directory, is there any way to automatically generate a list of
> my mailboxes?  Something like:

-- 
"They that can give up liberty to obtain a little temporary safety deserve
neither liberty nor safety." -Benjamin Franklin

Darren Greaves
[EMAIL PROTECTED]
http://krapplets.org/

Reply via email to