5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Autoreply recepy conv...
FromSent OnAttachments
Dmitri OrleanskiDec 28, 2004 10:30 pm 
Tony EarnshawDec 29, 2004 6:16 am 
Rolan YangJan 9, 2005 8:25 am 
Stefan HornburgJan 9, 2005 11:50 am 
Dmitri OrleanskiJan 9, 2005 12:27 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Autoreply recepy conversion from procmail to maildropActions...
From:Stefan Hornburg (rac@linuxia.de)
Date:Jan 9, 2005 11:50:44 am
List:net.sourceforge.lists.courier-maildrop

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