mailout ordinal not in range

Bug #1732198 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL4
Fix Released
Medium
Carlos de la Guardia

Bug Description

Just got a flood of these. I suspect you'll need to get the original emails from var/mail_queue/new (I hid the email address.)

Error while sending mail from to <email address hidden>.

Traceback (most recent call last):
  File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.6-py2.7.egg/repoze/sendmail/queue.py", line 232, in _send_message
    self.mailer.send(fromaddr, toaddrs, message)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.6-py2.7.egg/repoze/sendmail/mailer.py", line 71, in send
    message = encode_message(message)
  File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.6-py2.7.egg/repoze/sendmail/encoding.py", line 103, in encode_message
    return message.as_string().encode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x97 in position 3609: ordinal not in range(128)

Changed in karl4:
status: New → In Progress
Revision history for this message
Carlos de la Guardia (cguardia) wrote :

It's the same email that's causing this and I see the offending characters there. Seems like I need to change repoze.sendmail to deal with this.

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

It was not as easy as expected, but I'm on it. Should be ready tonight.

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

I have a fix, but I don't have permission to push to master of repoze.semdmail.

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

I mean the one in the Karl project repository.

Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 1732198] Re: mailout ordinal not in range

We’ve semi-forked repoze.sendmail already by overloading some of the base methods. Perhaps do the same?

—Paul

> On Nov 16, 2017, at 1:23 AM, Carlos de la Guardia <email address hidden> wrote:
>
> I have a fix, but I don't have permission to push to master of
> repoze.semdmail.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1732198
>
> Title:
> mailout ordinal not in range
>
> Status in KARL4:
> In Progress
>
> Bug description:
> Just got a flood of these. I suspect you'll need to get the original
> emails from var/mail_queue/new (I hid the email address.)
>
> Error while sending mail from to <email address hidden>.
>
> Traceback (most recent call last):
> File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.6-py2.7.egg/repoze/sendmail/queue.py", line 232, in _send_message
> self.mailer.send(fromaddr, toaddrs, message)
> File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.6-py2.7.egg/repoze/sendmail/mailer.py", line 71, in send
> message = encode_message(message)
> File "/srv/osfkarl/.buildout/eggs/cp27mu/repoze.sendmail-4.2+agendaless.6-py2.7.egg/repoze/sendmail/encoding.py", line 103, in encode_message
> return message.as_string().encode('ascii')
> UnicodeDecodeError: 'ascii' codec can't decode byte 0x97 in position 3609: ordinal not in range(128)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/karl4/+bug/1732198/+subscriptions

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Carlos, did you get permission to repoze.sendmail yet?

Changed in karl4:
milestone: 037 → 039
Changed in karl4:
milestone: 039 → 044
Revision history for this message
Carlos de la Guardia (cguardia) wrote :

This had actually been deployed a year ago. Sorry for not updating ticket.

Changed in karl4:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.