X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mymail.1;h=95b83f0cd9ce42c61b8ed6bb4f086ad25ddfda58;hb=874926dc3a56a9127e32c757db0c32a4388c958b;hp=b79b4b917830c4329817c067fe98d8fd6c217dbd;hpb=248736d0d3900bce18c1c6afd9f3dc2d93df2cae;p=mymail.git diff --git a/mymail.1 b/mymail.1 index b79b4b9..95b83f0 100644 --- a/mymail.1 +++ b/mymail.1 @@ -40,11 +40,14 @@ set the db root path for recursive search \fB-l \fR, \fB--db-list \fR set the semicolon-separated list of db files for search .TP +\fB-m \fR, \fB--mbox-pattern \fR +set the mbox filename pattern for recursive search +.TP \fB-s \fR, \fB--search \fR search for matching mails in the db file. Multiple search requests can be combined, and only mails fulfilling all of them will be extracted. .TP -\fB-d \fR, \fB--db-file \fR +\fB-d \fR, \fB--db-file-generate \fR set the db filename for indexing .TP \fB-i\fR, \fB--index\fR @@ -118,24 +121,28 @@ selects mails received the most recent such day of the week The command +.P .nf .B mymail --db-file /tmp/mymail/2010-2011/mymail.db \e -.B --index \e -.B ~/archives/mails/2010 ~/archives/mails/2011 +.B \ \ \ \ \ \ \ --index \e +.B \ \ \ \ \ \ \ ~/archives/mails/2010 ~/archives/mails/2011 +.fi will index all the mbox files present in the directories ~/archives/mails/2010 and ~/archives/mails/2011 (recursively) and create an index file /tmp/mymail/2010-2011/mymail.db And +.P .nf .B mymail --db-pattern '\.db$' --db-root /tmp/mymail \e -.B --output /tmp/mymail.mbox \e -.B --search 'p bob.something' \e -.B --search '!s spam' \e -.B --search 'month' +.B \ \ \ \ \ \ \ --output /tmp/mymail.mbox \e +.B \ \ \ \ \ \ \ --search 'p bob.something' \e +.B \ \ \ \ \ \ \ --search '!s spam' \e +.B \ \ \ \ \ \ \ --search 'month' +.fi will search in all the database files *.db located (recursively) in /tmp/mymail, for all the mails having "bob.something" as sender or recipient, without "spam" in the subject, received over the last 31