chiark / gitweb /
Fix the importing of multipart emails
authorCatalin Marinas <catalin.marinas@gmail.com>
Fri, 22 Jun 2007 21:21:56 +0000 (22:21 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Fri, 22 Jun 2007 21:21:56 +0000 (22:21 +0100)
commitf21ba53677d2e5820f2dc1774871bf8464729eea
tree8c0f9c66dcd1962fafacb30f51a2ff4a6aaef17e
parentd436b1dac150bb6cd6def2da612aba7b5b950ee8
Fix the importing of multipart emails

The old version was assuming that there are only two parts - the
description and the diff. However, it was failing for PGP-signed or
other multipart encoded emails. This patch generates a full text from
all the text/plain parts and parses it afterwards for description and
diff. This solves the combination of inline or attached patches
together with PGP-signed messages.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/imprt.py