[ingo] ingo vacation procmail script problem

Mike Meklenschek mmek at interconnet.com
Wed Mar 27 02:13:13 UTC 2013


Hello everyone,

Can someone please help, I've been trying to get the Horde / ingo / 
procmail vacation script working.

I have most of the script working but the following section never executes:

  27: * ? test $DATE -gt $START && test $END -gt $DATE
  28:     {
  29:       :0 Wh
  30:       * ^TO_maildev at mail.ca
  31:       * !^X-Loop: maildev at mail.ca
  32:       * !^X-Spam-Flag: YES
  33:       * !^FROM_DAEMON
  34:       | formail -rD 8192 ${VACATION_DIR:-.}/.vacation.maildev at mail.ca
  35:       :0 eh
  36:       | (formail -rI"Precedence: junk" \
  37:        -a"From: <maildev at mail.ca>" \
  38:        -A"X-Loop: maildev at mail.ca" \
  39:        -i"Subject: Out of Office (Re: $SUBJECT)" ; \
  40:        echo -e "I will be out of the office between March 25th & March 29th.\r\n\r\nThank you.\r\n\r\nMike" \
  41:       ) | $SENDMAIL -fmaildev at inetmail.ca -oi -t
  42:     }

Here is my output form my LOG file:

procmail: Assigning "SENDMAIL=/usr/sbin/sendmail"
procmail: Match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)maildev at mail.ca"
procmail: Executing "test -f ${VACATION_DIR:-.}/'.vacation.maildev at mail.ca' && ls -lcn --time-style=+%s ${VACATION_DIR:-.}/'.vacation.maildev at mail.ca' | awk '{ print $6 + (604800) }'"
procmail: Assigning "FILEDATE="
procmail: Executing "date,+%s"
procmail: Assigning "DATE=1364349173"
procmail: Executing "test -f ${VACATION_DIR:-.}/'.vacation.maildev at mail.ca' && test $FILEDATE -le $DATE && rm ${VACATION_DIR:-.}/'.vacation.maildev at mail.ca'"
procmail: Assigning "DUMMY="
procmail: Assigning "START=1364169600"
procmail: Assigning "END=1364515200"
procmail: Executing "formail,-xSubject:"
procmail: Assigning "SUBJECT="
procmail: Executing " test $DATE -gt $START && test $END -gt $DATE"
procmail: Match on " test $DATE -gt $START && test $END -gt $DATE"
procmail: Extraneous deliver-head flag ignored
procmail: Locking "/share/home/vpopmail/domains/mail.ca/maildev/vacation.lock"
procmail: Forking "procmail"
procmail: [31117] Tue Mar 26 21:52:53 2013
procmail: Lost ".procmailrc"
procmail: Program failure (66) of "procmail"
procmail: Unlocking "/share/home/vpopmail/domains/mail.ca/maildev/vacation.lock"
procmail: No match on "^X-Spam-Status: Yes.*"
procmail: Assigning "LASTFOLDER=/share/home/vpopmail/domains/mail.ca/maildev/Maildir/new/1364349173.31105"


Is there anyone that can help.

Thanks.

Mike




More information about the ingo mailing list