On Sun, 09 Jan 2005 11:25:42 -0500
Rolan Yang <rol...@omnistep.com> wrote:
Dmitri Orleanski wrote:
Hi,
Can somebody help me to convert autoreply from the procmail to the
mailfilter?
Here is my little autoreply recipe which uses mailbot (included with the
courier-imap package).
I added a few lines which prevent autoreplying to spam marked by
spamassassin and also an extra line to prevent mailing lists autoreplies.
The -D parameter prevents duplicate autoresponses from being sent to the
same individual for a period of x days (here it is set to 1 day)
I am using this in a completely virtual user hosted environment. A
squirrelmail module add or removes this to ".mailfilter" located in the
users home directory. If anyone has suggestions on improving this feel
free to email me.
`test -f vacation.msg && exit 1 || exit 0`
if ($RETURNCODE==1)
{
{
if (!/^List-Unsubscribe:.*/:h )
{
if (!/^X-Spam-Flag: YES/:h )
{
cc "| mailbot -d vacation.db -D 1 -t
vacation.msg -A 'From: your...@domain.com' /usr/sbin/sendmail -f ''"
}
}
}
}
Additionally, I excluded the following headers from autoreplies, because
they are used by mailing lists as well:
/^List-Id:/ || /^Precedence: list/
Bye
Racke