On Fri, Aug 20, 1999 at 01:27:27PM +0200, Roberto Suarez Soto wrote:
> On Aug/19/1999, Gerald Oskoboiny wrote:
> > You can get around this by using:
> >     mailboxes `find ~/mail -type f -print`
> 
>       Doesn't work here :-) Mutt only treats as mailbox the first item in
> the list. So, if ~/mail had the folders "folder1", "folder2", "folder3", the
> above command would just list "folder1" as a mailbox.
> 
>       And I don't know how to fix it, if you were wondering O:-) What's
> the similar thing that you say you use?

Oops! This is what I'm using:

    mailboxes `echo ~/mail/* | fmt -1 | grep -v /outbox$ | fmt -9999`

Using echo instead of find assumes that everything in ~/mail is a
mailbox (no subdirectories within it), which it is for me.

I use the fmt -1 to put each mailbox on a single line so I can
grep -v for /outbox$ , then fmt -9999 to put them all back on a
single line afterwards.

So if you use this instead:

    mailboxes `find ~/mail -type f -print | fmt -9999`

it should work. (or the tr ... echo solution already posted
should work fine, too.)

Note that this fmt -9999 will break if the total bytecount of
the names of your mailboxes is greater than 9999. I initially
tried using something larger like 99999 but found that the fmt
from gnu textutils v1.22 is broken:

    devo: gerald> echo asdf | fmt -99999
                  [ no output ]
    devo: gerald> fmt --version
    fmt (GNU textutils) 1.22

(hmm, I see there's a new textutils available now, they might've
fixed this in the meantime:
ftp://prep.ai.mit.edu/pub/gnu/textutils/textutils-2.0.tar.gz )

-- 
Gerald Oskoboiny <[EMAIL PROTECTED]>
http://impressive.net/people/gerald/

Reply via email to