robotframework-imaplibrary
robotframework-imaplibrary copied to clipboard
wait_for_email seems to have issues with long subject searches
I've noticed that the wait_for_email test seems to struggle when using multi word subjects. Using two words is signifigantly slower than using a one word subject search, and using 3 or more words fails. Could be a problem with imaplib itself and how it handles strings.
For example I have a test waiting for emails with the subject "Karen Test Documents for eSignature". If I do a search for Karen, Karen Test, or eSignature, the test works. If I try doing a more specific subject search, the test fails. I extended a unit test to make sure the imaplib.search function was getting called correctly, (it was), so that makes me think there's a problem with imaplib itself.