On Fri, Feb 10, 2006 at 10:23:36AM -0800, Justin Mason wrote: > fwiw, the easy way to extract URLs is to write a very short SpamAssassin > plugin that calls the get_uri_list() API on the > Mail::SpamAssassin::PerMsgStatus object and prints them to stdout. > > Let SpamAssassin do all the hard work. ;)
If you're looking for a slightly more advanced example of code, I have two scripts available: http://www.kluge.net/~felicity/random/listuri which generates: $ perl listuri ~/mail/hs /home/felicity/mail/hs.2406 http://incubi.example.com/fire/images/ipic4.jpg /home/felicity/mail/hs.2406 http://everhart.example.com/fire/images/ipic3.jpg /home/felicity/mail/hs.2406 http://astm.example.com/fire /home/felicity/mail/hs.2406 http://firsthand.example.com /home/felicity/mail/hs.2406 http://quadratic.example.com/fire and also: http://www.kluge.net/~felicity/random/listuridomains which generates: $ perl listuridomains ~/mail/hs /home/felicity/mail/hs.2406 example.com /home/felicity/mail/hs.18437 example.net /home/felicity/mail/hs.18437 example.org :) -- Randomly Generated Tagline: Unused Jeopardy Category #1: Parts of a spoon
pgpuhpIxHZGAq.pgp
Description: PGP signature