On Thu, 10 May 2018, Giovanni Bechis wrote:
in a plugin I would like to extract URIs from attachments and add them to the pool that feeds uri rules and URIBL checks. I looked at DecodeShortURLSs.pm but it's ugly and I am not sure it works correctly, in some cases it seems that it checks only part of the URIs in the message (only the ones extracted from the short ones). Which is the correct way to check some uris for URIBL from inside a plugin ? Any hints ?
Offhand comment, too busy at the moment to be detailed: look in the main (not plugin) code the body and HTML parsing where it pulls out the URIs and adds them to the collection.
The only part of DecodeShortURLs is the part where it adds a URI to the collection. The plugin itself should *not* be doing URIBL lookups.
-- John Hardin KA7OHZ http://www.impsec.org/~jhardin/ [email protected] FALaholic #11174 pgpk -a [email protected] key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- The Constitution is a written instrument. As such its meaning does not alter. That which it meant when adopted, it means now. -- U.S. Supreme Court SOUTH CAROLINA v. US, 199 U.S. 437, 448 (1905) ----------------------------------------------------------------------- 406 days since the first commercial re-flight of an orbital booster (SpaceX)
