6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/18/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4110] Vacation Procmail problem
*
Your Email Address
*
Spam protection
Enter the letters below:
._.. .. . ..__ | \ /| | |[ __ _|_ \/ |/\|\__|[_./
Comment
> The solution I propose is to change the line: > > DUMMY=`test $FILEDATE -le $DATE && rm -f 'vacation.user@domain.tld'` > > by > > DUMMY=`test ${FILEDATE:-0} -le $DATE && rm -f 'vacation.user@domain.tld'` > > > >> When the .procmailrc script is generated it does not consider the > >> first case when the file vacation.user@domain.tld it does not exists. > >> The generated script looks like: > >> :0 > >> { > >> FILEDATE=`ls -lcn --time-style=+%s 'vacation.user@domain.tld' | awk > >> '{ print $6 + (604800) }'` > >> DATE=`date +%s` > >> DUMMY=`test $FILEDATE -le $DATE && rm -f 'vacation.user@domain.tld'` > >> > >> :0 Whc: vacation.lock > >> * $^To:.*user@domain.tld > >> * !^X-Loop: user@domain.tld > >> * !^FROM_DAEMON > >> | formail -rD 8192 vacation.user@domain.tld > >> :0 ehc > >> | (formail -rI"Precedence: junk" \ > >> -A"X-Loop: user@domain.tld" \ > >> -i"Subject: Vacation test" ; \ > >> echo "I'm not at office" \ > >> ) | $SENDMAIL -oi -t > >> } > >> > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers