salyh / elasticsearch-imap

IMAP and POP3 email importer for Elasticsearch (no river anymore)
Apache License 2.0
100 stars 25 forks source link

Error detecting flagchanges for message ... #24

Closed tehsphinx closed 7 years ago

tehsphinx commented 8 years ago

In the latest version I get this Error. Seems like first run is fine, but after the first interval it is thrown for ever mail it seems. Could be it happens only if there are already imported mails...

[14:26:44,256][ERROR][ParallelPollingIMAPMailSource][DefaultQuartzScheduler_Worker-2] Error detecting flagchanges for message <A3817872-8A34-4A91-8349-D149ACDB592F@somedomain.com>
java.io.IOException: No flaghashcode field for id 1::imap://somename@someserver/Sent Messages
    at de.saly.elasticsearch.importer.imap.maildestination.ElasticsearchMailDestination.getFlaghashcode(ElasticsearchMailDestination.java:193)
    at de.saly.elasticsearch.importer.imap.mailsource.ParallelPollingIMAPMailSource.fetch(ParallelPollingIMAPMailSource.java:343)
    at de.saly.elasticsearch.importer.imap.mailsource.ParallelPollingIMAPMailSource.recurseFolders(ParallelPollingIMAPMailSource.java:570)
    at de.saly.elasticsearch.importer.imap.mailsource.ParallelPollingIMAPMailSource.recurseFolders(ParallelPollingIMAPMailSource.java:580)
    at de.saly.elasticsearch.importer.imap.mailsource.ParallelPollingIMAPMailSource.fetch(ParallelPollingIMAPMailSource.java:540)
    at de.saly.elasticsearch.importer.imap.mailsource.ParallelPollingIMAPMailSource.fetchAll(ParallelPollingIMAPMailSource.java:116)
    at de.saly.elasticsearch.importer.imap.support.MailFlowJob.execute(MailFlowJob.java:64)
    at de.saly.elasticsearch.importer.imap.support.MailFlowJob.execute(MailFlowJob.java:91)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
salyh commented 7 years ago

fixed with https://github.com/salyh/elasticsearch-imap/commit/591cbd957ae96d2e3ec4cf1ad9b6eedcdce22fd1