scm: add convenience methods root-maildir, personal-addresses

For a store, so to avoid assoc-ref.
This commit is contained in:
Dirk-Jan C. Binnema
2025-11-29 12:43:38 +02:00
committed by Seth Ladygo
parent 52f44653b0
commit 8afef75b30
4 changed files with 30 additions and 5 deletions

View File

@ -393,7 +393,8 @@ implicit.
The store currently only exposes a few methods, described below.
@deffn {Scheme Procedure} mfind query [#:related? #f] [#:skip-dups? #f] [#:sort-field 'date]
@deffn {Scheme Procedure} mfind query [#:related? #f] [#:skip-dups? #f]
[#:sort-field 'date]
[#:reverse? #f] [#:max-results #f]
@end deffn
@ -491,8 +492,9 @@ This is equivalent to @code{(assoc-ref (store->alist) 'root-maildir)}.
Get the list of personal-addresses as defined in the @code{mu} database, which
may be empty.
This is equivalent to @code{(assoc-ref (store->alist) 'personal-addresses)}. Any
element in this list is either a plain e-mail address, or a PCRE-compatible
This is equivalent to @code{(or (assoc-ref (store->alist) 'personal-addresses) '())},
Any element in this list is either a plain e-mail address, or a PCRE-compatible
regular expression when the first and last characters are @t{/} (forward-slash);
see @t{pcre(3)} for further details.