[Spambayes] Exceptionally well-done identity-theft spam

Tony Meyer tameyer at ihug.co.nz
Mon Dec 29 23:42:37 EST 2003

> Odd.  I demangled it by passing it through this not-to-exotic unquote
> script:
> I would think urllib2 could be trained to grok that.

It's the "www.paypal.comekjhaskjqpwopwo@" that it doesn't like.  Either
urllib2 doesn't like passing a username with http, or you're supposed to
extract it from the url and pass it some other way; I don't know enough
about urllib2 to know which is correct.

>>> import urllib2
>>> urllib2.urlopen("http://foo@python.org")
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
  File "C:\Python23\Lib\urllib2.py", line 129, in urlopen
    return _opener.open(url, data)
  File "C:\Python23\Lib\urllib2.py", line 326, in open
    '_open', req)
  File "C:\Python23\Lib\urllib2.py", line 306, in _call_chain
    result = func(*args)
  File "C:\Python23\Lib\urllib2.py", line 901, in http_open
    return self.do_open(httplib.HTTP, req)
  File "C:\Python23\Lib\urllib2.py", line 886, in do_open
    raise URLError(err)
URLError: <urlopen error (7, 'getaddrinfo failed')>

=Tony Meyer

More information about the Spambayes mailing list