From d3f14eaa55df4e33f564b9c8b09fc1d887999964 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Thu, 23 Feb 2017 20:25:21 +0100 Subject: [PATCH] mpick.1: improve EXAMPLES --- man/mpick.1 | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/man/mpick.1 b/man/mpick.1 index 5e1b9d2..20fb0e6 100644 --- a/man/mpick.1 +++ b/man/mpick.1 @@ -140,8 +140,24 @@ tests are given by the following EBNF: .Sh EXIT STATUS .Ex -std .Sh EXAMPLES -You can use mpick to filter mail by moving them across Maildir inboxes. -.Dl mv $(mlist ./INBOX | mpick -t 'from ~~~ \&"github\&"') ./github/cur +You can pick mails to move them into another +.Dv maildir . +.Pp +.Dl mv $(mlist ./INBOX | mpick -t 'from =~ \&"@github\&"') ./github/cur +.Pp +Or you can use +.Nm +to pick mails from the current sequence. +.Pp +.Dl mpick -t 'subject =~~ \&"mblaze\&"' | mscan +.Pp +A more advanced +.Nm +expressions to pick mails in a time span which are flagged as replied or not seen. +.Pp +.Bd -literal -offset indent +mpick -t 'date >= \&"2016-01-01\&" && date < \&"2017-01-01\&" && (replied || !seen)' +.Ed .Sh SEE ALSO .Xr lr 1 , .Xr mailx 1