Skip to content

Commit

Permalink
rename mcomp -> mcom, mrepl -> mrep
Browse files Browse the repository at this point in the history
mcomp is in mtools already.

mfwd will be added in the future.
  • Loading branch information
leahneukirchen committed Aug 8, 2016
1 parent d453a5a commit d2d6874
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions man/mblaze.7
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
16 changes: 8 additions & 8 deletions man/mcomp.1 → man/mcom.1
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions man/mrep.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.so man1/mcom.1
16 changes: 8 additions & 8 deletions mcomp → mcom
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# mcomp [TO] - compose mail
# mcom [TO] - compose mail

commajoin() {
sed ':a;N;s/\n/, /;$!b a'
Expand Down Expand Up @@ -37,7 +37,7 @@ fi

{
case "$0" in
*mcomp*)
*mcom*)
echo -n "To: $1"
[ "$#" -ge 1 ] && shift
for rcpt; do
Expand All @@ -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")
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down
1 change: 1 addition & 0 deletions mrep
1 change: 0 additions & 1 deletion mrepl

This file was deleted.

0 comments on commit d2d6874

Please sign in to comment.