8 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] execute an autoreply ...
FromSent OnAttachments
Thierry BJan 23, 2005 4:11 pm 
Stefan HornburgJan 24, 2005 12:49 am 
Thierry BJan 24, 2005 1:10 am 
Rolan YangJan 24, 2005 6:55 am 
Thierry BJan 24, 2005 7:06 am 
Devin RubiaJan 24, 2005 8:37 am 
Thierry BJan 24, 2005 8:56 am 
Devin RubiaJan 24, 2005 11:53 am 
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] execute an autoreply script in maildroprcActions...
From:Thierry B (deb@bouhnik.biz)
Date:Jan 24, 2005 7:06:05 am
List:net.sourceforge.lists.courier-maildrop

Hello,

thanks, but I have aother problem. I'd like that when a mail is sent to te@linux.thierry.eu.org that he places it at the folder .Teil and that il executs my script, to send an autoreply to the sender. And in my configuration, he does only the first line of: if (/^To: te@linux.thierry.eu.org/) { exception { xfilter "/etc/autoreply.sh thie@autoreply.linux.thierry.eu.org $FROM" to "$HOME/$DEFAULT/.Teil/" } }

So he executes my autoreply script but he doesn't place the message in the good folder, and if I change the first an second line, he places in the good folder, but he never executes script.

Do you have an idea to have the both actions?

Thanks a lot.

This is my maildroprc.

if ( $SIZE < 26144 ) { exception { xfilter "/usr/bin/spamassassin --prefspath=$HOME/$DEFAULT/.spamassassin/user_prefs" } }

if (/^X-Spam-Flag: *YES/) { exception { to "$HOME/$DEFAULT/.Spam/" } } if (/^To: te@linux.thierry.eu.org/) { exception { xfilter "/etc/autoreply.sh thie@autoreply.linux.thierry.eu.org $FROM" to "$HOME/$DEFAULT/.Teil/" } } else { exception { to "$HOME/$DEFAULT" } }

Rolan Yang wrote:

About 2 weeks ago, I posted my mailfilter script which does autoreply using mailbot. You can see it at the bottom of the courier-imap archives at http://tinyurl.com/49vl4

I put my spam filtering and antivirus scripts in the systemwide /etc/maildrop/maildroprc. It looks like this:

if ($SIZE < 262144) { exception { xfilter "/usr/bin/spamc -u $LOGNAME" ANOMY=/usr/local/anomy xfilter "/usr/local/f-prot/tools/scan-mail.pl" } if (/was a virus\/worm\/trojan. It was removed./:b) { logfile "/var/log/maildrop.log" log "VIRUS DETECTED" to "/dev/null" } }

Thierry B wrote:

Hello, I'd like that my maildroprc, executes a shell script when a message is sent to te@linux.thierry.eu.org

But it doesn't work.

Could you tell me the good syntax?

Thanks.

this is my maildroprc:

SENDMAIL="/usr/sbin/sendmail -oi -f $FROM"

if ( $SIZE < 26144 ) { exception { xfilter "/usr/bin/spamassassin --prefspath=$HOME/$DEFAULT/.spamassassin/user_prefs" } }

if (/^X-Spam-Flag: *YES/) { exception { to "$HOME/$DEFAULT/.Spam/" } } if (/^To: te@linux.thierry.eu.org/) { exception { to "$HOME/$DEFAULT/.Teil/" './autoreply.sh thie@localhost.net $FROM' } } else { exception { to "$HOME/$DEFAULT" } }