Commit Graph

133 Commits

Author SHA1 Message Date
itojun
dbf388bc4f calloc() arg mistake. it's (nelem, size). from openbsd 2002-08-12 02:40:20 +00:00
ross
ecb9aca3ae The print/Print pair just cries out for a corresponding save/Save feature,
so implement the "missing" Save command -- save all the headers.
2002-03-29 15:10:02 +00:00
ross
3038d491a5 only count header lines that are actually going to be displayed
when deciding whether to run $PAGER, otherwise it may start up the
pager for a two line message if all 55 header lines are the subject
of a .mailrc ignore command.

(And no, I don't find this program directly useful for reading
today's mail volumes, but it's great as a component run from wrapper
scripts, pretty good for scanning archived mail, and more than
adequate for sending mail.)
2002-03-29 15:07:52 +00:00
wiz
c8ce18c2b7 Do not remove the spool file if not mail remains, just truncate it
to 0 bytes, as e.g. Solaris-mail or mutt do.
This way we're sure to keep owner/permissions the same as before.
Reviewed by Christos.
2002-03-12 01:17:46 +00:00
wiz
6e6e326518 Usually, one reads from standard input, not standard output (comment). 2002-03-08 02:05:25 +00:00
wiz
240d8221ea Replace last tempnam() with mkstemp(), and remove the tempMail variable.
Inspired by OpenBSD.
mail(1) is now tempnam(3) free.
2002-03-06 17:36:44 +00:00
wiz
a3b751130f Give mail.1 a DESCRIPTION section.
Closes bin/14591.
2002-03-06 14:09:14 +00:00
wiz
443084c89d Replace another tempnam() with mkstemp(), and remove the tempEdit variable.
Inspired by OpenBSD.
2002-03-06 13:45:51 +00:00
wiz
ae38aa875b Use warn() instead of perror(). 2002-03-05 21:29:30 +00:00
wiz
b6e7b17180 KNF: No space after casts. 2002-03-05 21:18:14 +00:00
wiz
9c3d74c30b Replace another tempnam() with mkstemp(), and remove the tempResid variable.
Inspired by OpenBSD.
2002-03-05 21:11:46 +00:00
wiz
d44726b8b5 Replace a 0-cast with NULL. 2002-03-05 20:58:54 +00:00
wiz
69047878cf Replace another tempnam with mkstemp (inspired by OpenBSD).
Replace perror with warn.
Use NULL instead of some cast 0.
s|/usr/mail|/var/mail| in a comment.
2002-03-05 20:57:28 +00:00
wiz
afc1761e0b Replace another tempnam() with mkstemp(), and remove the tempMesg variable.
Inspired by OpenBSD.
2002-03-05 20:26:59 +00:00
wiz
c3df89412e Replace printf+exit with errx. 2002-03-05 20:15:33 +00:00
wiz
4361c5156c Check tmpdir for being empty and remove trailing slashes in it. Replace one
tempnam() with mkstemp(), and remove the tempQuit variable.
Inspired by OpenBSD.
2002-03-05 20:14:02 +00:00
wiz
a5643639a9 ANSIfy another function (overlooked that one...). 2002-03-05 19:26:42 +00:00
wiz
ad41eb4f49 Use strpbrk(3) instead of anyof(). 2002-03-05 19:25:16 +00:00
wiz
cb6786d45f Replace some more special pointers to zero (NIL, NONE, NOVAR, NOGRP, NOGE)
with NULL.
2002-03-04 03:16:10 +00:00
wiz
ab85015570 Don't use special null string pointer (NOSTR), just use NULL. 2002-03-04 03:07:25 +00:00
wiz
76925748f3 WARNS=2. 2002-03-02 15:29:49 +00:00
wiz
4e972651c7 Rename variables to avoid shadowing. 2002-03-02 15:27:51 +00:00
wiz
b127cccc2e ANSIfy, and minimal KNF. 2002-03-02 14:59:35 +00:00
wiz
024b462262 Rename a variable to avoid shadowing. 2002-03-02 14:00:26 +00:00
wiz
f2ed23835a ANSIfy. 2002-03-02 13:57:28 +00:00
lukem
670a900e30 use ${INSTALL_FILE} as appropriate 2002-02-09 09:14:32 +00:00
christos
0a5b0486ba PR/15000: Mike Heffner: mail(1) doesn't reposition pointer correctly
Fix applied from OpenBSD, as suggested in the patch.
2001-12-19 00:06:11 +00:00
wiz
f005fee70b Space and paragraph fixes. 2001-12-01 20:34:50 +00:00
tv
3a3a2b1175 Rename "aux.c" to "support.c" to avoid clash with invalid "aux" basename
on some Microsoft host OS's.
2001-10-19 02:46:19 +00:00
wiz
c805849eed Properly quote `No' (as non-macro argument). 2001-10-17 21:08:15 +00:00
wiz
bca0ff2b3b Add section to xref. Whitespace and punctuation fixes. 2001-04-04 09:38:32 +00:00
christos
85ef06032c fix nested externs
rename raise to upcase to avoid clash with raise(3)
2001-02-05 02:07:52 +00:00
simonb
cd2e1c1e91 Use ${COPY} instead of -c for ${INSTALL} commands. 2000-09-23 13:53:41 +00:00
christos
253750edbd Add -E "dontsendempty" flag which does not send messages that have no
data. This is useful when piping cron error output to mail. While I am
there add -~ to be a synonym for -I [but don't document it]. This is for
compatibility with other OS's.
2000-09-19 01:12:48 +00:00
ad
5ec7c0582e printf fmt string without %s, from OpenBSD. 2000-07-06 14:12:31 +00:00
enami
7316fa55ad Pass ${INSTPRIV} to ${INSTALL}. 2000-07-05 03:30:07 +00:00
itojun
6bb623fa65 sync with sendmail path change (/etc/aliases -> /etc/mail/aliases) 2000-05-05 18:21:06 +00:00
soren
89c5a767f8 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
tron
baa67f49cc Rename send() to sendmessage() to avoid conflict with send(2) in "libc".
Patch supplied by Geoff Adams in PR bin/9385.
2000-02-10 12:34:42 +00:00
mycroft
f5d7100e26 Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
fair
aff3242363 fix trivial nroff source bug, per PR 8724 1999-12-20 22:53:44 +00:00
garbled
9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
mjl
fb60b363d0 Added missing mailx tilde escapes that POSIX wants (~<!, ~a, ~A, ~i).
Updated man page and tilde help file for missing ~ escapes.
Closes PR 782 by Simon J. Gerraty after four years and two weeks.
1999-02-17 20:48:48 +00:00
lukem
dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
dean
11976ebb30 fixes for PR 3886, 4719, 5424
mail is more consistent in a su'd environment
unset works if the variable is in the environment
fixed off by one error with 'z' scrolling
1999-02-09 04:51:30 +00:00
he
fbb55f0364 Set the 'crt' flag by default. This enables the pager, so that
messages > 24 lines do not scroll off the screen.  Fixes PR 6965
by Yours Truly.
1999-02-08 20:48:25 +00:00
kleink
75ff0c2532 Fix preprocessor logic bogon; from Michael Eriksson <eramer@era-t.ericsson.se>
in PR bin/6681.
1999-01-06 15:53:39 +00:00
christos
ec1efbf3e5 Fix ifdef mess. 1998-12-19 16:35:10 +00:00
christos
2d72555862 char -> unsigned char 1998-12-19 16:34:38 +00:00
christos
288075599a union wait -> int 1998-12-19 16:34:04 +00:00