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:Devin Rubia (dev@thezone.net)
Date:Jan 24, 2005 8:37:56 am
List:net.sourceforge.lists.courier-maildrop

On Mon, Jan 24, 2005 at 04:05:22PM +0100, Thierry B wrote:

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/" } }

xfilter is not the command you want to be using, it takes the message body and filters it through the program specified and the standard output of that program becomes the new message body. If your script doesn't have any standard out then your message is gone.

What you probably want to do is:

if (/^To: te@linux.thierry.eu.org/) { cc "| /etc/autoreply.sh thie@autoreply.linux.thierry.eu.org $FROM" to "$HOME/$DEFAULT/.Teil/" }

However, there's no need to have created your own autoreply script. Check out 'man mailbot'.