David E. O'Brien
e026a48c34
Consistently use FBSDID
2002-06-30 05:25:07 +00:00
Mike Heffner
0077673e56
Add support for the 'flipr' option per IEEE 1003.1-2001.
2002-06-25 05:34:27 +00:00
Mike Heffner
7d409b3221
Use strcasestr() instead of reimplementing it.
2002-06-25 05:28:32 +00:00
Mike Heffner
27c7d5ffd1
Make the 'searchheaders' option behave how it was supposed to. If
...
enabled, the string '/to:y' will match strings in the To, Cc, and Bcc
header fields. Whereas, '/To:y' will match only the To field. Edit the
manpage and a code comment to indicate the correct behavior.
2002-06-25 05:24:30 +00:00
Mike Heffner
d1821d3da2
Rearrange a little, specifically:
...
- removed "Option string values" section and divided up amongst mail
options and environment section
- expanded environment section
- rearranged mail options
- added default values to the mail options for clarification
Reviewed by: ru
2002-06-25 05:16:11 +00:00
Philippe Charnier
e8937ba009
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
Warner Losh
d3cb5ded92
remove __P
2002-03-22 01:33:25 +00:00
Bruce Evans
1bc1344e14
#include <sys/time.h> instead of depending on namespace pollution in
...
<sys/stat.h> for the declaration of struct timeval. Intentionally
don't follow the local style of polluting the local headers.
2002-02-25 05:16:22 +00:00
Mark Murray
e35f9517d6
Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.
2002-02-08 23:07:37 +00:00
Philippe Charnier
57906e00c6
Show arguments of command line options
...
Reviewed by: ru
2002-01-22 19:49:48 +00:00
Mike Heffner
94ef258fee
Link mail(1) to mailx per POSIX. Mail(1) isn't 100% POSIX compliant,
...
but it is pretty close.
Not objected to by: -standards
2002-01-19 23:47:21 +00:00
Ruslan Ermilov
3e048b5912
mdoc(7) police: oops, forgot about those interim XXX'es.
2002-01-10 14:27:04 +00:00
Ruslan Ermilov
81135783d1
mdoc(7) police: tidy up.
2002-01-10 14:25:34 +00:00
Mike Heffner
9b12c3f313
Fix comment.
2001-12-23 06:12:41 +00:00
Mike Heffner
69131e4050
Add support for ~_, ~x, ~i, ~a, ~A, ~<, and ~r! tilde-escapes. Improve
...
tilde-escapes documentation.
Mostly obtained from: NetBSD
2001-12-22 22:16:48 +00:00
Andrey A. Chernov
5089267998
Add missing {} to 'for'. It fix coredump (result of NetBSD changes merge)
2001-12-19 22:25:11 +00:00
Andrey A. Chernov
6d48fa4387
Add (unsigned char) cast to ctype macros
...
ftell->ftello, fseek->fseeko
File 'newsize' type int->off_t
Add visible (long) cast to fsize() when it called to small one message file and
result is assigned to long.
2001-12-19 21:50:22 +00:00
Mike Heffner
856f23ed35
Sync with most of NetBSD's changes, including:
...
*) Sync with 4.4BSD-Lite2
*) Set usecs for utimes()
*) Add 'inc' command and 'autoinc' option that check for new mail
manually and automatically, respectively
*) Use POSIX signal handling and tty semantics
*) Handle long lines correctly when paging messages
*) Add ability to explicitly search 'To:' line
*) Various manpage cleanups
*) Support overriding '~/.mailrc' with $MAILRC
*) Support 'askbcc' and 'asksub' options
*) Fix various bugs
Reviewed by: ru (mail.1)
Obtained from: NetBSD
2001-12-18 20:52:09 +00:00
Ruslan Ermilov
ccaec6d133
Install files via FILES.
2001-12-17 16:02:15 +00:00
Mike Heffner
864be88825
I'm working on cleaning this up, however it probably won't be done for
...
awhile. Turn off WARNS so that this doesn't break the build when WARNS
is turned on higher up. Also add $FreeBSD$.
2001-12-12 15:42:19 +00:00
Mike Heffner
28fb5d9a37
Don't add space after comma unless there was already one (prevents a
...
rare overflow). Optimize loop slightly. Don't exit if realloc can't
shrink a buffer (just continue and use the larger buffer).
Obtained from: OpenBSD
MFC after: 2 weeks
2001-09-23 04:07:26 +00:00
Andrey A. Chernov
af8c32621d
File positions are off_t nowdays, not long, so:
...
fseek -> fseeko
ftell -> ftello
NOTE: fseek/ftell not works for >long offsets per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
[EOVERFLOW] For ftell ( ), the current file offset cannot be represented
correctly in an object of type long.
2001-09-02 14:40:51 +00:00
Brian Somers
cbe1d3b630
Handle snprintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 14:46:40 +00:00
Ruslan Ermilov
8af1452cf8
Removed duplicate VCS ID tags, as per style(9).
2001-08-13 14:06:34 +00:00
Ruslan Ermilov
57e4378bf6
mdoc(7) police: protect trailing full stops of abbreviations
...
with a trailing zero-width space: `e.g.\&'.
2001-08-10 13:45:36 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Ruslan Ermilov
625003720a
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
Ruslan Ermilov
b7cd452d78
mdoc(7) police: fixed formatting bugs in rev. 1.27.
2001-07-05 06:27:52 +00:00
Mike Heffner
dcd24e2778
Add the -E flag to not send messages that have an empty body. This is
...
useful for piping cron script error output by mail.
PR: bin/9494
Obtained from: NetBSD
MFC after: 2 weeks
2001-06-28 02:40:07 +00:00
Dima Dorfman
7309915e7a
Nuke unused variables.
2001-06-24 23:41:57 +00:00
Mike Heffner
a9992a76a3
Support mail boxes that have dates without seconds (SysV) and those
...
that have a timezone as <-|+>nnnn (eg. imapd).
PR: bin/11746
Obtained from: OpenBSD
MFC after: 2 weeks
2001-06-18 04:28:03 +00:00
Mike Heffner
59c3f4f7ee
Respect REPLYTO in mailrc.
...
PR: bin/8322
Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
MFC after: 2 weeks
2001-06-14 01:08:30 +00:00
Mike Heffner
9ce73e9018
Cleanup mail(1)'s varying styles by converting to using style(9).
...
Also take a stab at cleaning up BDECFLAGS and convert all uses of
NOSTR, NIL, NONE, NOVAR, NOGRP, NOGE to NULL. Also kill 'register' to
get diffs somewhat closer to OpenBSD/NetBSD.
There are no functional changes however.
Reviewed by: nra (visual inspection)
2001-05-27 20:26:22 +00:00
Mike Heffner
afa3a100e9
Allow mail(1) to be able to read Eudora mailboxes by transforming
...
lines that end in <CR><LF> to just <LF>.
Reviewed by: imp
Obtained from: OpenBSD
2001-05-11 03:07:11 +00:00
Mike Heffner
0c3a8314c0
Merge various changes from OpenBSD and NetBSD.
...
o remove panic() in favor of err(3) and use err(3) functions
consistently throughout
o use stat(2)'s S_IS* macros rather than S_IF*
o [r]index -> str[r]chr
o convert some static buffers to dynamic ones
o use real tempfiles rather than reopening the same templates
o rename some functions that clash with libc
o convert wait_status from union to int and use wait(2) status macros
o fix multiple potential buffer overflows
o fix a few comments
o add $FreeBSD$
Reviewed by: nra, nectar (earlier version)
2001-03-25 04:57:05 +00:00
Ruslan Ermilov
c2d03ea879
Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.
2001-02-28 17:38:53 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
9884911506
mdoc(7) police: fixed broken references.
2001-01-16 11:52:00 +00:00
Ruslan Ermilov
9b88faecd3
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
Ruslan Ermilov
ef4261bf71
Eliminate groff(1) warnings.
2000-11-29 10:56:59 +00:00
Kris Kennaway
c858db9672
*** empty log message ***
2000-11-27 06:55:38 +00:00
Ruslan Ermilov
8fe908ef0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
Ruslan Ermilov
726b61ab5f
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
Poul-Henning Kamp
c23d986ebe
Add $FreeBSD$
...
Rename local offsetof() macro to boffsetof() to avoid clashing with
the offsetof() from <stddef.h>
2000-10-24 13:54:31 +00:00
Gregory Neil Shapiro
2216e2a2cd
Complete migration of aliases file to /etc/mail/aliases.
...
The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster
have been contacted so those may be updated as well.
2000-08-13 18:38:58 +00:00
Warner Losh
0e7f0658ee
#include <errno.h> where needed. Kill extern int errno;.
...
Minor warnings in tip corrected.
2000-04-14 06:39:19 +00:00
Sheldon Hearn
87faa07bec
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
Joseph Koshy
727c14404a
Document startup behaviour of mail(1).
...
PR: docs/1577
Submitted by: Joseph Koshy <koshy@india.hp.com>
1999-11-08 03:54:37 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Jean-Marc Zucconi
49936df39b
Ignore the MAIL environment variable when the -u flag is set.
...
PR: bin/8665
1999-05-20 22:23:04 +00:00
Hidetoshi Shimokawa
0b919713bb
Allocate aligned memory according to sizeof(char *).
...
Approved by: jkh
Obtained from: NetBSD
1999-01-13 10:37:22 +00:00
Bruce Evans
46ccc3e932
vfork -> fork. The child calls abort(), which calls stdio.
1998-10-10 19:21:39 +00:00
Bruce Evans
db6b691087
vfork -> fork. This home made popen() had the same bug as the library
...
popen(), but worse. The child calls execvp(), which calls malloc()
a bit more than execl(), and it calls non-library functions that call
malloc() and who-knows-what else (stdio is called in at least some
error cases).
1998-10-10 19:18:30 +00:00
Bruce Evans
4689d219ff
Fixed gross breakage in previous commit. The malloc sizes for the
...
temporary file names were uninitialized if TMPDIR was set and 1 too
small otherwise.
Fixed style bugs in previous commit.
Fixed missing checks for malloc failure in previous commit.
Report malloc failure consistently, at least in temp.c.
1998-10-10 19:01:47 +00:00
Bruce Evans
e43edbda3d
Removed debugging cruft.
...
Broken in: previous commit
1998-10-10 18:37:02 +00:00
Peter Hawkins
f40053daa9
PR: bin/8250
...
protect against buffer overruns in mail temporary files.
1998-10-10 09:58:20 +00:00
Joseph Koshy
a6054afb48
Move setting of 'crt' mail variable to {/usr/src}/etc/mail.rc.
1998-08-31 10:53:06 +00:00
Bruce Evans
22694ebad5
Fixed printf format errors.
1998-07-06 21:01:54 +00:00
Steve Price
2d5be945b8
Document the use of sendmail options on the commandline.
...
PR: 4778
Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>
1998-04-14 00:59:29 +00:00
Joerg Wunsch
57392071e8
Fix a style bug, and a real bug (&& vs. & misused).
...
Submitted by: bde
1998-01-04 10:08:26 +00:00
Joerg Wunsch
99bd6601d7
Teach boring old mail(1) about the use of the REPLYTO environment
...
variable which is de-facto standard for MUAs.
Teach bomail to generate an in-reply-to header so threading MUAs and
mail->news gateways won't lose context.
While i was at it, removed two gratuitous standard violations for
functions starting with an underscore.
1998-01-02 16:44:13 +00:00
James Raynard
f3456b7e34
Balance parentheses around command abbreviations.
...
PR: 4888
Submitted by: h-nokubi@nmit.tmg.nec.co.jp
1997-11-01 00:56:15 +00:00
Poul-Henning Kamp
d030d2d2ae
Many places in the code NULL is used in integer context, where
...
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.
PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
Wolfram Schneider
9f2ba01444
Fix file names.
1997-08-31 21:33:27 +00:00
Wolfram Schneider
e569836c71
make install should not install mail.rc in /etc
1997-08-15 21:50:02 +00:00
Philippe Charnier
0e11b68bdd
Use err(3).
1997-07-24 06:56:33 +00:00
Bruce Evans
c05b924fca
Renamed undelete() to undelete_messages() to avoid conflict with new
...
undelete() syscall.
Submitted by: partly by roberto
1997-04-14 16:49:30 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Peter Wemm
c115df18cd
Revert $FreeBSD$ to $Id$
1997-02-22 19:58:13 +00:00
Mike Pritchard
d0aa25cbc5
Document the "more" command.
...
Submitted by: Julian Coleman <j.d.coleman@ncl.ac.uk>
Obtained from: NetBSD-bugs PR# 3104
1997-01-15 04:44:08 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Jordan K. Hubbard
e9b074c385
Allow mail(1) to look for multiple mail.rc files.
...
Submitted-By: Lyndon Nerenberg VE7TCP <lyndon@orthanc.com>
1996-12-21 22:53:58 +00:00
Jordan K. Hubbard
d34dd13378
Honor the MAIL environment variable.
...
Submitted-By: Dan Cross <cross@math.psu.edu>
1996-10-06 01:55:32 +00:00
Bruce Evans
3e163cc6fc
Eliminated NOFILE. Use the arbitrary (currently identical) limit of 64
...
instead (for the input stack size).
`mail' was one of the 3 programs in /usr/src that (mis)used NOFILE.
1996-09-28 13:15:06 +00:00
Wolfram Schneider
b8923d4cc0
[HISTORY] command appeared in Version 1 AT&T UNIX
...
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
1996-08-29 18:06:19 +00:00
Peter Wemm
7c6d202a48
Simplistic conversion of mail to use termios instead of sgtty.
1996-08-19 20:23:35 +00:00
Mike Pritchard
e229ffb7e9
Correct some cross references and some path names.
1996-04-06 09:47:30 +00:00
Wolfram Schneider
000ee932d4
filenames corrected
1996-02-02 05:14:04 +00:00
Mike Pritchard
4a8d02835c
Fix a bunch of spelling errors in a bunch of man pages.
1996-01-30 13:52:50 +00:00
Mark Murray
ec07fbef21
Correct the man pages, USD doc and online help to refer to /var/mail
...
instead of {usr|var}/spool/mail
1995-11-20 20:51:42 +00:00
Joerg Wunsch
b5cfa4b2c4
'#' is not a comment if a non-space char follow
...
Closes PR # bin/657: mail(1): comments in ~/.ma...
Submitted by: wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-08-15 19:40:26 +00:00
Bruce Evans
9c0dc173cc
Change install' to
${INSTALL}' so that default install flags can be
...
specified in the top level Makefiles.
1995-07-25 00:37:58 +00:00
Rodney W. Grimes
7799f52a32
Remove trailing whitespace.
1995-05-30 06:41:30 +00:00
Andrey A. Chernov
9bda6bd9b8
Remove -R from CFLAGS
1995-05-12 13:15:41 +00:00
Andrey A. Chernov
f14d551c2c
Fix line-count overflow, close PR 351
...
Submitted by: Edward Wang <edward@edcom.com>
1995-05-09 16:56:23 +00:00
Nate Williams
13eb8ded47
This is the 90's, ask the user for a Subject by default when sending mail.
1995-04-03 05:40:54 +00:00
Rodney W. Grimes
9b50d90275
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00