| MCDS(1) | General Commands Manual | MCDS(1) |
mcds — mutt
CardDAV query
mcds |
[-c config_file]
[-hVvp] [-q
a | e |
n | t]
[-S] [-s
a | e |
n | t]
[-u URL]
term |
The mcds utility queries a CardDAV server
for requested information. Its primary function is to provide an address
query command for mutt(1).
The options are as follows:
-c
config_file-h-p-q
a |
e |
n |
t-S-s
a |
e |
n |
t-u
URL-Vmcds to standard output and exit.-vmcds to print
debugging messages about its progress.mcds, but can be overridden with command-line
arguments. Formatted as a list of “key
= value” pairs
separated by newlines.
The keys are as follows:
url
= URLverify
= [yes |
no]netrc
= [yes |
no]username
= USERNAMEmcds will not use the
~/.netrc file.password_file
= password.gpglibsecret
= [yes |
no]The mcds utility exits 0 on
success, and >0 if an error occurs.
Query a CardDAV server for email addresses corresponding to “Ben”:
$ mcds -u https://localhost/caldav.php/username/addressbook/ Ben ben@example.net Ben Smith ...
To use mcds with
mutt, add the following to your
muttrc(5):
set query_command="mcds -u https://localhost/caldav.php/username/addressbook/ '%s'"
This query can be simplified by putting the relevant values in ~/.mcdsrc:
url = https://localhost/caldav.php/username/addressbook/ verify = no netrc = yes
Now the query command can be shortened to:
set query_command="mcds '%s'"
When compiled against and after enabling libsecret in the
configuration file, mcds can save passwords provided
at the password prompt. To set, replace or clear the password, run
mcds -pS
The mcds utility is maintained by
Timothy Brown
<tbrown@freeshell.org>
| November 5, 2024 | Debian |