Gordon Messmer [EMAIL PROTECTED] wrote:
> Julian Mehnle wrote:
> > For Courier::Filter, you would write a
> > Courier::Filter::Module::LogHeaderRecipients module whose match()
> > method does nothing but checking whether $message->authenticated is
> > true, logging $message->header('to') || $message->header('cc'), and
> > then returning without a return value.
>
> That doesn't seem right. I'd process the control file, check every
> recipient to see if the domain part is in esmtpacceptmailfor (dat), and
> take action on those that are not.
I agree that logging the envelope recipient addresses is a better idea
than logging "To:" and "CC:" headers (although that's not exactly what
Jason Buberel wanted).
Instead of $message->header('to') || $message->header('cc'), just query
$message->recipients (which returns a list).
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users