Yes, this works great... but i am having one final question. I am not a
perl wizzard.

Sometimes the arriving messages from our ISP have multiple X-Spam-Flag
lines from multiple MTA's it has been rerouted through.

This is wat you wrote earlier :

>> Yes, the get_header_field_body method can fetch any header field.
>> If there are multiple instances (like with Received), each one
>> can be selected individually. See comments at sub get_header_field.

I have looked at the sub get_header_field.
If i want to select the first X-Spam-Flag. (top one - last MTA)
I use : get_header_field_body('X-Spam-Flag',0)
But what if I don't specify the : '0'

If i understand the sub get_header_field, it uses default the 0 ?
So default it uses the first X-Spam-Flag line it finds from the top to 
bottom ?

Am i correct ?

Thanks for the help.....

Greetings... Richard


Chris Bryant wrote:
> Thank you very much Mark.  This works great for me too now, including 
> checking against a custom X- header.
> 
> Thanks,
> Chris
> 
> ----- Original Message ----- 
> From: "Mark Martinec" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, July 31, 2008 8:10 PM
> Subject: Re: [AMaViS-user] Quarantaine mail without spamassassin
> 
> 
>> Richard,
>>
>>> can you also use this with other custom lines in the header ?
>>> Our provider puts also a : X-Spam-Flag: YES
>>> is the header. Can you also test for that ?
>>>>   my($subj) = $msginfo->get_header_field_body('subject');
>> Yes, the get_header_field_body method can fetch any header field.
>> If there are multiple instances (like with Received), each one
>> can be selected individually. See comments at sub get_header_field.
>>
>> Keep in mind than anything after a colon is a body of a
>> header field - which typically starts with a space or tab.
>>
>>  Mark
> 
> 
> 
> 
> 
> 
> USA.NET 
> You Run Your Business.  We'll Run Your Email.
> 
> This message is for the sole use of the intended recipient(s) and may contain 
> confidential and/or privileged information of USA.NET, Inc.  Any unauthorized 
> review, use, copying, disclosure, or distribution is prohibited.  If you are 
> not the intended recipient, please immediately contact the sender by reply 
> email and delete all copies of the original message.
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> AMaViS-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amavis-user
> AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/howto/


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to