|
NAMEmu cfind is the mu command to find contacts in the mu database and export them for use in other programs.SYNOPSISmu cfind [options] [<pattern>]DESCRIPTIONmu cfind is the mu command for finding contacts (name and e-mail address of people who were either an e-mail's sender or receiver). There are different output formats available, for importing the contacts into other programs.SEARCHING CONTACTSWhen you index your messages (see mu index), mu creates a list of unique e-mail addresses found and the accompanying name, and caches this list. In case the same e-mail address is used with different names, the most recent non-empty name is used.mu cfind starts a search for contacts that match a regular expression. For example: $ mu cfind '@gmail.com' would find all contacts with a gmail-address, while $ mu cfind Mary lists all contacts with Mary in either name or e-mail address. If you do not specify a search expression, mu cfind returns the full list of contacts. Note, mu cfind uses a cache with the e-mail information, which is populated during the indexing process. The regular expressions are Perl-compatible (as per the PCRE-library used by GRegex). OPTIONS
RETURN VALUEmu cfind returns 0 upon successful completion -- that is, at least one contact was found. Anything else leads to a non-zero return value:| code | meaning | |------+--------------------------------| | 0 | ok | | 1 | general error | | 2 | no matches (for 'mu cfind') | INTEGRATION WITH MUTTYou can use mu cfind as an external address book server for mutt. For this to work, add the following to your muttrc:set query_command = "mu cfind --format=mutt-ab '%s'" Now, in mutt, you can search for e-mail addresses using the query-command, which is (by default) accessible by pressing Q. ENCODINGmu cfind output is encoded according to the current locale except for --format=bbdb. This is hard-coded to UTF-8, and as such specified in the output-file, so emacs/bbdb can handle things correctly, without guessing.BUGSPlease report bugs if you find them at https://github.com/djcb/mu/issues.AUTHORDirk-Jan C. Binnema <djcb@djcbsoftware.nl>SEE ALSOmu(1), mu-index(1), mu-find(1), pcrepattern(3)
Visit the GSP FreeBSD Man Page Interface. |