Comment 0 for bug 504124

Revision history for this message
Stuart Bishop (stub) wrote :

Every hour, process-mail.py is generating several error messages of the form:

2010-01-07 02:33:15 ERROR An exception was raised inside the handler:
[...] (need more than 1 value to unpack)

The traceback is:

Traceback (most recent call last):
  File "/srv/launchpad.net/production/launchpad-rev-8806/lib/canonical/launchpad/mail/incoming.py", line 275, in handleMail
    user, domain = email_addr.split('@')
ValueError: need more than 1 value to unpack

The trigger is a malformed To: header - an attempt by spammers to get things past filters:

To: <<email address hidden>,
 <email address hidden>,
 <email address hidden>,
 <email address hidden>,
 <email address hidden>>

We need to handle this better to allow us to again monitor this script for genuine failures.