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