nknganda / django-mailer

Automatically exported from code.google.com/p/django-mailer
MIT License
0 stars 0 forks source link

send_mail should truncate subject to 100 characters #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use django-mailer with Postgres 8.3
2. Call send_mail with a subject string longer than 100 characters

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

Leaving aside the question of whether 100 characters is too short a subject
field limit (I think it is), I would expect the subject line to be
truncated and the email still saved and sent.

Instead, Postgres raises a ProgrammingError and the message is dropped.

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

SVN revision 55.

Patch attached.

Original issue reported on code.google.com by carl.j.meyer on 15 Jan 2009 at 10:11

Attachments: