summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/list.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ctype and other sign extension fixes.okan2014-01-171-6/+6
| | | | with deraadt and millert, ok millert
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-9/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* - chraise can be replaced with toupper; no need to check for islowermartynas2008-07-151-46/+16
| | | | | | | - remove quite some code, use strcasestr instead of reimplementing it each time - use strncasecmp, instead of comparing through each character "looks fine" millert@
* Fix off-by-one bug in readtty() and don't assume BUFSIZ == 1024.millert2005-07-111-3/+4
| | | | Based on a patch from Ulf Harnhammar.
* avoid aliasing against libc symbolsderaadt2004-09-151-6/+6
|
* better realloc. ok deraadt josetedu2003-10-131-7/+9
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* o kill strcpy()millert2001-11-211-3/+3
| | | | | o check return values of malloc and friends o use strdup() when sensible
* o ANSIfymillert2001-11-211-61/+26
| | | | | | | | | o Style nits o Use const to silent stupid -Wall warnings o strnc{py,at} -> strlc{py,at} o Use strpbrk() instead of homegrown anyof() o Use NULL instead of #defines with 0 cast to a pointer This still could use a proper audit
* Changes from Don Beusee:millert2001-01-161-4/+6
| | | | | | | | | | | | | | o escape From line with a leading '>' when needed o only print To: address and Subject lines if actually present o new variable 'allnet' to treat user@foo and user@bar as the same "user" o folders command now takes an optional argument like ls. o new "pipe" (|) command to pipe the message through an arbitrary command o make header display format the same as SunOS 4.1.3 /usr/ucb/mail o tilde commands work regardless of interactive mode. o fix "read: Interrupted system call" error by retrying if EINTR o expanded help file Changes by me: o read the help file via the PAGER as it is now more than 24 lines long
* NetBSD changes (mostly comsmetic):millert1997-11-141-30/+32
| | | | | | | | replace panic() with calls to err()/errx() use S_IS* instead of doing by hand with S_IF*. Use TIMESPEC_TO_TIMEVAL() and gettimeofday instead of time(2) Use _POSIX_VDISABLE, not 0 Kill register
* Fix a problem in skin() that was introduced with the buffer oflowmillert1997-08-041-4/+5
| | | | fix. Could end up realloc'ing the wrong thing.
* Document an assumption and kill a static buffer.millert1997-07-311-3/+15
|
* NOSTR -> NULLmillert1997-07-141-8/+8
| | | | Use sigsetjmp/siglongjmp instead of sigjmp/longjmp for portability.
* Merge in NetBSD and 4.4BSD-lite2 changes as well as some of my own.millert1997-07-131-33/+76
| | | | | | | | - handle long lines safely (from NetBSD) - use puts/fputs and putchar/putc when it makes sense - use err/errx and warn/warnx when it makes sense - make return() and sizeof() style consisten - some more buffer safety
* overflows aboundderaadt1997-05-301-5/+8
|
* r?index -> strr?chrmillert1997-01-171-3/+3
|
* from christos;deraadt1996-06-111-19/+25
| | | | | | | | - Fix PR/105: Implement dot locking protocol and check return value of flock. - Fix PR/2247: Don't call unknown users "ubluit". Issue an error message. - Fix/add prototypes. - Fix warnings. - Use POSIX signal mask calls.
* initial import of NetBSD treederaadt1995-10-181-0/+802