goors / gpg-mailgate

Playing with gpg-mailgate
0 stars 0 forks source link

script fails with emails with To: headers as "email" <email> #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set the To: header in a message as "email@domain.com" <email@domain.com>
2. send message to the mailgate script
3. mailgate fails with the following error

What is the expected output? What do you see instead?

No message is encrypted, script fails with:

Traceback (most recent call last):
  File "/usr/local/bin/gpg-mailgate.py", line 94, in <module>
    send_msg( raw_message, gpg_to_smtp )
  File "/usr/local/bin/gpg-mailgate.py", line 39, in send_msg
    smtp.sendmail( from_addr, recipients, message.as_string() )
  File "/usr/lib/python2.6/smtplib.py", line 709, in sendmail
    raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {}

What version of the product are you using? On what operating system?

Latest

Please provide any additional information below.

Original issue reported on code.google.com by juanro...@gmail.com on 24 Apr 2012 at 4:31