jeremy-compostella / org-msg

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
GNU General Public License v3.0
278 stars 60 forks source link

Add support to insert a mailto link to a recipient #188

Closed jeremy-compostella closed 1 month ago

jeremy-compostella commented 6 months ago

It has become more and more popular in the last few years to refer to a recipient of an email by adding a mailto link. The org-msg-insert-recipient-mailto' function can be use to insert such a mailto link. It is bound to "C-c @" in place of the defaultorg-mark-subtree' org-mode function.

This commit addresses #179.

Suggested-by: Alessio Bolognino (molok)

molok commented 6 months ago

mail-extract-address-components returns (FULL-NAME CANONICAL-ADDRESS), but FULL-NAME can be nil. the code doesn't seem to handle that gracefully as I'm getting nil as an option.

completing-read also doesn't like duplicate options, so if there are 3 addressee with a nil FULL-NAME I got only a single nil option to choose from