remove msetseq

pull/1/merge
Christian Neukirchen 8 years ago
parent 01b197c936
commit 69aa1740e5

@ -22,8 +22,7 @@ DESCRIPTION
mmime(1) to create MIME messages mmime(1) to create MIME messages
mrepl(1) to reply to mail mrepl(1) to reply to mail
mscan(1) to generate single line summaries of mail mscan(1) to generate single line summaries of mail
mseq(1) to deal with mail sequences mseq(1) to manipulate mail sequences
msetseq(1) to set the mail sequence
mshow(1) to render mail and extract attachments mshow(1) to render mail and extract attachments
msort(1) to sort mail msort(1) to sort mail
mthread(1) to arrange mail into discussions mthread(1) to arrange mail into discussions
@ -65,8 +64,8 @@ EXAMPLES
INBOX, oldest first. INBOX, oldest first.
mlist -s ~/Maildir/INBOX | msort -d | mscan mlist -s ~/Maildir/INBOX | msort -d | mscan
To operate on a set of mails in multiple steps, you can save a list of To operate on a set of mails in multiple steps, you can save a list of
mail as a sequence. E.g. add a call to msetseq to above command: mail as a sequence. E.g. add a call to mseq -S to above command:
mlist -s ~/Maildir/INBOX | msort -d | msetseq | mscan mlist -s ~/Maildir/INBOX | msort -d | mseq -S | mscan
Now mscan will show message numbers and you could look at the first five Now mscan will show message numbers and you could look at the first five
mails at once, for example: mails at once, for example:
mshow 1:5 mshow 1:5

@ -43,9 +43,7 @@ to reply to mail
.It Xr mscan 1 .It Xr mscan 1
to generate single line summaries of mail to generate single line summaries of mail
.It Xr mseq 1 .It Xr mseq 1
to deal with mail sequences to manipulate mail sequences
.It Xr msetseq 1
to set the mail sequence
.It Xr mshow 1 .It Xr mshow 1
to render mail and extract attachments to render mail and extract attachments
.It Xr msort 1 .It Xr msort 1
@ -117,9 +115,9 @@ INBOX, oldest first.
To operate on a set of mails in multiple steps, you can save a list of mail To operate on a set of mails in multiple steps, you can save a list of mail
as a sequence. as a sequence.
E.g. add a call to E.g. add a call to
.Ql msetseq .Ql mseq -S
to above command: to above command:
.Dl mlist -s ~/Maildir/INBOX | msort -d | msetseq | mscan .Dl mlist -s ~/Maildir/INBOX | msort -d | mseq -S | mscan
Now mscan will show message numbers and you could look at the first Now mscan will show message numbers and you could look at the first
five mails at once, for example: five mails at once, for example:
.Dl mshow 1:5 .Dl mshow 1:5

@ -19,7 +19,7 @@ See
for the message argument syntax. for the message argument syntax.
.Pp .Pp
When no messages are passed and standard input is from a pipe, When no messages are passed and standard input is from a pipe,
.Xr msetseq 1 .Ql mseq -S
will be called and will be called and
.Nm .Nm
is run on the resulting sequence. is run on the resulting sequence.
@ -38,7 +38,7 @@ displaying the current message if possible.
.Sh SEE ALSO .Sh SEE ALSO
.Xr less 1 , .Xr less 1 ,
.Xr mscan 1 , .Xr mscan 1 ,
.Xr msetseq 1 , .Xr mseq 1 ,
.Xr mshow 1 , .Xr mshow 1 ,
.Xr mmsg 7 .Xr mmsg 7
.Sh AUTHORS .Sh AUTHORS

@ -1,43 +0,0 @@
.Dd July 22, 2016
.Dt MSETSEQ 1
.Os
.Sh NAME
.Nm msetseq
.Nd set mail sequence
.Sh SYNOPSIS
.Nm
.Op Fl a
.Sh DESCRIPTION
.Nm
sets the mail sequence to the file names passed on standard input.
.Pp
When used in a pipe,
.Nm
will also output the full sequence, so it can be used in a pipe.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl a
Append to the mail sequence instead of replacing it.
.El
.Sh ENVIRONMENT
.Bl -tag -width Ds
.It Ev MAILMAP
File were the sequence is stored.
(Default:
.Pa ~/.santoku/map )
.El
.Sh EXIT STATUS
.Ex -std
.Sh AUTHORS
.An Christian Neukirchen Aq Mt chneukirchen@gmail.com
.Sh LICENSE
.Nm
is in the public domain.
.Pp
To the extent possible under law,
the creator of this work
has waived all copyright and related or
neighboring rights to this work.
.Pp
.Lk http://creativecommons.org/publicdomain/zero/1.0/

@ -50,7 +50,7 @@ fi
scantab= scantab=
if [ "$#" -eq 0 ] && ! [ -t 0 ]; then if [ "$#" -eq 0 ] && ! [ -t 0 ]; then
msetseq >/dev/null mseq -S >/dev/null
set -- : set -- :
scantab=//scan scantab=//scan
fi fi

@ -1,13 +0,0 @@
#!/bin/sh -e
# msetseq [-a] - store/append stdin as santoku seq (can be used as filter)
: ${MAILMAP:=~/.santoku/map}
if [ "$1" = -a ]; then
cat ${MAILMAP} - >"${MAILMAP}-"
else
cat >"${MAILMAP}-"
fi
mv "${MAILMAP}" "${MAILMAP}.old" || true
mv "${MAILMAP}-" "${MAILMAP}"
[ -t 1 ] || cat "${MAILMAP}"
Loading…
Cancel
Save