CARDDAV-QUERY(1) | General Commands Manual | CARDDAV-QUERY(1) |
NAME¶
carddav-query - Query a CardDAV server for contact names and emails.
SYNOPSIS¶
carddav-query [-h] [-l <limit>] [-v] [-c <file>] [-s <section>] [-k <key_source>] [-C <key_cred_cmd>] [-s <server_url>] [-u <username>] [-p <password>] <term> [<term> ...]
This tool has been tailored for use as address-book-cmd in aerc-config(5).
OPTIONS¶
-h, --help
-v, --verbose
-l <limit>, --limit <limit>
Default: 10
-c <file>, --config-file <file>
Default: ~/.config/aerc/accounts.conf
-S <section>, --config-section <section>
-k <key_source>, --config-key-source <key_source>
Both <username> and <password> must be percent encoded. If <password> is omitted, it can be provided via --config-key-cred-cmd or --password.
Default: carddav-source
-C <key_cred_cmd>, --config-key-cred-cmd <key_cred_cmd>
Default: carddav-source-cred-cmd
-s <server_url>, --server-url <server_url>
-u <username>, --username <username>
-p <password>, --password <password>
POSITIONAL ARGUMENTS¶
<term>
EXAMPLES¶
These are excerpts of ~/.config/aerc/accounts.conf.
Fastmail¶
[fastmail] carddav-source = https://janedoe%40fastmail.com@carddav.fastmail.com/dav/addressbooks/user/janedoe@fastmail.com/Default carddav-source-cred-cmd = pass fastmail.com/janedoe address-book-cmd = carddav-query -S fastmail %s
Gmail¶
[gmail] carddav-source = https://johndoe%40gmail.com@www.googleapis.com/carddav/v1/principals/johndoe@gmail.com/lists/default carddav-source-cred-cmd = pass gmail.com/johndoe address-book-cmd = carddav-query -S gmail %s
SEE ALSO¶
AUTHORS¶
Originally created by Drew DeVault and maintained by Robin Jarry who is assisted by other open source contributors. For more information about aerc development, see https://sr.ht/~rjarry/aerc/.
2024-07-29 |