Sam Varshavchik wrote:
Jay Lee writes:
>>
Sam could say better why 4xx errors aren't possible with .smtpfilter.
A message may have multiple recipients.
Couldn't a filter be aware of the number of recipients
and have more actions granted in case the number is 1?
What for?
A possible example is a remote web server that operates
a transaction on behalf of a local user and then sends
a mail message containing a key to the relevant data.
A mail filter wants to read that data and modify the
message accordingly, e.g., after matching the key,
xfilter "./myscript $MATCH"
The script may sleep a few seconds to make sure that
the data is ready, e.g.,
#! /bin/sh
cat -
url=`printf 'http://blahblah?key=%s' $1`
sleep 10
lynx -dump $url
exit 0
What if 10 secs is not enough? Creating a temporary error
might be a solution.
Note that in that scenario one must know exactly what is
happening. I don't think requiring that the message has
only one recipient would be much of a restriction here.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users