lovelysystems / robotframework-imaplibrary

Mail Library for Robot Framework
29 stars 87 forks source link

Fix for multipart-mime #19

Closed fkberthold closed 10 years ago

fkberthold commented 10 years ago

When using the library, I found that it was not processing multipart-mime files correctly.

I compared it to: http://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail

There I found that it looks like doing a 'decode()' on the output of fetch breaks email's message_from_string function. Just removing it seems to fix the problem.

Additionally I modified the timeout in the wait_for_mail keyword. The present version treats all actions inside it as though they were free. This takes them into account, and decreases the number of lines of code (by 1, very exciting).

memcmp commented 10 years ago

released: https://pypi.python.org/pypi/robotframework-imaplibrary/0.1.4