[ingo] Fw: Vacation not working (ingo h4 2.0.6)
Pro Green European
pro_green_european at yahoo.com
Tue Nov 29 07:11:19 UTC 2011
It seems that it is the date checking that doesn't work as intended. When I don't specify a start date and end date for the vacation script, it works.
Procmail recipe bug?
/PGE
----- Forwarded Message -----
From: Pro Green European <pro_green_european at yahoo.com>
To: "ingo at lists.horde.org" <ingo at lists.horde.org>
Cc:
Sent: Monday, November 28, 2011 11:37 AM
Subject: [ingo] Vacation not working (ingo h4 2.0.6)
Hi.
What do I have to do in order to get the procmail vacation recipe working?
This is an example of the generated .procmailrc recipe:
# procmail script generated by Ingo (November 28, 2011, 11:13 am)
##### Vacation #####
:0
{
:0
* ^TO_user.name at dom.tld
{
FILEDATE=`test -f ${VACATION_DIR:-.}/'.vacation.user.name at dom.tld' && ls -lcn --time-style=+%s ${VACATION_DIR:-.}/'.vacation.user.name at dom.tld' | awk '{ print $6 + (604800) }'`
DATE=`date +%s`
DUMMY=`test -f ${VACATION_DIR:-.}/'.vacation.user.name at dom.tld' && test $FILEDATE -le $DATE && rm ${VACATION_DIR:-.}/'.vacation.user.name at dom.tld'`
START=1321826400
END=1322604000
:0 h
SUBJECT=| formail -xSubject:
:0 Whc: ${VACATION_DIR:-.}/vacation.lock
* ? test $DATE -gt $START && test $END -gt $DATE
{
:0 Wh
* ^TO_user.name at dom.tld
* !^X-Loop: user.name at dom.tld
* !^X-Spam-Flag: YES
* !^FROM_DAEMON
| formail -rD 8192 ${VACATION_DIR:-.}/.vacation.user.name at dom.tld
:0 eh
| (formail -rI"Precedence: junk" \
-a"From: <user.name at dom.tld>" \
-A"X-Loop: user.name at dom.tld" \
-i"Subject: =?utf-8?b?UMOl?= semester (Re: $SUBJECT)" \
-i"Content-Transfer-Encoding: quoted-printable" \
-i"Content-Type: text/plain; charset=UTF-8" ; \
echo -e "P=C3=A5 semester" \
) | $SENDMAIL -fuser.name at dom.tld -oi -t
}
}
}
No vacation response is sent out.
Thankful for feedback and help :)
Regards,
/PGE
--
Ingo mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
More information about the ingo
mailing list