You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Mike Hogsett <ho...@csl.sri.com> on 2004/05/19 22:26:02 UTC
Rule Help
I have read Mail::SpamAssassin::Conf, but I can't seem to get these
rules to work.
I would like to check for the existance of the following header fields
at the start of a MIME attachement, I have tried, 'body', 'rawbody', and
'full' and they never match. How can I get at the headers of a MIME
attachment?
full MFH_PKCS7_3 /Content-Type: application\/x-pkcs7-signature; name=\"smime.p7s\"/
score MFH_PKCS7_3 -1.0
describe MFH_PKCS7_3 S/MIME Header
full MFH_PKCS7_4 /Content-Disposition: attachment; filename=\"smime\.p7s\"/
score MFH_PKCS7_4 -1.0
describe MFH_PKCS7_4 S/MIME Header
full MFH_PKCS7_5 /Content-Description: S\/MIME Cryptographic Signature/
score MFH_PKCS7_5 -1.0
describe MFH_PKCS7_5 S/MIME Header
Thanks
- Mike Hogsett
Re: Rule Help
Posted by Theo Van Dinter <fe...@kluge.net>.
On Wed, May 19, 2004 at 02:34:43PM -0700, Mike Hogsett wrote:
> > If its a binary attachment, you can't. That gets stripped out, even from
> > full.
>
> Rats. Ok that answers that. Ignore my next post then.
FWIW: In 3.0 you could write a plugin that does this check rather trivially.
--
Randomly Generated Tagline:
Feel free to contact me (flames about my english and the useless of this
driver will be redirected to /dev/null, oh no, it's full...).
(Michael Beck, describing the PC-speaker sound device)
Re: Rule Help
Posted by Loren Wilton <lw...@earthlink.net>.
> 'full' and they never match. How can I get at the headers of a MIME
> attachment?
If its a binary attachment, you can't. That gets stripped out, even from
full.
Loren
Re: Rule Help
Posted by Fred <sp...@freddyt.com>.
Mike Hogsett wrote:
> I have read Mail::SpamAssassin::Conf, but I can't seem to get these
> rules to work.
>
> I would like to check for the existance of the following header fields
> at the start of a MIME attachement, I have tried, 'body', 'rawbody',
> and 'full' and they never match. How can I get at the headers of a
> MIME
> attachment?
>
Add this rule to your local.cf file, run a message through manually using -D
switch and SA will output what the rules will see in a full test.
full PRINTFULL /(^.*$)(?{ print "Full:\n$^N\nEnd Full\n" })/is
Frederic Tarasevicius
Internet Information Services, Inc.
http://www.i-is.com/
810-794-4400
mailto:info@i-is.com
Re: Rule Help
Posted by Robert Menschel <Ro...@Menschel.net>.
Hello Mike,
--lint your rules. It may report something easy.
Wednesday, May 19, 2004, 1:26:02 PM, you wrote:
MH> I have read Mail::SpamAssassin::Conf, but I can't seem to get these
MH> rules to work. ...
MH> full MFH_PKCS7_3 /Content-Type: application\/x-pkcs7-signature; name=\"smime.p7s\"/
You might want to try instead
> header MFH_PKCS7_3 Content-Type =~ m'application/x-pkcs7-signature; name="smime.p7s"'
header rules are more efficient than full rules, when you're looking for
a specific header type, and IMO easier to debug
Bob Menschel