|
SA Bugzilla – Full Text Bug Listing |
Summary: | Provide some form of associative list of URI and anchor text | ||
---|---|---|---|
Product: | Spamassassin | Reporter: | Loren Wilton <lwilton> |
Component: | spamassassin | Assignee: | SpamAssassin Developer Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | SVN Trunk (Latest Devel Version) | ||
Target Milestone: | 3.1.0 | ||
Hardware: | Other | ||
OS: | other | ||
Whiteboard: |
Description
Loren Wilton
2005-02-23 21:24:31 UTC
I think this would be pretty trivial to implement for plugins/eval code. Unless I'm missing something, it's about 3 lines of perl in HTML.pm. ;) ok, code committed. r155227 There's HTML metadata per message, "anchor" is the anchor text per URI. "uri_anchor_index" is now a hash of uris which as a value has an array of indexes into "anchor". ie: <a href="http://foo.com/">foo</a> <a href="http://bar.com/">foo</a> <a href="http://bar.com/">bar</a> "anchor" is: 0: foo 1: foo 2: bar uri_anchor_index is: http://foo.com/ => [ 0 ], http://bar.com/ => [ 1, 2 ] |