On Tue, Sep 20, 2005 at 01:07:06PM +0300, Fredrik Nyberg DC wrote:
> I am wondering about scope for variables such as $RelayAddr and
> $RelayHostname. The manpage for mimedefang-filter says:
>
> "This variable is available in filter_relay, filter_sender and
> filter_recipient."
>
> I have seen some filters that use these variables in the functions
> "filter", "filter_end" and so forth. Can someone clarify when these
> variables can be used?
The start of that section, called "GLOBAL VARIABLES SET BY MIMEDEFANG.PL",
explicitly says:
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.
I suppose the manpage could be made even clearer by adding the word
"also": this variable is also available in... etc.
--
#!perl -wpl # mmfppfmpmmpp mmpffm <[EMAIL PROTECTED]>
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):qw(m p f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig; # Jan-Pieter Cornet
_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang