Goobook
Inspired by goobook. The package provides CLI tool to search from Google Contacts. It can be used from Mutt E-Mail Client.
Configuration
The configuration file is ${XDG_CONFIG_HOME}/goobook/config.yml
. The following is its format:
google:
client_command: $client_command
encryption:
encrypt_command: $encrypt_command
decrypt_command: $decrypt_command
$client_command
$client_command
is a command which will be run in sh
. The expect output is:
{
"client_id": "...",
"client_secret": "..."
}
The client_id
, client_secret
can be requested in https://console.cloud.google.com/apis/credentials.
$encrypt_command
and $decrypt_command
The commands are encrypt and decrypt command, with stdin as input, and stdout as output. The following are gnupg
example:
encryption:
encrypt_command: gpg --encrypt --armor --recipient $GPG_ID --no-tty --quiet
decrypt_command: gpg --decrypt --no-tty --quiet
These commands are used to protect refresh token, which is in $XDG_CACHE_HOME/goobook/refresh-token
.