.TH "MYMAIL" "0.9" "February 2013" "Francois Fleuret" "User Commands" \" This man page was written by Francois Fleuret \" and is distributed under a Creative Commons Attribution-Share Alike \" 3.0 License. .SH "NAME" mymail \- A simple command line utility for indexing and searching mbox files .SH "SYNOPSIS" \fBmymail\fP [\fIoptions\fR] [\fI\fR [\fI\fR ...]] .SH "DESCRIPTION" \fBmymail\fP is a command line utility for to index mbox files and perform quick searches based on sender, subject, etc. It is similar in spirit to other existing software such as mu or notmuch. .SH "SEARCH SYNTAX" The search conditions take the form of a single letter followed by a space and a regexp, which can itself contain spaces. If the condition is prefaced by the character "!" it is negated, and has to be false for a mail to be selected. .TP \fBf \fR selects mails whose field From, From:, or Reply-To: matches the regexp. Since the initial "From " line contains the date, this search criterion can be used to restrict to a certain year or month. .TP \fBd \fR selects mails whose field To:, Cc:, or Bcc: matches the regexp. .TP \fBp \fR selects mails whose field From, From:, Reply-To:, To:, Cc:, or Bcc: matches the regexp. .TP \fBs \fR selects mails whose field Subject: matches the regexp. .SH "EXAMPLES" To index all the mbox present in the directory ~/my_mboxes and create a db file /tmp/mymail.db .RS .EX mymail --index --db-file /tmp/mymail.db /tmp/my_mboxes .EE .RE To search in /tmp/mymail_2010.db and /tmp/mymail_2011.db for all mails having bob.something as sender or recipient, without "spam" in the subject .RS .EX mymail --search "p bob.something,!s spam" /tmp/mymail_2010.db /tmp/mymail_2011.db .EE .RE .SH "BUGS" None known, probably many. .SH "AUTHOR" Written by Francois Fleuret and distributed under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.