-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
IMAP import from gmail isn't working #339
Comments
What i see so far is that contains_attachments always returns false. |
@DrVanSteiner, can you please check if release 2.0.0rc48 fixes this issue ? |
No it's not fixed with that version. The worker still only reports the number of unseen messages and nothing happens. |
Can confirm the issue. Mails are correctly identified, but not imported. Should be a bug in Did some basic testing.
@ciur: So this seems to be a bug in your validation Note: The IMAPClient library provides a special gmail search function. Maybe we can utilize this instead of
|
@l4rm4nd, thanks for investigation; I will have a look as well. |
No. By adding gmail, gmx... etc specific code is simple no go. Doing so, long term will lead to very brittle code base. I think the problem is in contains_attachments method - it just looks wrong and difficult to understand how it does what it is supposed to do. I will refactor |
Fix is now part of version 2.0 |
I post here because i configured my papermerge.conf like this : IMPORT_MAIL_HOST ="imap.gmail.com" The thing is : ALL my mails with attachments are imported by papermerge... Not only the ones coming from FromBrotherDevice@brother.com Is there any way to fix this ? |
You have to set IMPORT_MAIL_BY_USER = "FromBrotherDevice@brother.com" to True, IMPORT_MAIL_BY_USER = True and then configure the rest in the papermerge webui |
Description
IMAP import from gmail isn't working in Docker environment running version 2.0.0rc45 and before.
Expected
Attachements of Emails get imported
Actual
Papermerge can connect the IMAP Server and reports the count of UNSEEN messages but afterwards nothing happens not even an error. (Even with logging enabled as described here: #118 (comment)) i see only the following in the logfile:
MAP Import: UNSEEN messages 1 count
IMAP Import: UNSEEN messages 1 count
IMAP Import: UNSEEN messages 2 count
IMAP Import: UNSEEN messages 1 count
IMAP Import: UNSEEN messages 1 count
IMAP Import: UNSEEN messages 2 count
IMAP Import: UNSEEN messages 2 count
Configuration of IMAP:
IMPORT_MAIL_HOST = "imap.gmail.com"
IMPORT_MAIL_USER = "blabla"
IMPORT_MAIL_PASS = "blabla"
IMPORT_MAIL_BY_USER = False
IMPORT_MAIL_BY_SECRET = False
IMPORT_MAIL_DELETE = False
(Importing from local folder is working...)
Info:
The text was updated successfully, but these errors were encountered: