Changed field "dest" to "to", added "date".
[mymail.git] / mymail.1
1 .TH "MYMAIL" "0.9" "February 2013" "Francois Fleuret" "User Commands"
2
3 \" This man page was written by Francois Fleuret <francois@fleuret.org>
4 \" and is distributed under a Creative Commons Attribution-Share Alike
5 \" 3.0 License.
6
7 .SH "NAME"
8
9 mymail \- A simple command line utility for indexing and searching mbox files
10
11 .SH "SYNOPSIS"
12
13 \fBmymail\fP [\fIoptions\fR] [\fI<mbox dir1>\fR [\fI<mbox dir2>\fR ...]]
14
15 .SH "DESCRIPTION"
16
17 \fBmymail\fP is a command line utility for to index mbox files and
18 perform quick searches based on sender, subject, etc.
19
20 It is similar in spirit to other existing software such as mu or
21 notmuch.
22
23 .SH "SEARCH SYNTAX"
24
25 The search conditions take the form of a single letter followed by a
26 space and a regexp, which can itself contain spaces. If the condition
27 is prefaced by the character "!" it is negated, and has to be false
28 for a mail to be selected.
29
30 .TP
31 \fBf <regexp>\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.
32 .TP
33 \fBt <regexp>\fR selects mails whose field To:, Cc:, or Bcc: matches the regexp.
34 .TP
35 \fBp <regexp>\fR selects mails whose field From, From:, Reply-To:, To:, Cc:, or Bcc: matches the regexp.
36 .TP
37 \fBs <regexp>\fR selects mails whose field Subject: matches the regexp.
38 .TP
39 \fBd <regexp>\fR selects mails whose field Date: matches the regexp.
40
41 .SH "EXAMPLES"
42
43 To index all the mbox files present in the directory ~/archives/mails/2010
44 (recursively) and create a data-base file /tmp/mymail/2010/mymail.db
45
46 .RS
47 .EX
48 mymail --index --db-file /tmp/mymail/2010/mymail.db ~/archives/mails/2010
49 .EE
50 .RE
51
52 To search in all the data-base files mymail.db located (recursively)
53 in /tmp/mymail, for all the mails having bob.something as sender or
54 recipient, without "spam" in the subject, and creating a result mbox
55 file /tmp/mymail/mbox
56
57 .RS
58 .EX
59 mymail --db-file mymail.db --db-root /tmp/mymail --search 'p bob.something' --search '!s spam' > /tmp/mymail.mbox
60 .EE
61 .RE
62
63 .SH "BUGS"
64
65 None known, probably many.
66
67 .SH "AUTHOR"
68
69 Written by Francois Fleuret <francois@fleuret.org> and distributed
70 under the terms of the GNU General Public License version 3 as
71 published by the Free Software Foundation. This is free software: you
72 are free to change and redistribute it. There is NO WARRANTY, to the
73 extent permitted by law.