[Mimedefang] Access to $Sender from filter_end()
Kevin A. McGrail
KMcGrail at PCCC.com
Mon Jan 10 14:05:54 EST 2011
> I'm desperately trying to avoid adding yet another external database [eg
> store $Sender keyed by $MessageID in filter_sender(), and retrieve from
> filter_end(), or something like that].
> Have I missed a trick here?
Yes, I think you have.
$Sender is a global variable and if you look WAY at the top of the man
section, you'll note:
GLOBAL VARIABLES SET BY MIMEDEFANG.PL
The following global variables are set by mimedefang.pl and
are available for use in your filter. *All of these variables are always
available to filter_begin, filter, filter_multipart and filter_end.* In
addition, some of them are available in filter_relay,
filter_sender or filter_recipient. If this is the case, it will be
David, it might help to clarify this better on each global variable
definition even if it means regurgitating the information. I've often
forgotten which variables are where and had to remember that sentence.
The sender of the e-mail. This variable is available in
filter_begin, filter, filter_multipart and filter_end as well as
filter_sender and filter_recipient.
More information about the MIMEDefang