Crate muttmates

Source
Expand description

§muttmates

§What is it for?

It’s a simple tool for retrieving email addresses in a mutt compatible format from local vcf files. Nothing more, nothing less.

§What is it doing?

muttmates reads all your vcf files and given you have provided a query it will only print out matched contacts in a form, that mutt is happy with. muttmates expects to find vcf files in your home directory at ~/.vcards but you can also pass a single file or directory with the -c option.

§How do I configure mutt?

Given that you use the default directory for your vcf files, add the following line to your ~/.muttrc file

set query_command="muttmates %s"

Re-exports§

pub use card::*;

Modules§

card
fields

Functions§

read_cards
Reads VCards of one or multiple files and returns a vector of splits
read_file
Read the content of a file into a String
vcf_files
Returns a vector of vcf files in a directory to which the user has permissions