procmail
[Top] [All Lists]

back tick issue with .procmailrc

2008-02-22 15:36:10
I'm trying to set a environment variable in my .procmailrc file and it's
not resolving the command.

The following example for setting DAY does not work.


# .procmailrc
# routes incoming mail to appropriate mailboxes
SHELL=/bin/bash    # for other shells, this might need adjustment
PATH=/usr/bin:/usr/local/bin
MAILDIR=$MAIL   # all mailboxes are in mail var
DEFAULT=$MAIL
DAY = `date +%m%d%y`
LOGFILE     = $HOME/pm.log
LOGABSTRACT = "all"
VERBOSE     = "on"  


:0:
* ^(From|Cc|To).*gh.*illinois.*
ssbreport.$DAY


The file ssbreport.date just gets generated instead of the actual date.
I've also tried

DAY=|date +%m%d%y

to no avail.

The platform is RHEL3
____________________________________________________________
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>