On Tue, Apr 04, 2000 at 09:35:49AM +0100, Darren Greaves ([EMAIL PROTECTED]) said:
> 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.

How about
mailboxes `find ~/Mail ! -name sent -print`

(or s/sent/outbox/ or wherever your outgoing mailbox is named)

Hmm...no, that doesn't work, mutt only looks at the first line.

[Goes off to play]
[Comes back]

Assuming you have gnu find:
mailboxes `find ~/Mail ! -name sent -type f -printf '%p ' | sed
  's?/home/jtoth/?=?g'`

seems to work.  :-)  Replace what obviously needs to be replaced, and
of course you can exclude as much as you like by adding additional

! -name "<whatever>"

parts, and of course even exclude wildcard expressions, and do regular
expression excluding with ! -regex <pattern>

HTH

-- 
Jim Toth
[EMAIL PROTECTED]
"Abraham Lincoln did not die in vain.  He died in Washington, DC."
--The Firesign Theatre

Reply via email to