Skip to content

Commit a3aa99b

Browse files
author
wyrie
committed
Implemented: FS#1003 - Autoresponder: Start and end date (Server)
1 parent fcc6984 commit a3aa99b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

server/conf/autoresponder.master

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
`test -f {vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.msg && exit 1 || exit 0`
1+
`test -f /var/vmail/mailfilters/$HOST/$USER/.vacation.msg && exit 1 || exit 0`
22
if ($RETURNCODE==1)
33
{
44
{
55
if (!/^List-Unsubscribe:.*/:h )
66
{
77
if (!/^X-Spam-Flag: YES/:h )
88
{
9-
NOW=time
10-
if ({start_date} lt $NOW && {end_date} gt $NOW)
11-
{
12-
RESPOND="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.msg"
13-
RESPONDDB="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.lst"
14-
15-
# The following must be one contiguous line
16-
cc "| mailbot -t $RESPOND -d $RESPONDDB -D 1 \
17-
-A 'From: $RECIPIENT' -s 'Auto Response: from $RECIPIENT' \
18-
/usr/sbin/sendmail -t -f ''"
19-
}
9+
NOW=time
10+
if ({start_date} lt $NOW && {end_date} gt $NOW)
11+
{
12+
RESPOND="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.msg"
13+
RESPONDDB="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.lst"
14+
15+
# The following must be one contiguous line
16+
cc "| mailbot -t $RESPOND -d $RESPONDDB -D 1 \
17+
-A 'From: $RECIPIENT' -s 'Auto Response: from $RECIPIENT' \
18+
/usr/sbin/sendmail -t -f ''"
19+
}
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)