Author Topic: Spam filter trouble  (Read 21579 times)

0 Members and 1 Guest are viewing this topic.

Bitstream

  • Newbie
  • *
  • Posts: 21
    • View Profile
Spam filter trouble
« Reply #15 on: May 11, 2006, 07:32:10 am »
The example I based my code on used spaces, so it's presumably ok.

the TO_ command apparently encompasses multiple "to" type headers. To:, Apparently-To:, CC:, etc.

I guess it remains to try it and test it.

Bitstream

  • Newbie
  • *
  • Posts: 21
    • View Profile
Spam filter trouble
« Reply #16 on: May 11, 2006, 10:03:24 am »
Looks like the spaces make it not work. I got rid of them and it seems ok though!

Still makes me a bit nervous. I'd rather it was scanning ALL headers for the addresses, just in case. Maybe it is. I find the man page a bit too... arcane for my easy comprehension. I don't speak very good *nix I guess.

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,334
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Spam filter trouble
« Reply #17 on: May 11, 2006, 09:58:47 pm »
Well, if you want it scan all headers, then you can do that. You simply create the search expression without specifying the fields to look in. That is, "^To:" means "the line starting with To:" I believe you can negate that segment, and it will search the entire header.

Bitstream

  • Newbie
  • *
  • Posts: 21
    • View Profile
Spam filter trouble
« Reply #18 on: May 11, 2006, 11:20:23 pm »
Actually, I think I've figured it out. Don't put anything at all for a header (IE, just * and then your match terms) and it'll search em all.  So far, it's working like a charm.