On Wed, 17 Jul 2002, Matthias Wulkow wrote:
Hi,
in the past few days I had trouble using procmail to automatically reply to
specific email. But at least the message
went to the assigned user.
Now that I finally worked it out that the message is replied, it doesn't
reach the user anymore. What am I doing wrong?
Can't seem to find the mistake.
Here is the output of the last procmail log:
procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)ftp-admin"
procmail: Match on "^Subject:.*ftp-liste"
procmail: Couldn't determine implicit lockfile from " sudo
/usr/sbin/ftp-mail-text.cfg > /etc/ftp-mail-text.txt"
procmail: Locking ".lock"
procmail: Executing " sudo /usr/sbin/ftp-mail-text.cfg >
/etc/ftp-mail-text.txt"
procmail: [26643] Wed Jul 17 14:57:27 2002
procmail: Assigning "LASTFOLDER= sudo /usr/sbin/ftp-mail-text.cfg >
/etc/ftp-mail-text.txt"
procmail: Unlocking ".lock"
procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)ftp-admin"
procmail: Match on "^Subject:.*ftp-liste"
procmail: Executing " ( formail -r -A "X-Loop:
ftp-admin(_at_)mydomain(_dot_)net" -I "From:
ftp-admin(_at_)mydomain(_dot_)net" ; cat
/etc/ftp-mail-text.txt ) | $SENDMAIL -oi -t"
procmail: Assigning "LASTFOLDER= ( formail -r -A "X-Loop:
ftp-admin(_at_)mydomain(_dot_)net" -I "From:
ftp-admin(_at_)mydomain(_dot_)net" ;
cat /etc/ftp-mail-text.txt ) | $SENDMAIL -oi -t"
From trespassa(_at_)gmx(_dot_)de Wed Jul 17 14:57:26 2002
Subject: DIE FTP-LISTE
Folder: ( formail -r -A "X-Loop: ftp-admin(_at_)mydomain(_dot_)net" -I
"From 978
procmail: Notified comsat: "safran@: ( formail -r -A "X-Loop:
ftp-admin(_at_)mydomain(_dot_)net" -I "From:
ftp-admin(_at_)mydomain(_dot_)net"
; cat /etc/ftp-mail-text.txt ) | $SENDMAIL -oi -t"
And here is my procmailrc:
VERBOSE=yes
LOGFILE=/var/log/procmail/procmail.log
:0 c:
* ^TOftp-admin
* ^Subject:.*ftp-liste
| sudo /usr/sbin/ftp-mail-text.cfg > /etc/ftp-mail-text.txt
You can lock an object but you can not lock action.
You want to send the message to the Filter and maybe Wait for
the exit status(?) so:
:0 fw
:0 h w
* ^TOftp-admin
* ^Subject:.*ftp-liste
| ( formail -r -A "X-Loop: ftp-admin(_at_)mydomain(_dot_)net" -I "From:
ftp-admin(_at_)mydomain(_dot_)net" ; cat /etc/ftp-mail-text.txt ) |
$SENDMAIL -oi -t
Again, Filter:
:0 fhw
I do not know if it is all, fix and try.
Bye,
Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail