Fixing a simple python script
$10-45 USD
Maksettu toimituksen yhteydessä
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
[url removed, login to view]
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 [url removed, login to view]() : # 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. :-)
Projektin tunnus: #9486193
Tietoa projektista
7 freelanceria on tarjonnut keskimäärin $31 tähän työhön
Hi, I am an expert Python Developer and can help you to fix issues in your python script. Please, have a look at my profile. Regards, Anurag Koul
Hello, I have done a few python programs. Can start working on your task immediately. If you give some samples, it would be great.
<<<< i can help you low budget PLEASE CHAT ME >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ___________________________________________________________________________________________________________________