X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mymail.1;h=abfd07732cfbe1b324c795ac2b7d189d12463816;hb=e940e981c95741ead06c3a862e070f7183f8c90c;hp=92dbb56d551eb2549e41fd7a569bfe103518300d;hpb=2c712954955941689736bf5e9f3888a623af616c;p=mymail.git diff --git a/mymail.1 b/mymail.1 index 92dbb56..abfd077 100644 --- a/mymail.1 +++ b/mymail.1 @@ -30,30 +30,33 @@ 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. +\fBt \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. +.TP +\fBd \fR selects mails whose field Date: matches the regexp. .SH "EXAMPLES" -To index all the mbox present in the directory ~/my_mboxes and create -a db file /tmp/mymail.db +To index all the mbox files present in the directory ~/archives/mails/2010 +(recursively) and create a data-base file /tmp/mymail/2010/mymail.db .RS .EX -mymail --index --db-file /tmp/mymail.db /tmp/my_mboxes +mymail --index --db-file /tmp/mymail/2010/mymail.db ~/archives/mails/2010 .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 +To search in all the data-base files mymail.db located (recursively) +in /tmp/mymail, for all the mails having bob.something as sender or +recipient, without "spam" in the subject, and creating a result mbox +file /tmp/mymail/mbox .RS .EX -mymail --search "p bob.something,!s spam" /tmp/mymail_2010.db /tmp/mymail_2011.db +mymail --db-file mymail.db --db-root /tmp/mymail --search 'p bob.something' --search '!s spam' > /tmp/mymail.mbox .EE .RE