Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
a3aa99b8
Commit
a3aa99b8
authored
Dec 17, 2009
by
wyrie
Browse files
Implemented: FS#1003 - Autoresponder: Start and end date (Server)
parent
fcc69847
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/conf/autoresponder.master
View file @
a3aa99b8
`test -f
{vmail_mailbox_base}
/mailfilters/$HOST/$USER/.vacation.msg && exit 1 || exit 0`
`test -f
/var/vmail
/mailfilters/$HOST/$USER/.vacation.msg && exit 1 || exit 0`
if ($RETURNCODE==1)
{
{
...
...
@@ -6,17 +6,17 @@ if ($RETURNCODE==1)
{
if (!/^X-Spam-Flag: YES/:h )
{
NOW=time
if ({start_date} lt $NOW && {end_date} gt $NOW)
{
RESPOND="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.msg"
RESPONDDB="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.lst"
# The following must be one contiguous line
cc "| mailbot -t $RESPOND -d $RESPONDDB -D 1 \
-A 'From: $RECIPIENT' -s 'Auto Response: from $RECIPIENT' \
/usr/sbin/sendmail -t -f ''"
}
NOW=time
if ({start_date} lt $NOW && {end_date} gt $NOW)
{
RESPOND="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.msg"
RESPONDDB="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.lst"
# The following must be one contiguous line
cc "| mailbot -t $RESPOND -d $RESPONDDB -D 1 \
-A 'From: $RECIPIENT' -s 'Auto Response: from $RECIPIENT' \
/usr/sbin/sendmail -t -f ''"
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment