I use a simple python script, which receives an inconing email via stdin and extracts all attachments. It then calculates the md5 value of them and hands them over to an online virus scanner.
You can see the code at
[login to view URL]
It's only 1 file with about 100 lines of code.
However, the current version is broken: Some attachments are not extracted correctly and as far as I can see it has to do with multipart emails.
I'm not a python developer, so I need someone who can fix the script.
Currently, the problematic point looks like this:
...
for part in [login to view URL]() : # iterate through all the MIME-parts
pl = part.get_payload(decode=True) # get the "body" of the MIME-part
if isinstance(pl, str) : # is there a real payload?
...
This seems to not catch all attachments.
If you agree then you need to fix the script and I need to check if it works and that's it. :-)
Hello!
I have expirience working with email in Python, I worked in project that parses emails and hands them over to other services.
It would be really great if you could provide examples of emails, where attachments are not extracted correctly that will help me do things faster and better.
Thanks!
$32 USD în 1 zi
5,0 (1 recenzie)
1,0
1,0
7 freelanceri plasează o ofertă medie de $31 USD pentru proiect
Hello,
i'll be glad to fix the problem for you . As you can see in my profile , i have an experience with python programming . please refer to my previous projects feedbacks to have an idea about my work quality. looking forward to receive a message from you to discuss in more details.
Best regards;
<<<< i can help you low budget PLEASE CHAT ME >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
___________________________________________________________________________________________________________________