Add an aditional header to spam mail.

James Ytterstene james.ytterstene at MDH.SE
Tue Oct 19 21:28:47 IST 2004


Hello

I can't do that because our company has strict rules that dont alow us to
do that. Sofar i haw patched the source each time i make an upgrade but if
i could solve it with the config it would be much better.

Is there a way to make a new line in the config. Something like \n. I have
tried \n without success but maby there is an other way. I could then
write the config line like this

Spam Header = X-Spam-Flag: YES "new line" X-xyz-MailScanner-SpamCheck:

But i dont know if that is possibel. Anyone ho know ?

/James

On Tue, 19 Oct 2004, Martin Hepworth wrote:

> James
>
> OK..
>
> you could alway tag the subject line and use that to filter to...
>
> subject starts with {Spam?}
>
> ???
>
> --
> Martin Hepworth
> Snr Systems Administrator
> Solid State Logic
> Tel: +44 (0)1865 842300
>
>
> James Ytterstene wrote:
> > Hello
> >
> > The real name of the flag is "X-Spam-Flag: YES" which SpamAssassin inserts
> > into the mail. I have som badly written mail clients which need a clean
> > flag to filter on. When i use SpamAssassin standalone i get the flag but
> > not when using MailScanner as an frontend.
> >
> > I dont know why the header from SpamAssassin is left out, but if i could
> > dubble the "Spam Header" i could manually put it back. But i cant get it
> > to work.
> >
> > /James
> >
> > On Tue, 19 Oct 2004, Martin Hepworth wrote:
> >
> >
> >>James
> >>
> >>Apart from the strict I dn't see how this differs from the 'spam' part
> >>of the said header. Or maybe I'm being thick as usual..?
> >>
> >>You should be able to write rules for the MUA/procmail/whatever against
> >>either varient..
> >>
> >>
> >>--
> >>Martin Hepworth
> >>Snr Systems Administrator
> >>Solid State Logic
> >>Tel: +44 (0)1865 842300
> >>
> >>
> >>James Ytterstene wrote:
> >>
> >>>Hello
> >>>
> >>>My misstake. I ment that it was this header i would like to doubble. The
> >>>header "Spam Header = X-%org-name%-MailScanner-SpamCheck:" includes the
> >>>detailed information about the different scores from a spam mail. I need a
> >>>clean header with only the value "YES".
> >>>
> >>>So a correct look would be like this
> >>>------------------------------------
> >>>
> >>>X-spam: YES
> >>>X-My-Company-MailScanner-SpamCheck: spam, SpamAssassin (resultat=26.966, krav 5,
> >>>        autolearn=disabled, HTML_10_20 0.29, HTML_MESSAGE 0.00,
> >>>...
> >>>        X_MESSAGE_INFO 4.19)
> >>>X-My-Company-MailScanner-SpamScore: ssssssssssssssssssss
> >>>
> >>>-------------------------------------
> >>>
> >>>/James
> >>>
> >>>On Tue, 19 Oct 2004, Martin Hepworth wrote:
> >>>
> >>>
> >>>
> >>>>James
> >>>>Already there..
> >>>>
> >>>
> >>>>from MailScanner.conf
> >>>
> >>>># Add this extra header to all messages found to be spam.
> >>>># This can also be the filename of a ruleset.
> >>>>Spam Header = X-%org-name%-MailScanner-SpamCheck:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>--
> >>>>Martin Hepworth
> >>>>Snr Systems Administrator
> >>>>Solid State Logic
> >>>>Tel: +44 (0)1865 842300
> >>>>
> >>>>
> >>>>James Ytterstene wrote:
> >>>>
> >>>>
> >>>>>Hello
> >>>>>
> >>>>>I would like to add an extra header to all mail that is spam.
> >>>>>There is an header named "Spam Score Header" that is inserted into mails
> >>>>>that are spam, but i would like to have two headers.
> >>>>>The first header is a static one and the second is the normal where i get
> >>>>>the detailed information. The result should look something like this
> >>>>>
> >>>>>X-spam: YES
> >>>>>X-My-Company-MailScanner-SpamScore: spam, bla bla
> >>>>>
> >>>>>It is this first extra line i would like to insert. I have tried
> >>>>>everyting i know. but cant get it to work. Can it be done with rulesets ?
> >>>>>
> >>>>>
> >>>>>/James Ytterstene
> >>>>>

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).



More information about the MailScanner mailing list