[Tickets #4110] Vacation Procmail problem

bugs@bugs.horde.org bugs at bugs.horde.org
Mon Jul 3 11:46:52 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4110
-----------------------------------------------------------------------
 Ticket             | 4110
 Updated By         | car at cespi.unlp.edu.ar
 Summary            | Vacation Procmail problem
 Queue              | Ingo
 Version            | 1.1.1
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


car at cespi.unlp.edu.ar (2006-07-03 11:46) wrote:

The solution I propose is to change the line:
 DUMMY=`test $FILEDATE -le $DATE && rm -f 'vacation.user at domain.tld'`
by
 DUMMY=`test ${FILEDATE:-0} -le $DATE && rm -f
'vacation.user at domain.tld'`

> When the .procmailrc script is generated it does not consider the 
> first case when the file vacation.user at domain.tld it does not exists. 
> The generated script looks like:
> :0
> {
>   FILEDATE=`ls -lcn --time-style=+%s 'vacation.user at domain.tld' | awk 
> '{ print $6 + (604800) }'`
>   DATE=`date +%s`
>   DUMMY=`test $FILEDATE -le $DATE && rm -f 'vacation.user at domain.tld'`
>
>   :0 Whc: vacation.lock
>   * $^To:.*user at domain.tld
>   * !^X-Loop: user at domain.tld
>   * !^FROM_DAEMON
>   | formail -rD 8192 vacation.user at domain.tld
>     :0 ehc
>     | (formail -rI"Precedence: junk" \
>        -A"X-Loop: user at domain.tld" \
>        -i"Subject: Vacation test" ; \
>        echo "I'm not at office" \
>       ) | $SENDMAIL -oi -t
> }
>





More information about the bugs mailing list