From: Timothy <tecosaur@gmail.com>
To: Greg Minshall <minshall@umich.edu>
Cc: Bastien <bzg@gnu.org>, emacs-orgmode@gnu.org
Subject: Re: Grabbing the link to a message on the archive
Date: Thu, 30 Sep 2021 13:18:44 +0800 [thread overview]
Message-ID: <87v92i4p0c.fsf@gmail.com> (raw)
In-Reply-To: <1461762.1632974404@apollo2.minshall.org>
[-- Attachment #1.1: Type: text/plain, Size: 1071 bytes --]
Hi Greg,
> i love the searching on list.orgmode.org, but i have this recurrent
> dream: that some day each e-mail message will come with a header listing
> the URL for that message on <https://list.orgmode.org>. (though i also
> worry this might open us up to some sort of spam, or other, attack?)
>
> and, i’ll add my thanks and congratulations on 9.5!
>
> cheers, Greg
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))
└────
I expect this could be adapted to other clients (notmuch, gnus, etc.)
without much trouble :)
All the best,
Timothy
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: Type: text/org, Size: 1287 bytes --]
#+OPTIONS: html-postamble:nil H:5 num:nil ^:{} toc:nil author:nil email:nil tex:dvipng d:nil
#+STARTUP: hidestars indent inlineimages
:PROPERTIES:
:reply-to: nil
:attachment: nil
:alternatives: (utf-8 org)
:END:
Hi Greg,
> i love the searching on list.orgmode.org, but i have this recurrent
> dream: that some day each e-mail message will come with a header listing
> the URL for that message on https://list.orgmode.org. (though i also
> worry this might open us up to some sort of spam, or other, attack?)
>
> and, i'll add my thanks and congratulations on 9.5!
>
> cheers, Greg
If you use mu4e, the following may be of some interest:
#+begin_src elisp
(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))
#+end_src
I expect this could be adapted to other clients (notmuch, gnus, etc.)
without much trouble :)
#+begin_signature
All the best,\\
@@html:<b>@@Timothy@@html:</b>@@
#+end_signature
next prev parent reply other threads:[~2021-09-30 5:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-29 20:18 orgmode.org setup Bastien
2021-09-29 20:24 ` Samuel Banya
2021-09-29 20:38 ` Bastien
2021-09-29 21:20 ` Russell Adams
2021-09-29 21:29 ` Bastien
2021-09-30 4:00 ` Greg Minshall
2021-09-30 5:18 ` Timothy [this message]
2021-09-30 6:53 ` Grabbing the link to a message on the archive Greg Minshall
2021-10-01 15:07 ` Max Nikulin
2021-10-01 18:50 ` Greg Minshall
2021-10-02 14:26 ` Ihor Radchenko
2021-10-02 15:48 ` Max Nikulin
2021-10-02 16:12 ` Kyle Meyer
2021-10-04 0:20 ` Jorge P. de Morais Neto
2021-10-04 0:21 ` Jorge P. de Morais Neto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v92i4p0c.fsf@gmail.com \
--to=tecosaur@gmail.com \
--cc=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=minshall@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).