custom functions in reports/xx/languages.conf

Mariano Absatz mailscanner at LISTS.COM.AR
Sun Apr 18 23:38:24 IST 2004


Er... that is:
sub SAVersionString {
  return "SpamAssassin-" . "$Mail::SpamAssassin::VERSION";
}

:-)


El 18 Apr 2004 a las 18:02, Mariano Absatz escribió:

> Hi,
> 
> in order to know what happens, I usually set (in languages.conf):
> SpamAssassin = SpamAssassin-2.63
> 
> So the header shows me SA version... now, the problem I have is that I not
> always remember to update this when I update SpamAssassin...
> 
> Can I do the following:
> 
> SpamAssassin = &SAVersionString
> 
> And put (in lib/CustomFunctions) a small routine like this:
> 
> sub SAVersionString {
>   return "SpamAssassin-" . "Mail::SpamAssassin::VERSION";
> }
> 
> do I have to put the InitSAVersionString & EndSAVersionString?
> 
> TIA.
> 
> --
> Mariano Absatz
> El Baby
> ----------------------------------------------------------
> Give a man a match, and he'll be warm for a minute, but set him on
> fire, and he'll be warm for the rest of his life.


--
Mariano Absatz
El Baby
----------------------------------------------------------
If knowledge can create problems, it is not through
ignorance that we can solve them.
         -- Isaac Asimov




More information about the MailScanner mailing list