[Mimedefang] Access to $Sender from filter_end()

si at yacc.co.uk si at yacc.co.uk
Tue Jan 11 05:32:06 EST 2011


Aaaah ... I guess I'm running a couple of revisions behind. My docs say:

  $Sender
              The sender of the e-mail.  This variable is set in
filter_sender
              and filter_recipient.

... Guess I know what I need to do next :)

Thanks.

Mup.

-----Original Message-----
From: Kevin A. McGrail [mailto:KMcGrail at PCCC.com] 
Sent: 10 January 2011 19:06
To: mimedefang at lists.roaringpenguin.com
Cc: Simon Standley
Subject: Re: [Mimedefang] Access to $Sender from filter_end()


> 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 
noted below.

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.

Something like:

  $Sender
               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.

Regards,
KAM



More information about the MIMEDefang mailing list