> > 2.  Is it possible to write a single .muttrc that I can copy to
> > the three home directories that can determine the "folder" path
> > based on the current OS?  That is, the common mail folder is called
> > "/Volumes/Common/Mail" in OS X, "D:/Common/Mail" in Windows, and
> > "/Common/Mail" in Linux.  Or do I just have to have three separate
> > .muttrc files and manually coordinate them?  (I've never actually used
> > the Windows version of Mutt, so I'm guessing at the path format.)
> 
> Sure.  I've never used win32 mutt either, but presumably you can use it
> as part of a full mingw32/cygwin environment to get scripting tools.
> 
> Behold this command:
> source "~/bin/muttrc.sh |"

One can also use backtics in a muttrc to surround a snippet of shell
script, thereby avoiding the need for keeping another shell script file
laying round (in three places, no less):

source `some-conditional-here`

--Jack

Reply via email to