Comments (4)
I added a test to testsuite.py, based on sending myself an e-mail with a Subject of:
test message "blablabla\\" test message
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:
import simpleimap
imap = simpleimap.SimpleImapSSL('imap.gmail.com')
imap.login('[email protected]', 'yourpassword')
imap.select('INBOX')
# returns ('OK', ['29']), where 29 is the message count
imap.fetch('29', '(ENVELOPE)')
# assuming the 29th message; otherwise, trial and error
This will return something like:
('OK', ['29 (ENVELOPE ("Tue, 23 Nov 2010 12:29:01 -0500" "test message \\"blablabla\\\\\\\\\\" test message" (("Ryan Tucker" NIL "rtucker" "arrogant-bastard.hoopycat.com")) (("Ryan Tucker" NIL "rtucker" "arrogant-bastard.hoopycat.com")) (("Ryan Tucker" NIL "rtucker" "arrogant-bastard.hoopycat.com")) ((NIL NIL "rtucker" "gmail.com")) NIL NIL NIL "<[email protected]>"))'])
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!)
from imap2maildir.
Hello,
I knew how to test that imap.fetch. It failed for me. Can you check if the backslashes got right into the e-mail source?
Anyway, from the quote_re it is clear that it had to fail, isn't it? :)
from imap2maildir.
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.
from imap2maildir.
I have committed the new quoted_re in commit f063493 which should be pushed shortly. Thanks :-)
from imap2maildir.
Related Issues (20)
- "Hole" in mailbox not being properly handled HOT 2
- Recursive fetch of all mailboxes (Feature request) HOT 3
- Failure for ~200k messages HOT 13
- Better IMAP error handling
- Turbo mode: don't do a SQL query for each uid HOT 1
- Better UID handling
- Handling \\ in the subject line HOT 1
- imap2imap branch: bring into master
- Work around Google marking fetched messages as read HOT 2
- TypeError in parseFetch HOT 1
- Missing Chat Logs HOT 4
- Invalid mailbox name HOT 5
- Search criteria problem HOT 1
- Connection attempts blocked by GMail "unsafe application" filter
- Warn that it must be run with python2
- Gmail requires localized --remote-folder="[Gmail]/All Mail" parameter
- Trouble pulling down all mail from Outlook.com IMAP? HOT 1
- Turbo mode skipping emails it shouldn't skip HOT 2
- Couldn't retrieve uid b'116' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imap2maildir.