On Tue, Jul 21, 2009 at 05:55:36PM +0100, Christian Ebert wrote: > * lee on Monday, July 20, 2009 at 22:28:25 -0600 > > On Mon, Jul 20, 2009 at 10:11:15PM -0600, lee wrote: > >> Here's the program. Let me know how you like it :) > > Nice.
I put a better version on http://sourceforge.net/projects/mutt-mb/ :) > <snip> > > > // it's a maildir > > printf("mailboxes = %s\n", this); > > Wouldn't it be easier to just print out a list of mailboxes? Not if you want to create a file to source or to put the lines into your ~/.muttrc. > a) how do you use it in muttrc (without awk, maybe, or most > certainly I'm being dense)? Not at all --- I quickly found that I didn't want to use a file but use it directly. I changed it to support different output formats: mailboxes, just a list and a single line. > mailboxes = `mutt-mb ~/Mail` > > would be the easiest, imho. You can do that with the new version: unmailboxes * mailboxes = `mutt-mb -line ~/Mail` > b) Mutt might be a tiny bit faster as you only issue 1 command. Possible --- but it depends on what's in the disk cache and/or on how fast your disks are, i. e. it might be a lot faster to read one file and use many mailboxes commands than it is to run only one command that has to scan through your mail storage. Since the new version supports both ways, everyone can use what they like better or is faster. One thing not supported is using relative paths. It can be done, but I don't know how important that is.