https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6159





--- Comment #2 from Karsten Bräckelmann <[email protected]>  2009-07-22 
09:10:59 PST ---
The reason is _get_parsed_uri_list() and get_uri_detail_list partially doing
the same work.

_get_parsed_uri_list() actually parses the rendered text parts for URIs.
Extracted URIs are stored in parsed_uri_list. The raw URI as extracted, as well
as a version with the protocol prepended (if the raw has not) are pushed onto
that list.

get_uri_detail_list() then runs each parsed URI in parsed_uri_list through
Util::uri_list_canonify(), which generates (possibly various) cleaned versions
in addition to the source URIs. One of these cleaned versions is with a
protocol prepended, if there is none. Returns cleaned, merged with the source
URIs list.


> $uri_raw .......... http://www.example.net
> $info->{cleaned} .. http://www.example.net
> 
> $uri_raw .......... www.example.net
> $info->{cleaned} .. http://www.example.net www.example.net

The existence of both of these uri_detail data structures are due to
_get_parsed_uri_list().

get_uri_detail_list() cares about expanding the cleaned list for the second one
above (the raw URI parsed out of the text parts) with a protocol prepended
version.

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to