aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@gmail.com>2009-09-30 21:47:31 +0100
committerCatalin Marinas <catalin.marinas@gmail.com>2009-09-30 21:47:31 +0100
commitbb78b348dc213336c3056f982a8fd370bdc6f9d0 (patch)
tree406c4276cd38691aad30d671949be943aa7d1221
parente929f0ac4e1a306468d9950ffb630c4d241166ea (diff)
downloadstgit-bb78b348dc213336c3056f982a8fd370bdc6f9d0.tar.gz
Allow importing of 'application/octet-stream' attachments
Some mail clients use this MIME type rather than text/plain. Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
-rw-r--r--stgit/commands/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/stgit/commands/common.py b/stgit/commands/common.py
index 0d39148..0922b5d 100644
--- a/stgit/commands/common.py
+++ b/stgit/commands/common.py
@@ -424,7 +424,8 @@ def parse_mail(msg):
# the rest of the message
msg_text = ''
for part in msg.walk():
- if part.get_content_type() == 'text/plain':
+ if part.get_content_type() in ['text/plain',
+ 'application/octet-stream']:
msg_text += part.get_payload(decode = True)
rem_descr, diff = __split_descr_diff(msg_text)