> Look in man perldoc Mail::SpamAssassin::Plugin for the definition of a
> new plugin (for example MyFilter)
>
> You could do a lot of interesting things inside the plugin
> with the Mail::SpamAssassin::PerMsgStatus element (again perldoc ...)

Hi Leonardo,

   I think this example might be more suited towards creating a new
SA plugin, right?  That's not at all what I'm trying to do here -
this isn't part of the mail stream, this is a standalone perl program.
I just want to take advantage of SA's excellent Received header
parsing to get the IP addresses for the relays.

   Basically, here's what I'm trying to do:

1) Connect to DB
2) Grab the full text of an email into a variable
3) Use SA's code to parse the headers
4) Grab the IP addresses from the Received headers

   #3 and #4 are where I'm having issues, because I don't understand
the code (and I suck pretty bad at Perl).

Thanks, and hope that clears up my problem,

Benny


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

Reply via email to