procmail
[Top] [All Lists]

Re: mail directories

2002-02-13 01:49:34
At 17:22 2002-02-12 -0500, Niko Hiebaum wrote:
My question is whether by doing this I define this new Maildir for all
further recipes or not? Would I have to repeat the standard maildir
afterwards?

Yes, you're redefining the maildir.


e.g.
MAILDIR=$HOME/mail              <-- standard mail directory

MAILDIR=$HOME/mail/special      <-- special mail directory *only* for

If you're defining it to be a KNOWN subdir of the standard maildir, and esp if you're doing it just for one recipe, then just use:

:0
* somecondition
special/somemailbox


Or, you can certainly do this:

SAVEMAILDIR=$MAILDIR
MAILDIR=$HOME/mail/special

...(do stuff)...

MAILDIR=$SAVEMAILDIR


This same approach works for all sorts of things - temporarily changing the VERBOSE level, changing logfiles, etc.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>