diff options
author | Kyle Meyer <kyle@kyleam.com> | 2021-06-10 14:59:43 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2021-06-11 13:36:54 -0400 |
commit | c901d3ec025773c8eae04257099fcdfe704085ac (patch) | |
tree | 738fb967fe89d468e5a5d8f56810c544bd9075bd /piem-notmuch.el | |
parent | 61952fe189a2a1e97b7156eaee831a5a1915dd57 (diff) | |
download | piem-c901d3ec025773c8eae04257099fcdfe704085ac.tar.gz |
Support reading inboxes from ~/.public-inbox/config
A client may mirror and configure inboxes locally. Doing so enables
fast local access to public-inbox-httpd and public-inbox-nntpd. And
with the next pubic-inbox release (v1.7), it will be necessary to set
up local externals for lei.
That can lead to a good amount of information being duplicated between
the piem-inboxes option and ~/.public-inbox/config. To avoid this,
let users set an option to enable collecting information from
public-inbox's configuration.
This relies on code getting the list of inboxes with
piem-merged-inboxes rather than inspecting piem-inboxes directly.
That should be okay because at this point there should be very few
third-party callers. An alternative would be to merge values from the
configuration into the value of piem-inboxes. That'd let callers
continue to inspect public-inboxes, but I'd prefer not to touch the
value of a user option.
Message-Id: <20210610185943.14155-5-kyle@kyleam.com>
Diffstat (limited to 'piem-notmuch.el')
-rw-r--r-- | piem-notmuch.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/piem-notmuch.el b/piem-notmuch.el index 2a5c525..1da554a 100644 --- a/piem-notmuch.el +++ b/piem-notmuch.el @@ -108,7 +108,8 @@ message itself if it looks like a patch." (defun piem-notmuch-show-get-public-inbox-link (mid) "Given the message-id MID, return the public-inbox url. -This will lookup the url in the `piem-inboxes' variable." +This will lookup the url in the inboxes returned by +`piem-merged-inboxes'." (piem-mid-url mid (or (piem-notmuch-get-inbox) (user-error "No inbox associated with current buffer")))) @@ -123,9 +124,10 @@ the mode if ARG is omitted or nil. This will add a new entry to `notmuch-show-stash-mlarchive-link-alist' which will determine -the archive url by reading the `piem-inboxes' variable. You can -also set `notmuch-show-stash-mlarchive-link-default' to \"piem\" -to make this the default behavior when calling +the archive url by searching the inboxes returned by +`piem-merged-inboxes'. You can also set +`notmuch-show-stash-mlarchive-link-default' to \"piem\" to make +this the default behavior when calling `notmuch-show-stash-mlarchive-link'." :global t :init-value nil |