[issue27010] Attachments not detected from email library

2016-05-12 Thread Fedele Mantuano

New submission from Fedele Mantuano:

We are receiving a lot of mail with attachments not detected from email library.
I also tested Tika parser and it have the same issue:

mail: http://pastebin.com/kSEJnzSa
mail parsed: http://pastebin.com/7HaVPcTq

I can read only these content types:
multipart/mixed
multipart/alternative
text/plain
text/html

there isn't Content-Type: application/zip.

With a normal mail client I can read the attachment.

Where is the issue?

--
components: email
files: mail
messages: 265413
nosy: Fedele Mantuano, barry, r.david.murray
priority: normal
severity: normal
status: open
title: Attachments not detected from email library
versions: Python 2.7
Added file: http://bugs.python.org/file42830/mail

___
Python tracker 
<http://bugs.python.org/issue27010>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27010] Attachments not detected from email library

2016-05-12 Thread Fedele Mantuano

Fedele Mantuano added the comment:

Hi David,

I use email library to detect malicious attachments, so:

message = email.message_from_file(open('mail'))
for i in message.walk():
   do somethings

Not detected means that in for loop I can't see these attachments.

The same problem there is with tika parser (now I attached file).

I think that all automatics tools that using email library can't extract and 
post analyze these mails.

--
Added file: http://bugs.python.org/file42831/mail.json

___
Python tracker 
<http://bugs.python.org/issue27010>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-09-21 Thread Fedele Mantuano

Fedele Mantuano added the comment:

I developed a library that can get that malformed email part, but to get it I 
used the not correct type of defect "StartBoundaryNotFoundDefect" 
(https://github.com/SpamScope/mail-parser/blob/develop/mailparser/__init__.py#L44).
With this patch, I could get malformed email part with the correct defect.

--

___
Python tracker 
<http://bugs.python.org/issue27010>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com