ソースを参照

rename mcomp -> mcom, mrepl -> mrep

mcomp is in mtools already.

mfwd will be added in the future.
pull/2/head
Christian Neukirchen 6年前
コミット
d2d687478d
  1. 4
      Makefile
  2. 4
      README
  3. 4
      man/mblaze.7
  4. 16
      man/mcom.1
  5. 1
      man/mrep.1
  6. 16
      mcom
  7. 1
      mrep
  8. 1
      mrepl

4
Makefile

@ -6,7 +6,7 @@ BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
ALL = maddr magrep mdate mdeliver mdirs mflag mgenmid mhdr minc mlist mmime mpick mscan msed mseq mshow msort mthread
SCRIPT = mcolor mcomp mless mquote
SCRIPT = mcolor mcom mless mquote
all: $(ALL)
@ -40,7 +40,7 @@ install: FRC all
install -m0755 $(ALL) $(SCRIPT) $(DESTDIR)$(BINDIR)
ln -sf mless $(DESTDIR)$(BINDIR)/mnext
ln -sf mless $(DESTDIR)$(BINDIR)/mprev
ln -sf mrepl $(DESTDIR)$(BINDIR)/mcomp
ln -sf mrep $(DESTDIR)$(BINDIR)/mcom
install -m0644 man/*.[0-9] $(DESTDIR)$(MANDIR)/man1
FRC:

4
README

@ -13,7 +13,7 @@ DESCRIPTION
mblaze consists of a set of Unix tools that each do one job:
maddr(1) to extract addresses from mail
magrep(1) to find mails matching a pattern
mcomp(1) to write and send mail
mcom(1) to write and send mail
mdeliver(1) to deliver messages or import mailboxes
mdirs(1) to find Maildirs
mflag(1) to change flags (marks) of mail
@ -24,7 +24,7 @@ DESCRIPTION
mlist(1) to list and filter mail messages
mmime(1) to create MIME messages
mpick(1) to filter mail
mrepl(1) to reply to mail
mrep(1) to reply to mail
mscan(1) to generate single line summaries of mail
msed(1) to manipulate mail headers
mseq(1) to manipulate mail sequences

4
man/mblaze.7

@ -20,7 +20,7 @@ consists of a set of Unix tools that each do one job:
to extract addresses from mail
.It Xr magrep 1
to find mails matching a pattern
.It Xr mcomp 1
.It Xr mcom 1
to write and send mail
.It Xr mdeliver 1
to deliver messages or import mailboxes
@ -43,7 +43,7 @@ to list and filter mail messages
to create MIME messages
.It Xr mpick 1
to filter mail
.It Xr mrepl 1
.It Xr mrep 1
to reply to mail
.It Xr mscan 1
to generate single line summaries of mail

16
man/mcomp.1 → man/mcom.1

@ -1,24 +1,24 @@
.Dd July 22, 2016
.Dt MCOMP 1
.Dt MCOM 1
.Os
.Sh NAME
.Nm mcomp ,
.Nm mrepl
.Nm mcom ,
.Nm mrep
.Nd compose new, reply to, and send mail
.Sh SYNOPSIS
.Nm mcomp
.Nm mcom
.Op Ar recipient
.Nm mrepl
.Nm mrep
.Ar msg
.Sh DESCRIPTION
.Nm mcomp
.Nm mcom
creates a new draft mail and runs an editor.
After editing, a loop is started where the user can re-edit, send or
cancel the mail.
.Pp
.Nm mrepl
.Nm mrep
behaves like
.Nm mcomp
.Nm mcom
but fills the draft such that the mail will be a reply to the message
.Ar msg .
See

1
man/mrep.1

@ -0,0 +1 @@
.so man1/mcom.1

16
mcomp → mcom

@ -1,5 +1,5 @@
#!/bin/sh
# mcomp [TO] - compose mail
# mcom [TO] - compose mail
commajoin() {
sed ':a;N;s/\n/, /;$!b a'
@ -37,7 +37,7 @@ fi
{
case "$0" in
*mcomp*)
*mcom*)
echo -n "To: $1"
[ "$#" -ge 1 ] && shift
for rcpt; do
@ -55,7 +55,7 @@ fi
echo
echo
;;
*mrepl*)
*mrep*)
[ "$#" -eq 0 ] && set -- .
to=$(mhdr -h reply-to "$1")
[ -z "$to" ] && to=$(mhdr -h from "$1")
@ -111,11 +111,11 @@ while :; do
fi
exit 0
else
echo "mcomp: sendmail failed, kept draft $draft"
echo "mcom: sendmail failed, kept draft $draft"
exit 2
fi
else
echo "mcomp: re-run mmime first."
echo "mcom: re-run mmime first."
c=
fi
else
@ -128,17 +128,17 @@ while :; do
fi
exit 0
else
echo "mcomp: sendmail failed, kept draft $draft"
echo "mcom: sendmail failed, kept draft $draft"
exit 2
fi
else
echo "mcomp: message needs to be MIME-encoded first."
echo "mcom: message needs to be MIME-encoded first."
c=
fi
fi
;;
c|cancel)
echo "mcomp: cancelled draft $draft"
echo "mcom: cancelled draft $draft"
exit 1
;;
m|mime)
読み込み中…
キャンセル
保存