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 8:56:01 am
List:net.sourceforge.lists.courier-maildrop

Thanks a lot. It works!

But I do"t understand something.

With the pipe, it means that my script will take in input "cc", but I don't understand why it works, because I thaught cc took a mail and send it. So I think the pipe in maildrop, is not the same meaning that the pipe in bash no?

So, I suppose cc is used only to tell maildrop to execute my script and after to o the rule "to".

Is it exact?

Thanks. Bye

Devin Rubia wrote:

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'.