This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Allow specifying headers for MIME parts
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: collinwinter, jsonn, nnorwitz, sonderblade
Priority: normal Keywords: patch

Created on 2007-02-23 00:18 by jsonn, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
MimeWriter.py.diff jsonn, 2007-02-23 00:18 MimeWriter.py patch to add headers to parts
Messages (4)
msg51913 - (view) Author: J�rg Sonnenberger (jsonn) Date: 2007-02-23 00:18
The patch is needed to allow specification e.g. of content-transfer-encoding. I couldn't find a way with the existing infrastructure to do that.
msg51914 - (view) Author: Collin Winter (collinwinter) * (Python committer) Date: 2007-03-06 17:15
Thanks for contributing! While I can't speak to whether this patch is a good idea, here are some things you need to fix:

1) Your patch introduces incorrect indentation at line 136 and 137 of Lib/MimeWriter.py (run your updated MimeWriter.py with "python -tt").

2) The patch lacks test cases (add them to Lib/test/test_MimeWriter.py) and documentation (update Doc/lib/libmimewriter.tex).
msg51915 - (view) Author: Björn Lindqvist (sonderblade) Date: 2007-06-06 16:13
The MimeWriter module is deprecated since 2.3, so no point in adding new functionality to it, is there?
msg51916 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2007-06-07 02:24
Thanks for the comment Bjorn.  The module has also been removed from py3k.

Jorg, you might want to consider using the email package.  I'm not sure if the functionality is in there, but if not, that's where the patch should come from.  Thanks for your effort.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44603
2007-02-23 00:18:27jsonncreate