Previous: , Up: Miscellaneous functionality   [Contents][Index]


4.2 Copying public-inbox URLs

When referring to a message from a public-inbox archive, a common format to use is a URL that points to a specific archive and ends with /$INBOX/$MESSAGE_ID, e.g., https://public-inbox.org/meta/20190108015420.GA28903@dcvr. Calling piem-copy-mid-url (available in the piem-dispatch transient) constructs such a URL, using the message ID and inbox asscociated with the current buffer, and then copies the URL to the kill ring. When a prefix agument is given, browse-url is called after copying the URL.

Note that EWW works nicely with public-inbox’s HTTP interface. If you’d prefer it to be invoked even though it’s not your default browser (as configured by browse-url-browser-function), you can set piem-browse-url-browser-function to eww-browse-url.

For notmuch.el users, there’s an additional entry point for copying public-inbox URLs: enabling piem-notmuch-mode adds a “piem” candidate to archives offered by notmuch-show-stash-mlarchive-link and notmuch-show-stash-mlarchive-link-and-go.