procmail
[Top] [All Lists]

Re: Matching variables

2006-07-27 07:43:28
On Thu, Jul 27, 2006 at 07:07:26AM -0600, Google Kreme wrote:

I haven't been able to sandbox test this, as I can't seem to pass
both a -a arg and a -m rcfile to procmail

% formail -s procmail -m test.rc -a vonage < vonage &

gives me: procmail: Assigning "LASTFOLDER=/-a"

Well, you don't need to use -m, you know.
Here are the differences with and without it:

    4:31pm [~/Mail] 542[0]> procmail -m LOGFILE=procmail-m LOG='`env`' \
                            DEFAULT=/dev/null VERBOSE=y /dev/null < /dev/null
   
    4:31pm [~/Mail] 543[0]> procmail LOGFILE=procmail-no_m LOG='`env`' \
                            DEFAULT=/dev/null VERBOSE=y /dev/null < /dev/null
   
    4:31pm [~/Mail] 544[0]> diff procmail-*
   6a7
   > ORGMAIL=/net/u/1/d/dman/.maildir/./
   17c18
   < LOGFILE=procmail-mprocmail: [26934] Thu Jul 27 16:30:36 2006
   ---
   > LOGFILE=procmail-no_mprocmail: [10831] Thu Jul 27 16:31:08 2006

In other words, the only real difference is the existence of ORGMAIL
without the -m.

Using -m causes the referenced paths to be relative from the current dir
instead of from $HOME.  But you can use full paths to get around that.

Dallman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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