mirror of https://github.com/leahneukirchen/mblaze
remove msetseq
parent
01b197c936
commit
69aa1740e5
@ -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/
|
@ -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…
Reference in New Issue