procmail
[Top] [All Lists]

Re: strange error in my procmailrc

2015-03-23 15:04:03
* @lbutlr wrote on Mon, 23 Mar 2015, at 11:22 (-0600):

User me(_at_)mail(_dot_)covisp(_dot_)net has a .procmailrc, processing...
date: illegal time format
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
            [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]

None of the other accounts with .procmailrcs log this error,
but when I look in my .procmailrc for date:

$ grep date /home/me/.procmailrc
DATE=`date '+%d-%b-%Y'`
MDATE=`date '+%Y-%m'`
YDATE=`date '%Y'`

Try

YDATE=`date +'%Y'`

LONGDATE=`date "+%y-%b-%d %I:%M:%S %z"`
LOG="`date`${NL}Checking Spam Status... "
  LOG="done. `date`$NL"
  LOG="Delivered `date`$NL"
LOG="Delivered `date`$NL”

None of these seem like they should be throwing any sort of
error.  They all execute fine from the command line and date is
in /bin/ so I don’t think it could be a path problem. Also,
there are not errors logged to my procmailk log file, only to
the global log file/

The error message was clear: "illegal time format".

Regards,
Mathias

-- 
CAcert Assurer - See http://www.CAcert.org for details or ask me
GnuPG/OpenPGP: B100 5DC4 9686 BE64 87E9 0E22 44C3 983F A762 9DE8

Attachment: pgpQvoOOsqnaM.pgp
Description: PGP signature

____________________________________________________________
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>