You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/04/21 07:59:29 UTC

[Bug 3287] New: get_uri_list generates more uri's than those which exist in mail

http://bugzilla.spamassassin.org/show_bug.cgi?id=3287

           Summary: get_uri_list generates more uri's than those which exist
                    in mail
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: yusufg@outblaze.com


wrote a trivial plugin which grabs the url's in a message via get_uri_list

sub get_uris {
  my ($self, $permsgstatus) = @_;

  @uris = $permsgstatus->get_uri_list();
  foreach $uri (@uris) {
     print STDERR "uri: $uri \n" ;
  }
  return 1;
}

running it on attached testcase generates the following output

uri: %20http://BNZTHE.BIZ/PH009/?affiliate_id=233524&campaign_id=407 
uri:  http://BNZTHE.BIZ/PH009/?affiliate_id=233524&campaign_id=407 
uri: http://BNZTHE.BIZ/PH009/?affiliate_id=233524&campaign_id=407 

egrep -i http < input


Your best deals are <a href="
http://BNZTHE.BIZ/PH009/?affiliate_id=233524&campaign_id=407">HERE</a><br><br>
<a href="http://BNZTHE.BIZ/PH009/?affiliate_id=233524&campaign_id=407">



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.