Pilerimport taking too long with big Mailbox

Issue #1242 closed
Tobias Eßinger created an issue

I have one mailbox with 18000+ E-Mails in it. I want to use a Cronjob to run the pilerimporter to get the mails via IMAP authentification.
If I run a import on this mailbox it takes more than 20 minutes to import the mails.

I ran the import once to fill up the archive, but now i just want to look at the new mails with every import.

Is there a possibility to just look at the mails of the last day, 10 minutes or something like this?

Thank you very much for any help!

Comments (11)

  1. Janos SUTO repo owner

    The imapfetch.py utility has better support for imap. So I’d recommend you to use it to download the emails, and then use pilerimport to import the downloaded emails.

    imapfetch.py also supports the --date option allowing you specify something like

    --date '(SINCE "16-May-2022")'
    

  2. Tobias Eßinger reporter

    Thank you very much for your help!

    But I cant specify a date…
    imapfetch.py: error: unrecognized arguments: --date (SINCE "16-May-2022")

    what did I do wrong?

  3. Janos SUTO repo owner

    I’m glad that it worked. One more advice: if possible I’d suggest to use smtp delivery or journaling to the archive, if it’s possible in your environment. As you can see, it’s a much more efficient method than the imap.

  4. Log in to comment