GithubHelp home page GithubHelp logo

Comments (5)

jamesridgway avatar jamesridgway commented on June 8, 2024 1

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.

github-actions avatar github-actions commented on June 8, 2024

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.

hilocz avatar hilocz commented on June 8, 2024

Have same problem, it's general problem, because I got this error against GroupWise IMAP server

from attachment-downloader.

jamesridgway avatar jamesridgway commented on June 8, 2024

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.

thaasoph avatar thaasoph commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.