.TH MU CFIND 1 "March 2011" "User Manuals" .SH NAME mu cfind \- find contacts in the .B mu database and/or export .SH SYNOPSIS .B mu cfind [options] [] .SH DESCRIPTION \fBmu cfind\fR is the \fBmu\fR command for finding \fIcontacts\fR (name and e-mail address of people who were either the sender or receiver of mail). There are different output formats for the contacts to enable importing them into other tools. .SH SEARCHING CONTACTS When you index your messages (see \fBmu index\fR), \fBmu\fR creates a list of unique e-mail addresses found, and the accompanying name. In case the same e-mail address is used with different names, the most recent non-empty name is used. \fBmu cfind\fR starts a search for contacts that match a \fIregular expression\fR. For example: .nf $ mu cfind '@gmail\.com' .fi would find all contacts with a gmail-address, while .nf $ mu cfind Mary .fi would find all contact with Mary in either name or e-mail address. If you do not specify any search expression, \fBmu cfind\fR will return the full list of contacts. The regular expressions are Perl-compatible (as per the PCRE-library). .SH OPTIONS .TP \fB\-\-format\fR=\fIplain|mutt|wl|org-contact|bbdb|csv\fR set the output format to the given value. The following are available: .nf | --format= | description | |-------------+-------------------------------| | plain | default, simple list | | mutt | mutt alias-format | | wl | wanderlust addressbook format | | org-contact | org-mode org-contact format | | bbdb | BBDB format | | csv | comma-separated values | .fi .SH RETURN VALUE \fBmu cfind\fR returns 0 upon successful completion; if it the a search was performed, there needs to be a least one match. Anything else leads to a non-zero return value, for example: .sh | code | meaning | |------+--------------------------------| | 0 | ok | | 1 | general error | | 2 | no matches (for 'mu cfind') | .si .SH BUGS Please report bugs if you find them: .BR http://code.google.com/p/mu0/issues/list If you have specific messages which are not matched correctly, please attach them (appropriately censored of course). .SH AUTHOR Dirk-Jan C. Binnema .SH "SEE ALSO" .BR mu(1) mu-index(1) mu-find(1)