* On 31 Aug 2010, fe...@crowfix.com wrote: > > So here is my 'mudd' command which is used as > > mailboxes `~/bin/mudd`
Tangent: I don't have this exact need, but I have similar requirements for building dynamic configuration. A trick I use is to create a script whose output is a (partial) mutt configuration file. In your case, the script could be a slight modification of 'mudd' which outputs: mailboxes =folder1 mailboxes =folder2 mailboxes =folderN ... then I source it from .muttrc as: source "~/bin/myscript |" The "|" at the end makes mutt execute the script and interpret its output as if it appeared right there in .muttrc. It's very much like using backquotes, but you can make the script much simpler because any config command can be emitted at any time, with less need for tracking state information or compiling arrays. -- David Champion * d...@uchicago.edu * IT Services * University of Chicago