Why is it inconceivable that you'd want to in addition to returning a
value also filter?
I do not want to have my "filter" have to deliver the message to the
mailbox ie. deal with flock etc in order to ensure cocurrency.
My filter shouldn't have to be responsible for mail delivery ie.
writing the message into a mailbox. That's procmails job so what I'm
seeking is a way to conditionally tell procmail to write the mail to
the designated mailbox but in addition also be able to change the
message content.
$Headers, $Body are defined in another file.
RFC says that Headers ie. Mail Headers are separated from the Body by a
newline.
The last line of the $Headers isn't terminated by a newline.
On Tuesday, October 15, 2002, at 08:31 PM, Professional Software
Engineering wrote:
At 16:43 2002-10-15 +0700, Robert Nicholson wrote:
sub reason {
my $reason = $_[0];
print $Headers;
print "\n";
print "X-Challenge-Reason: $reason\n";
print "\n";
print $Body;
}
Uh, where are the $Headers and $Body variables being defined? Why are
you addding a newline after the headers? This obviously isn't the
entire "filter".
I think what might be confusing the issue is I'm guessing that
procmail doesn't
consider ? syntax ie.
#let filtmail do the rest
:0 HB
* ? $HOME/.filtmail/filtmail
$MAILDIR/copy
a "filter"
Correct - THAT IS NOT A FILTER. Where is the 'f' flag? Where is the
*PIPE* to the filter?
:0f
| $HOME/.filtmail/filtmail
THAT will filter.
Will procmail let me change the content of a message that's sent
through the * ? syntax?
That isn't a filter - that's piping the message to the program for
evaluation - procmail ONLY pays attention to the return value - it
doesn't replace the message text.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer:
<http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the
list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail