Getting mutt to save messages to maildirs

Thomas Stivers stivers_t at tomass.dyndns.org
Tue Jul 19 08:32:44 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

On Tue, Jul 19, 2005 at 07:55:32 AM -0400, Janina Sajka wrote:
> The usual mutt meaning for the equals sign, according to the mutt
> reference manual, is as follows:

This is good information, but you left out the most important part of
the reference. The name of the variable.

6.3.55.  folder
> 
>    Type: path
>    Default: "~/Mail"
> 
>    Specifies the default location of your mailboxes. A `+' or `=' at the
> beginning of a pathname will be expanded to the value of this variable.
> Note that if
>    you change this variable from the default value you need to make sure
> that the assignment occurs before you use `+' or `=' for any other
> variables since
>    expansion takes place during the `set' command.

The upshot is that you should put a line like

set folder=~/Maildir/

as near the top of your .muttrc as you can so that it will be used
throughout. You will of course need to change Maildir to whatever the
name of your main mail folder is. It also may come in handy to set your
spoolfile to = as well if you use a maildir folder in your home
directory rather than a mailbox file in /var/mail/<username>. This will
make mutt open your maildir folder as the first one when you invoke it.

- -- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

Thomas Stivers	e-mail: stivers_t at tomass.dyndns.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC3PLs5JK61UXLur0RA90jAJ99FRqnLdZfuIiOWBJGxfzEE25KqgCfeezG
gMKuYgDJ9sk5DounlumyFFg=
=3mHd
-----END PGP SIGNATURE-----




More information about the Speakup mailing list