diff options
author | Catalin Marinas <catalin.marinas@gmail.com> | 2009-09-30 21:47:31 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@gmail.com> | 2009-09-30 21:47:31 +0100 |
commit | bb78b348dc213336c3056f982a8fd370bdc6f9d0 (patch) | |
tree | 406c4276cd38691aad30d671949be943aa7d1221 | |
parent | e929f0ac4e1a306468d9950ffb630c4d241166ea (diff) | |
download | stgit-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.py | 3 |
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) |