Hey folks,

   This is a question about using SpamAssassin's perl interface, not
about filtering mail.

   I'm using 3.2.2 (soon to be 3.2.3) on OpenBSD, built from source.
In addition to using SA to filter my email, I'd also like to take
advantage of SA's ability to parse Received headers for my own
project.

   I store the entire spam in a database.  What I want to do is to
be able to parse out the Received headers' IP addresses from the
full text of each email.  I only really need the IP that hands off
to my own servers, but it would be useful to get an array of all of
them.

   I am not at all a perl guru - I've written quite a bit of it,
but more complex stuff than my simple scratchings makes my brain
swell and hurt.  If someone could give me a quick leg up in going
from a variable containing the entire message to an array of IPs
(or just the handoff IP, that's fine), I'd really appreciate it.

Thanks a bunch!

Benny


-- 
"This officer's men seem to follow him merely out of idle curiosity."
                               -- Sandhurst officer cadet evaluation

Reply via email to