-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad quote_re #10
Comments
I added a test to testsuite.py, based on sending myself an e-mail with a Subject of:
However, it works OK with the quoted_re as it is, so I don't necessarily think I'm testing it right. Assuming the message is in your inbox (and you're using gmail :-), and you know which message it is, can you try:
This will return something like:
Feel free to anonymize e-mail addresses and such. I'm mostly interested in the subject part of it. (Also, your guess about the last '?' is as good as mine at this point. It's been awhile!) |
Hello, |
Additionally, to check the imap, I use to run your program with "python -d" enabling the debug in the imap module. That shows all imap traffic. |
I have committed the new quoted_re in commit f063493 which should be pushed shortly. Thanks :-) |
I noticed the quote_re failed for a letter I have. It has the quoted text:
I updated quote_re in simpleimap.py to get it working to this:
quoted_re = re.compile(r'^"((?:[^"]|(?:\)|"|))"')
while you had:
quoted_re = re.compile(r'^"((?:[^"]|"|)?)"')
Do you think it will work?
Notice that I did not understand the last '?' you had so I removed it.
The text was updated successfully, but these errors were encountered: