Joplin Export: Export emails from Thunderbird to Joplin

I'm a Thunderbird user and want to export emails to Joplin occasionally. This is the outcome:

After some more time of using and testing it, I will try to release it at the Thunderbird addon store. Not sure how difficult it will be, though.

Feedback is welcome :slight_smile:

Related discussions and comments:

18 Likes

That's brilliant, thanks for sharing this. I'll give it a try soon.

As for publishing it to the add-on store, if it's like Firefox add-ons it shouldn't be too difficult. We had some issues because we need full access to the page (so they ask for the source code, etc.) but in this particular case it should be fine.

1 Like

And to think I recently ditched Thunderbird for Mailspring...

1 Like

I dream of being able to use this. If only my work email could work on thunderbird...

1 Like

On first try it seems to work well. It even imports HTML emails and convert them to Markdown and includes images.

There are some possible improvements, like the ability to export only the selected part of the email (since often you don't want to have all the quotes below), and more status info when there's an error, but other than that it's already very good.

2 Likes

Thanks for the quick test!

It took some time until I realized that the email can be in HTML or text format. The user can chose a preferred type at the settings. If it's not available, there is a fallback to the other type.

I will add your suggestions to my todo list. Not sure whether Thunderbird provides a method to get the current selection, but I will check it.

Btw. which OS did you use? I'm not too confident that everything works on windows/mac, since I only use linux.

That sounds like a really awesome feature/add-on! I will instantly use it, when it's available in store :slight_smile:

1 Like

I used macOS and didn't have any issue.

It's a useful thunderbird's add-on. Thank you very much.
Joplin 2.7.15 (prod, linux)
Ubuntu 20.04
Thunderbird 91.6.1 (64-bit)

1 Like

I will wait until it is available to test because I don't understand how to install it manually. Usage question: is it possible to share a mail as a todo?

You could download it from here, unzip it and import it as shown in the demo video in the readme. As you said, it's not really intuitive. However, I plan to release the addon this month, dependent on how much free time I have and how long the Thunderbird release process takes.

About the todo: Currently it's not possible to export as todo, but it should be trivial to add it. I will do that soon. Note that there is a limitation: For switching between "export as note" and "export as todo", you would have to navigate to the settings everytime.

That's great thanks :smiley::+1:

I just installed and tested it, it seems to work very well. Thanks to you, it's very useful.
Maybe something to add sometime. I am one of the people who hide the mail toolbar in Thunderbird. It would be useful for this use case to have the possibility to configure a keyboard shortcut.

Thanks for testing!

A keyboard shortcut would be convenient indeed. I will check if it's possible, but I'm doubtful that a third-party addon can modify them: Keyboard shortcuts - perform common Thunderbird tasks quickly | Thunderbird Help. Anyway I will check if there is a workaround.

Edit: Probably I misunderstood the link. Adding a shortcut is possible via the commands API. Since "Ctrl+J" and "Ctrl+Shift+J" are taken already, I would add "Ctrl+Alt+J" for now. Or maybe there is a more convenient option?

Hi,

I think it must be possible. I use for example an extension (cb_thunderlink) that plays the role of callback links to open messages from another application (often Joplin) and that allows keyboard shortcuts.

To dig...

That's a good example, since the addon is open source (and I understand what's happening in the code :smiley: ). It should be possible to add the shortcut like it's done there.

2 Likes

Short update: The following features should be available at upstream now:

  • Export a selected part of the email. For now it's only possible to export text. Images are a bit tricky and not working, yet.
  • Export an email as todo.
  • Export by hotkey. Default is "Ctrl+Alt+J".
  • Trim the subject by a regex. This is useful for removing "Re:"/"Fwd:"/... from the start of the subject. For me particularly ^(((Re|Fw|Fwd):|(\[.*\])) ?)* was useful.
2 Likes

Great ! Thanks you. And can you share the new .xpi waiting official integration in plugins repo ? :wink:

Sure, the current version is at https://github.com/marph91/thunderbird-joplin-export/suites/5910877651/artifacts/201658526. Just unzip once and then you should have the .xpi.

2 Likes

Thanks for this! It's just what I've wanted! I'm running Thunderbird 91.7.0 under openSUSE Tumbleweed. Here are two suggestions for your list:

  • Ability to select the Joplin folder for each export. (I don't mind the extra interaction, particularly if the extension remembers the last selected folder.
  • An option to include mail headers, as displayed by Thunderbird.

Thanks!

1 Like