Re: [PATCH] Add a MIME-Version header to e-mails
- From
- Catalin Marinas <catalin.marinas@gmail.com>
- Date
- Nov 7, 2006, 19:09 UTC
- Message-ID
- <b0943d9e0611071109w584f4f7fv3ba1b7dbd9413717@mail.gmail.com>
- In-Reply-To
- <b0943d9e0611070153s2a52f65k6ed4643e60a144b3@mail.gmail.com>
On 07/11/06, Catalin Marinas <catalin.marinas@gmail.com> wrote:
> I'll include these patches (maybe modified) and I'll try to fix > "import" as well.
I re-implemented parts of the mail and import commands (inspiring from your patches). They now use the email Python package. The mail command encodes the body to 7 or 8bit depending on non-ascii characters. The headers are QP-encoded. The import command can decode messages properly and can also handle multipart e-mails.
I still have to write a test script but my simple tests showed that it works. Please let me know if there is anything wrong (especially with the QP-encoding of the mail headers).
Thanks.