KNHaw / ThunderbirdObsidianClipper

A Thunderbird extension to clip messages to the Obsidian notetaking application.
Mozilla Public License 2.0
16 stars 0 forks source link

[FR] - Extract sender name only #25

Open bepolymathe opened 4 months ago

bepolymathe commented 4 months ago

Hi @KNHaw

Thanks again for this plugin which does a useful job. I miss one thing. The following placeholder _MSGAUTHOR extracts the sender information in the following format.

Firstname Name <mail@mail.com>

I'd rather just extract the name so that I can insert a link in my vault... with [[_MSGAUTHOR]]

I want :

[[Firstname Name]] <mail@mail.com>

Instead of:

[[Firstname Name <mail@mail.com>]]

Could you add this possibility, as is the case with the date, which can be broken down? You could separate _MSGAUTHOR and _MSGEMAIL ... or something like that.

Thanks in advance.

KNHaw commented 4 months ago

I think the field that is pulled from the message is preformatted that way and my concern is that adding parsing to chop it up could break email addresses formatted slightly differently (i.e "bill@microsoft.com" or "bill@microsoft.com" or the like). I will put this in the queue though to see if I can find a solution that doesn't break other formatting.

bepolymathe commented 4 months ago

Hi @KNHaw

Thanks for your reply. To help with the investigation, I looked into "thunderbird obsidian export". It seems that this plugin achieves this by using thunderbird’s messageheader ... and using trim option

https://github.com/hogmoff/thunderbird-obsidian-export/issues/1#issuecomment-1979530454

Inspiration by joplin plugin It would be very useful if you could find a solution. Thanks for your plugin and efforts 👍🏼

KNHaw commented 2 days ago

I wanted to update the status of the work here and let you know I have not forgotten about this. I have been working since August to implement HTML email clipping (a lot bigger than I had expected!) and just submitted it to Thunderbird. The next release, hopefully at the end of December, will be closing out a lot of miscellaneous issues. I'm hoping this will be one of them.

bepolymathe commented 2 days ago

Super. Great news. Thanks for that ! 👍🏼