summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/collect.c
Commit message (Collapse)AuthorAgeFilesLines
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Fix comment.mikeh2001-12-231-1/+1
|
* Add support for ~_, ~x, ~i, ~a, ~A, ~<, and ~r! tilde-escapes. Improvemikeh2001-12-221-6/+91
| | | | | | tilde-escapes documentation. Mostly obtained from: NetBSD
* Add (unsigned char) cast to ctype macrosache2001-12-191-4/+4
| | | | | | | 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.
* Sync with most of NetBSD's changes, including:mikeh2001-12-181-14/+29
| | | | | | | | | | | | | | | | | *) 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
* File positions are off_t nowdays, not long, so:ache2001-09-021-2/+2
| | | | | | | | | | | | | 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.
* Cleanup mail(1)'s varying styles by converting to using style(9).mikeh2001-05-271-90/+88
| | | | | | | | | 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)
* Merge various changes from OpenBSD and NetBSD.mikeh2001-03-251-23/+34
| | | | | | | | | | | | | | | | 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)
* PR: bin/8250thepish1998-10-101-3/+3
| | | | protect against buffer overruns in mail temporary files.
* Teach boring old mail(1) about the use of the REPLYTO environmentjoerg1998-01-021-1/+10
| | | | | | | | | | 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.
* Many places in the code NULL is used in integer context, wherephk1997-09-181-2/+2
| | | | | | | | | 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>
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+635
OpenPOWER on IntegriCloud