Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/mail/message.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #24623 -- Fixed EmailMessage.attach_file() with ↵Konrad Świat2015-07-251-3/+29
| | | | | | text files on Python 3. Thanks tkrapp for the report and Tim Graham for the review.
* Replaced six.BytesIO with io.BytesIOTim Graham2015-07-201-1/+2
|
* Removed support for Python 3.3.Tim Graham2015-06-181-8/+1
|
* Fixed #24416 -- Added support for lazy email addresses.medmunds2015-03-131-4/+4
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-8/+8
|
* Removed compatibility with Python 3.2.Tim Graham2015-01-171-6/+1
|
* Fixed #23910 -- Added reply_to parameter to EmailMessageMartin Blech2014-11-281-3/+13
| | | | Thanks to Berker Peksag and Tim Graham for the review and suggestions.
* Fixed #23924 -- Made EmailMessage raise TypeError for ↵Martin Blech2014-11-281-3/+6
| | | | type checks
* Removed workaround for lack of os.getpid() in Jython.Tim Graham2014-11-241-12/+14
| | | | | | | | The Jython bug was fixed in http://bugs.jython.org/issue1518 (tested on Jython 2.7b3); also updated make_msgid() to be more like the version in Python 3.2+; refs #23905. Thanks Simon Charette for testing and review.
* Fixed #13694 -- Made SafeMIMEText's constructor ↵Berker Peksag2014-11-241-8/+11
| | | | compatible with MIMEText.
* Fixed #23063 -- Convert \n and \r to \r\n when using the ↵Florian Apolloner2014-10-121-4/+7
| | | | SMTP backend as per RFC.
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-281-2/+2
| | | | | | 3282. Thanks Collin Anderson for the review.
* Updated comment about Python issueClaude Paroz2014-09-271-1/+1
|
* Limited lines to 119 characters in django/Tim Graham2014-09-051-1/+3
| | | | refs #23395.
* Fixed several typos in DjangoAlex Gaynor2014-05-291-1/+1
|
* Introduced as_bytes for SafeMIMEText (and other ↵Florian Apolloner2013-12-281-15/+18
| | | | | | | | | | | SafeMIME-classes). This is to provide a consistent interface (namely bytes) for the smtp backend which after all sends bytes over the wire; encoding with as_string yields different results since mails as unicode are not really specified. as_string stays for backwardscompatibilty mostly and some debug outputs. But keep in mind that the output doesn't match as_bytes!
* Worked around a bug in python 3.3.3. Refs #21093Florian Apolloner2013-12-281-1/+8
|
* Fixed #21093 -- Ensured that mails are not base64 ↵Florian Apolloner2013-12-281-41/+30
| | | | | | encoded on python 3.3.3+. Thanks to Arfrever for the report and Aymeric for the review.
* Used "is" for comparisons with None.Tim Graham2013-10-101-1/+2
|
* Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin2013-09-021-1/+1
|
* Fixed #12422 -- Don't override global email charset ↵Ramiro Morales2013-08-211-2/+12
| | | | | | | behavior for utf-8. Thanks simonb for the report, Claude Paroz and Susan Tan for their work on a fix.
* Fixed #18967 -- Don't base64-encode message/rfc822 ↵Ramiro Morales2013-08-211-3/+41
| | | | | | attachments. Thanks Michael Farrell for the report and his work on the fix.
* Fixed #20746 -- Removed Python 2.6 specific code/docsTim Graham2013-07-141-4/+0
|
* Fixed #19107 -- Workarounded message-encoding bug on ↵Claude Paroz2012-10-111-0/+4
| | | | | | Python < 2.6.6 Thanks Bernardo Pires for the report.
* [py3] Workarounded a Python bug in mail header encodingClaude Paroz2012-08-171-1/+6
|
* [py3] Fixed mail tests with Python 3Claude Paroz2012-08-091-17/+17
|
* [py3] Ported django.utils.encoding.Aymeric Augustin2012-08-071-6/+6
| | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
* [py3] Replaced basestring by six.string_types.Aymeric Augustin2012-07-221-4/+5
|
* Fixed #18269 -- Applied unicode_literals for Python 3 ↵Claude Paroz2012-06-071-3/+5
| | | | | | | compatibility. Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz2012-05-051-6/+3
| | | | | Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
* Made more extensive usage of context managers with open.Claude Paroz2012-05-051-1/+2
|
* Made email attachment handling code accept non-ASCII ↵Ramiro Morales2012-01-151-0/+4
| | | | | | | | | | filenames. Thanks to Anton Chaporgin for the report and to Claude Paroz for the patch. Fixes #14964. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17375 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #17444 -- Made it possible to customize the 'To' ↵Aymeric Augustin2011-12-301-2/+2
| | | | | | header in emails. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed a bunch of imports of the email stdlib module now ↵Jannis Leidel2011-09-091-6/+6
| | | | | | that we are on Python 2.5 to ease the Python 3 port. Thanks, Martin von Löwis. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11212 -- Stopped using quoted-printable encoding ↵Jannis Leidel2011-05-071-1/+1
| | | | | | for mails with non-ASCII characters but rely on 8bit encoding instead. Thanks, phr, gisle and Ramiro Morales. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Removed a bunch more Python 2.4 workarounds now that we ↵Adrian Holovaty2011-03-281-4/+1
| | | | | | don't support that version. Refs #15702 -- thanks to jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15520 -- Fixed incompatibility with email module ↵Ramiro Morales2011-02-281-1/+4
| | | | | | shipped with Python 2.4 introduced in r15669. Thanks dobcey for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13433 -- Changed default behavior of Django email ↵Ramiro Morales2011-02-281-2/+33
| | | | | | message wrappers to not mangle lines starting with 'From '. Thanks Leo for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15669 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15042 -- Ensured that email addresses without a ↵Russell Keith-Magee2011-01-151-17/+48
| | | | | | domain can still be mail recipients. Patch also improves the IDN handling introduced by r15006, and refactors the test suite to ensure even feature coverage. Thanks to net147 for the report, and to Łukasz Rekucki for the awesome patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14301 -- Handle email validation gracefully with ↵Jannis Leidel2010-10-141-1/+5
| | | | | | email addresses containing non-ASCII characters. Thanks, Andi Albrecht. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7722 - added support for CC in EmailMessage.Luke Plant2010-10-081-5/+13
| | | | | | | Thanks to roberto.digirolamo for the report and initial patch, and dougvanhorn and SmileyChris for further work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14000 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #13259 -- Ensure that multiple calls to message() ↵Russell Keith-Magee2010-04-011-1/+3
| | | | | | don't corrupt any extra message headers. Thanks to canburak for the report, and Andi Albrecht for the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6918: Adjusted the test in r12683 to more ↵Karen Tracey2010-03-061-1/+1
| | | | | | specifically look for what it is testing so it doesn't get thrown off by other minor differences in email ouput (hopefully). Also put a docstring back in its place. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6918, #12791: If an email message has an ↵Karen Tracey2010-03-051-14/+24
| | | | | | encoding, actually use that encoding to encode body and headers. Thanks for patch with tests oyvind. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12683 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11144 -- When a to/from/cc header contains ↵Russell Keith-Magee2009-11-041-3/+2
| | | | | | unicode, make sure the email addresses are parsed correctly (especially with regards to commas). Thanks to rmt for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10355 -- Added an API for pluggable e-mail backends.Russell Keith-Magee2009-11-031-0/+274
Thanks to Andi Albrecht for his work on this patch, and to everyone else that contributed during design and development. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11709 bcc190cf-cafb-0310-a4f2-bffc1f526a37