Comments (5)
Thanks for your feedback @thaasoph
1.2.4 includes better logging that will log out the folder names as they apear in Imbox - https://github.com/jamesridgway/attachment-downloader/blob/master/bin/attachment-downloader#L183
As this doesn't appear to be an actual bug as such I'll close this issue
from attachment-downloader.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
from attachment-downloader.
Have same problem, it's general problem, because I got this error against GroupWise IMAP server
from attachment-downloader.
I believe the gmail related issue is a bit more of a Gmail specific thing.
A fix should be available in 1.2.4. @dicarsio can you confirm if this fixes your issue please?
from attachment-downloader.
TL;DR:
Check your folder name and make sure your mail provider doesn't prefix the folder names with anything. In my case, all my folders had the prefix "INBOX."
I had the same problem but it wasn't a bug, the error message was just misleading. In my case the names of the folders I created in my IMAP mailbox were all prefixed with "INBOX.".
So, if I created the folder "scans" it's actual name was "INBOX.scans".
If you are using an unknown folder name with Imbox (the module used by this library for IMAP) it throws this error message. By setting my parameter --imap-folder
correctly, with the proper prefix, everything worked like a charm.
I figured out the prefix used by my provider simply by printing all of the folders found by Imbox like this:
from imbox import Imbox
import ssl
mail = Imbox("example.com",
username="[email protected]",
password="123456",
port=993,
ssl=True,
ssl_context=ssl.create_default_context(),
starttls=False)
print(mail.folders())
There is an open issue at Imbox that suggests to compare the supplied folder name with the folders returned by the inbox in order to print a more accurate error message:
martinrusev/imbox#38
Not a difficult thing to do but I haven't gotten around to making a pull request to fix it in either repository.
from attachment-downloader.
Related Issues (20)
- Feature suggestion: filetype filter HOT 1
- ERROR - 'Struct' object has no attribute 'date' HOT 1
- can't access attachment from GMAIL subfolder HOT 2
- ERROR - 'Struct' object has no attribute 'date' HOT 6
- Attachment not downloaded HOT 4
- Feature request - add IPTC tag on ingest HOT 1
- Install error HOT 4
- Folder name causing very odd crash? HOT 2
- Does not login to IMAP server (Google) HOT 3
- Fixed: Error parsing Date string HOT 1
- Install won't work anymore HOT 2
- OAuth2 Office 365 HOT 4
- [help wanted] what is the correct regexp for subject filter ? HOT 2
- Loglevel HOT 2
- Subject Regex HOT 1
- New error HOT 3
- Could you add from_email to filename template?
- jinja2 for date-after and date-before HOT 5
- pic frame question
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 attachment-downloader.