joplin / plugin-email

This plugin adds the ability to fetch email messages and converts them to Joplin notes in various formats, either by monitoring any new or unread messages from a specific email address or a specific mailbox, or by uploading downloaded email messages to the plugin without having to be logged in.
29 stars 4 forks source link

No emails processed with newer versions of Joplin #30

Closed djvreeman closed 8 months ago

djvreeman commented 8 months ago

I've been using this email plugin successfully for several months. Around version 2.12.19 of Joplin (I'm not exactly sure of the version), it stopped being able to process any emails from the selected folder. Authentication to the email server works fine.

In the logs, everything looks ok: PluginService: "Loading plugin from /Users/dvreeman/.config/joplin-desktop/cache/Bishoy.EmailPlugin" joplin.plugins: "Finished running onStart handler: Bishoy.EmailPlugin (Took 3289ms)"

However, there are a few issues in the Dev Tools Console output -- I can't determine their significance:

Screenshot 2024-01-01 at 6 45 08 PM
chopstik commented 8 months ago

Similar issue to https://github.com/joplin/plugin-email/issues/28

djvreeman commented 8 months ago

After more investigation and writing a python script to do similar email processing as this plugin, I've discovered that the issue was on problematic email in the queue. That email hangs the plugin and kills the processing for all subsequent ones.

So what looked like an issue with a new Joplin version was really just stuck on a particularly formatted (or ill-formatted) message. I can't tell exactly what about the message causes the plugin (and processing with python's BeautifulSoup library) to hang (it does have the deprecated

tags). But the problem is not as described here, so I am closing this ticket.

chopstik commented 8 months ago

Any chance you could post a gist of the Python script you used to check the email @djvreeman? Be great to see if its an email that's causing the issues I'm seeing with email retrieve.

djvreeman commented 7 months ago

In case it's helpful, here's a link to my python script for processing unread messages in an IMAP inbox folder and turning them into Joplin notes. It reads the IMAP and Joplin API info from a config file, an example of which is here..

As I mentioned above, this script too dies on the problematic email in my queue, but it allowed me to figure out what was going on.