Consistency improvement of %org-name%

David Lee t.d.lee at DURHAM.AC.UK
Fri May 21 17:03:01 IST 2004


On Fri, 21 May 2004, Julian Field wrote:

> At 15:28 21/05/2004, you wrote:
> >[...]
> >Note that last line.  Could these "reports/*/*.txt" files be re-written
> >to use a similar default mechanism?  Something along the lines of:
> >    X-$orgname-MailScanner:
> >or:
> >    $mailheader:
> >(give or take some syntactic sugar).  I suppose this might entail some
> >code adjustment, but I suspect this would be minor.
> >[...]
>
> Good idea.
> Depending on the weather this weekend, I might take a look at it.
> Oh, hang on, just checked the weather forecast, looks nice and sunny :-)

In addition to "reports/*/*.txt", places that seem to contain the string
"X-MailScanner" hardwired (based on a "grep -r X-MailScanner .") are:

   ./MailScanner.conf:Envelope From Header = X-MailScanner-From:
   ./MailScanner.conf:Envelope To Header = X-MailScanner-To:

   ./mailscanner.conf.with.mcp:Mail Header = X-MailScanner:
   ./mailscanner.conf.with.mcp:Spam Header = X-MailScanner-SpamCheck:
   ./mailscanner.conf.with.mcp:Spam Score Header = X-MailScanner-SpamScore:
   ./mailscanner.conf.with.mcp:Information Header = X-MailScanner-Information:
   ./mailscanner.conf.with.mcp:MCP Header = X-MailScanner-MCPCheck:

   ./spam.assassin.prefs.conf:bayes_ignore_header X-MailScanner
   ./spam.assassin.prefs.conf:bayes_ignore_header X-MailScanner-SpamCheck
   ./spam.assassin.prefs.conf:bayes_ignore_header X-MailScanner-SpamScore
   ./spam.assassin.prefs.conf:bayes_ignore_header X-MailScanner-Information

My guess is that the "MailScanner.conf" instances would be trivial, and
probably also those in "mailscanner.conf.with.mcp".

Those in "spam.assassin.prefs.conf" might be more tricky, as the
site-installed file would probably need to be a tailored version of the
distributed one.  (Can "spam.assassin.prefs.conf" handle perl variables?).
I suppose a comment in "MailScanner.conf" above "Mail Headers" saying:
  # Remember to adjust "bayes_ignore_header" entries in
  # "spam.assassin.prefs.conf"

might be a workaround.  (Now if we were using "autoconf"...!)

Hope that helps.  (Happy sunny weekend!)

--

:  David Lee                                I.T. Service          :
:  Systems Programmer                       Computer Centre       :
:                                           University of Durham  :
:  http://www.dur.ac.uk/t.d.lee/            South Road            :
:                                           Durham                :
:  Phone: +44 191 334 2752                  U.K.                  :

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list