question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with IMAP import

See original GitHub issue

Description

I have a little issue with the IMAP import, that should pull documents from my self-hosted mail server but doesn’t seem to function at the moment.

Expected

Papermerge should pull and import documents attached by mail via IMAP.

Actual

Papermerge connects to the inbox, sees unread mails, but doesn’t actually import them into the system.

Info

  • OS: Dockerized app (ghcr.io/linuxserver/papermerge:latest)
  • Browser: Brave
  • Database: SQLite
  • Papermerge Version: 2.0

papermerge.conf.py configuration file

#DBTYPE = "mariadb"
DBUSER = "root"
DBPASS = "root"
DBHOST = "mariadb"
DBNAME = "papermerge"

MEDIA_DIR = "/data/media"
STATIC_DIR = "/app/papermerge/static"
MEDIA_URL = "/media/"
STATIC_URL = "/static/"

BINARY_STAPLER = "/usr/local/bin/stapler"

IMPORTER_DIR = "/importer"

IMPORT_MAIL_HOST = "obi-wan.yeahwh.at"
IMPORT_MAIL_USER = "docs-import@mailbox.tld"
IMPORT_MAIL_PASS = "pw"
IMPORT_MAIL_DELETE = True
IMPORT_MAIL_BY_USER = True

OCR_DEFAULT_LANGUAGE = "eng"

OCR_LANGUAGES = {
    "eng": "English",
    "deu": "Deutsch"
}

Relevant logs

[2021-07-12 17:19:50,281: INFO/Beat] Scheduler: Sending due task import_from_local_folder (papermerge.core.management.commands.worker.import_from_local_folder)
[2021-07-12 17:19:50,283: INFO/Beat] Scheduler: Sending due task import_from_email (papermerge.core.management.commands.worker.import_from_email)
[2021-07-12 17:19:50,283: INFO/MainProcess] Task papermerge.core.management.commands.worker.import_from_local_folder[0ca51d89-2e89-4537-af31-61f9d595f1d9] received
[2021-07-12 17:19:50,284: INFO/MainProcess] Task papermerge.core.management.commands.worker.import_from_email[c96275ec-3939-4eb8-bdd0-26d3b55df9d8] received
[2021-07-12 17:19:50,284: DEBUG/ForkPoolWorker-2] Celery beat: import_from_local_folder
[2021-07-12 17:19:50,285: INFO/ForkPoolWorker-2] Task papermerge.core.management.commands.worker.import_from_local_folder[0ca51d89-2e89-4537-af31-61f9d595f1d9] succeeded in 0.0008253850974142551s: None
[2021-07-12 17:19:50,286: DEBUG/ForkPoolWorker-2] Celery beat: import_from_email
[2021-07-12 17:19:50,605: DEBUG/ForkPoolWorker-2] IMAP Import: UNSEEN messages 1 count
[2021-07-12 17:19:50,644: INFO/ForkPoolWorker-2] Task papermerge.core.management.commands.worker.import_from_email[c96275ec-3939-4eb8-bdd0-26d3b55df9d8] succeeded in 0.3582966411486268s: None
[2021-07-12 17:20:19,569: INFO/Beat] Scheduler: Sending due task rebuild_the_tree (papermerge.core.management.commands.worker.rebuild_the_tree)
[2021-07-12 17:20:19,570: INFO/MainProcess] Task papermerge.core.management.commands.worker.rebuild_the_tree[a0a717a1-ab08-4c3f-a1a3-cce5d649d462] received

Is there anyway to further troubleshoot this problem?

Many thanks for working and developing on Papermerge - I love the product! ❤️

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
t-liecommented, Dec 1, 2021

I have also an issue with IMAP import and latest linuxserver docker image. It will always import all new mails/documents within admin account, even the sender mails fits to an other user account and the “routing by user” is activates within config file, and within settings of admin and other user.

0reactions
Grummeltiercommented, Feb 17, 2022

I have also an issue with IMAP import and latest linuxserver docker image. It will always import all new mails/documents within admin account, even the sender mails fits to an other user account and the “routing by user” is activates within config file, and within settings of admin and other user.

I have the same problem. Documents are forwarded to the superuser, even though the IMPORT_MAIL_BY_USER Settings is set True. The mail address of the user is the same als the send mail.

Mails are also complete ignored, when I send them from my iPhone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot issues with IMAP mailbox migration - Exchange
Go to recipients > migration. Select the + and choose Migrate to Exchange Online. Select IMAP migration and select next. Select Choose file, ......
Read more >
How to Troubleshoot IMAP mailbox migration issues?
Common Issues with IMAP Mailboxes Migration · Duplicate emails · The mailbox is full · Trouble signing into the account · A recipient...
Read more >
Troubleshoot errors when connecting an inbox with IMAP and ...
Troubleshoot errors when connecting an inbox with IMAP and SMTP · IMAP settings incorrect · IMAP authentication error · IMAP validation error ·...
Read more >
Imported IMAP folders are not visible or don't show any content
This issue happens because the export/import process maintains the IMAP folder properties which aren't compatible with a regular pst-archive ...
Read more >
Troubleshooting IMAP Migrations to Office 365
Can't create or start an IMAP migration batch · Recipients not found on the target server · Sign in issues · Duplicate emails...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found