[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grabbing the link to a message on the archive
From: |
Jorge P . de Morais Neto |
Subject: |
Re: Grabbing the link to a message on the archive |
Date: |
Sun, 03 Oct 2021 21:20:12 -0300 |
Hi Timothy,
Em [2021-09-30 qui 13:18:44+0800], Timothy escreveu:
> If you use mu4e, the following may be of some interest:
> ┌────
> │ (defun +mu4e-ml-message-link (msg)
> │ (cond
> │ ((string= "emacs-orgmode.gnu.org" (mu4e-message-field msg :mailing-list))
> │ (message "Link %s copied to clipboard" (gui-select-text (format
> "https://list.orgmode.org/%s" (mu4e-message-field msg :message-id)))))
> │ (t (user-error "Mailing list %s not supported" (mu4e-message-field msg
> :mailing-list)))))
> │ (add-to-list 'mu4e-view-actions (cons "link to message ML"
> #'+mu4e-ml-message-link t))
> └────
In this snippet you call ~cond~ with three arguments, but it takes only
two.
Regards
--
- Many people hate injustice but few check the facts. This provokes
misinformation. Ask me about <https://stallmansupport.org>
- I am Brazilian. I hope my English is correct and I welcome feedback.
- Free Software Supporter: https://www.fsf.org/free-software-supporter
- If an email of mine arrives at your spam box, please notify me.