Re: Rule to check To and/or CC headers

2013-03-04 Thread John Hardin
1) score MP_RCVD_MISMATCH 0.5 It's a great deal simpler than that: meta RP_NOMATCH_RCVD!RP_MATCHES_RCVD - Original Message - From: "Mark Martinec" To: users@spamassassin.apache.org Sent: Friday, March 1, 2013 12:32:30 PM Subject: Re: Rule to check To and/or CC headers An

Re: Rule to check To and/or CC headers

2013-03-04 Thread Anthony Hoppe
org Sent: Friday, March 1, 2013 12:32:30 PM Subject: Re: Rule to check To and/or CC headers > Another thing I'd like to do, if possible, is check to see if the "From" > address matches the "return path" and add to the spam score if they > do not match. The invers

Re: Rule to check To and/or CC headers

2013-03-02 Thread hamann . w
Hi Anthony, I did that for my mail (not as spam filter, though, but more a header rewrite ... could be procmail), so every such much gtes in the inbox but is flagged very clearly I really like it... but, to be honest, it took me at least 3 months to create my personal whitelist: there are a coup

Re: Rule to check To and/or CC headers

2013-03-01 Thread Mark Martinec
> Another thing I'd like to do, if possible, is check to see if the "From" > address matches the "return path" and add to the spam score if they > do not match. The inverse rule is already there (just use a meta rule negation of it): header RP_MATCHES_RCVD eval:check_mailfrom_matches_rcvd() de

Re: Rule to check To and/or CC headers

2013-03-01 Thread Alexandre Boyer
Okey... Didn't catch that. Not a bad idea but cannot be a decision making thing. And need a plugin. I thought about that already but didn't had time to code this. And I don't remember who on this list brang objections that it would not be such a good idea. Plus: SA do not have access to SMTP in

Re: Rule to check To and/or CC headers

2013-03-01 Thread Anthony Hoppe
nt: Friday, March 1, 2013 11:38:30 AM Subject: Re: Rule to check To and/or CC headers On 3/1/2013 11:26, Alexandre Boyer wrote: > There is no silly question. Just noobs. FYI: most of the time, I'm a noob. > > I do not understand your question: To or Cc headers are recipients. Do &g

Re: Rule to check To and/or CC headers

2013-03-01 Thread Dave Warren
On 3/1/2013 11:26, Alexandre Boyer wrote: There is no silly question. Just noobs. FYI: most of the time, I'm a noob. I do not understand your question: To or Cc headers are recipients. Do you want to compare the name portion to the address portion? eg: To: "Alex Boyer" If Alex matches the loc

Re: Rule to check To and/or CC headers

2013-03-01 Thread Alexandre Boyer
Hello, There is no silly question. Just noobs. FYI: most of the time, I'm a noob. I do not understand your question: To or Cc headers are recipients. Do you want to compare the name portion to the address portion? eg: To: "Alex Boyer" If Alex matches the local part in the address, then it's OK

Rule to check To and/or CC headers

2013-03-01 Thread Anthony Hoppe
Hey All, I'm just starting to dive into advanced custom SA rules, so forgive me if this is a silly question. Is it possible to construct a rule that looks at the To and/or CC field and compares it to the recipient? I know this can be dangerous as legitimate email can be BCCed, but I think bei