MCDS(1)
π MCDS(1) β the mutt CardDAV query bestie π
okay so this is a page from the General Commands Manual, and it's all about a lil utility called mcds. Grab a snack, we're doing this. π
β¨ NAME β¨
mcds β mutt CardDAV query π¦
πΈ SYNOPSIS πΈ
mcds [-c config_file] [-hVvp] [-q a | e | n | t] [-S] [-s a | e | n | t]
[-u URL] term
π DESCRIPTION π
The mcds utility queries a CardDAV server for whatever info you're asking for. Its main character job is being the address query command for mutt(1). That's the whole vibe. π
The options are as follows:
-cconfig_file β tells it to use a different config file. The default one is~/.mcdsrc. (Like, the og one. β¨)-hβ prints help text to standard output and then exits. bye bestie π«Ά-pβ prompts you for a password. yes, like that.-qa | e | n | t β the term you're querying against. The known terms are:aβ query for the address field.eβ query for the email field. This is the default. βnβ query for the full-name field.tβ query for the telephone field.
-Sβ saves the password. πΎ-sa | e | n | t β the search term you want returned. The known terms are:aβ query for the address field.eβ query for the email field. This is the default. βnβ query for the full-name field.tβ query for the telephone field.
-uURL β the URL of the CardDAV server. π-Vβ prints the version number and license info ofmcdsto standard output, then exits. π-vβ turns on verbose mode. This forcesmcdsto print debugging messages about its progress. so chatty, love that for it π£οΈ
π FILES π
~/.mcdsrcβ the configuration file. It's used to set default values formcds, but command-line arguments can override it. It's formatted as a list of βkey = valueβ pairs separated by newlines.
The keys are as follows:
url = URLβ the URL of the CardDAV server. πverify = [yes | no]β verify the server certificate if you're connecting over HTTPS. Disabled by default. β οΈnetrc = [yes | no]β enables reading the~/.netrcfile. Disabled by default. β οΈusername = USERNAMEβ the username to log in to the CardDAV server with. Heads up: if a username is specified,mcdswill not use the~/.netrcfile. π«password_file = password.gpgβ the GPG encrypted file containing the password for the CardDAV server. πlibsecret = [yes | no]β use the library βlibsecretβ to store and retrieve the password. ποΈ
~/.netrcβ used to grab your username and password when authenticating with the CardDAV server, if you haven't specified your username and password file in~/.mcdsrc. π§
π EXIT STATUS π
The mcds utility exits 0 on success, and >0 if an error occurs. simple as that, no cap π
π EXAMPLES π
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 libsecret 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
π¦ SEE ALSO π¦
curl(1), gpg2(1), mutt(1), muttrc(5), netrc(5)
π AUTHORS π
The mcds utility is maintained by Timothy Brown <tbrown@freeshell.org> π«Ά
and that's the whole page, bestie!! this one shipped from <strong>Debian</strong> on <strong>November 5, 2024</strong> β ty for reading, mwah πβ¨
π¦ where this page comes from
- debian trixie: mcds 1.9-2 Β· GPL-3.0-or-later
- ubuntu questing: mcds 1.9-2build1
- ubuntu stonking: mcds 1.10-1 Β· GPL-3.0-or-later
- Copyright (C) 2014 Timothy Brown
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms