summaryrefslogtreecommitdiff
path: root/usr.bin/mail
AgeCommit message (Collapse)Author
1998-09-10.Xr lockspool 1Todd C. Miller
1998-09-10Fix commentsTodd C. Miller
1998-09-10If a child has not been waited on via the SIGCHLD handler, wait for itTodd C. Miller
ourselves instead of playing games with sigsuspend. This may fix PR 588.
1998-09-10make mail.1 nroff'able againTodd C. Miller
1998-09-08repair order of signal blocking that got changed in conversion to POSIX signalsTodd C. Miller
1998-09-08Fix comments in .mailrc where there is no space after the hash (#). Noted ↵Todd C. Miller
by pjanzen@foatdi.harvard.edu
1998-09-07More man page fixes. Particularly fix uses of it's/its, affect/effect,Aaron Campbell
then/than and such. Other miscellaneous problems fixed across these source files.
1998-09-06More man page fixes. Spelling, grammar, some typos. Lots of double-wordAaron Campbell
occurrences squashed as well.
1998-09-01more man page fixes; aaron@ug.cs.dal.caTheo de Raadt
1998-08-15use lockspool for locking, not 'mail.local -H'Todd C. Miller
1998-07-16mention MAIL environment variableTodd C. Miller
1998-06-25and mailx too..Theo de Raadt
1998-06-12back out some signal changes that can cause mail to hang when quitting due ↵Todd C. Miller
to SIGCHLD blockage
1998-06-12Don't call truncate() directly; have rm() do it if we get EPERM on unlink()Todd C. Miller
In popen.c, findchild() may return NULL so catch that case.
1998-06-12Properly delete messages that the user has deleted in his/her spool.Todd C. Miller
I fudged up the logic when I replaced an unlink with a truncate.
1998-06-11Don't segfault just because a line starts with NUL; rossTheo de Raadt
1998-05-11fix scrolling and 'z' command; matt debergalis <deberg@mit.edu>Todd C. Miller
1998-05-04Never remove a mail spool, as we may not have proper prics, just truncate. ↵Todd C. Miller
Also block signals in a few critical areas
1998-04-25doc startup behaviour; koshy@india.hp.comTheo de Raadt
1998-04-25fix usage; ru@ucb.crimea.uaTheo de Raadt
1998-03-24pretttyTheo de Raadt
1998-02-15Remove one case of malloc call from sighandlerNiklas Hallqvist
1997-11-14NetBSD changes (mostly comsmetic):Todd C. Miller
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
1997-11-13Add back EXTPROC code now that tty_pty.c has the lite2 fix.Todd C. Miller
1997-11-04unbalanced parenthesis around command abbreviation in mail.1; ↵Theo de Raadt
h-nokubi@nmit.tmg.nec.co.jp
1997-09-21$OpenBSD$Theo de Raadt
1997-09-04Deal with <CR><LF> pairs in mailboxes so we can work with eudora mailTodd C. Miller
spools mounted from DOS/Windoze. From Matt Thomas <matt@3am-software.com>.
1997-08-31Kill union wait.Todd C. Miller
1997-08-05pull errno.h inTheo de Raadt
1997-08-04save errno in sigchld handlersTheo de Raadt
1997-08-04Fix a problem in skin() that was introduced with the buffer oflowTodd C. Miller
fix. Could end up realloc'ing the wrong thing.
1997-07-31Remove TIOCEXT added in lite2 merge for now. Causes problems whenTodd C. Miller
mail(1) is used over a telnet session.
1997-07-31Another static buffer bytes the dust.Todd C. Miller
1997-07-31Document an assumption and kill a static buffer.Todd C. Miller
1997-07-30Make istrcpy() take a size (not length) field, now called istrncpy().Todd C. Miller
Change some strcpy() -> strncpy() out of paranoia.
1997-07-30Fix one possible oflow (not exploitable) and do a wee bit of KNF.Todd C. Miller
Much more remains to be done.
1997-07-28Dynamically allocate space for addr header strings instead of usingTodd C. Miller
BUFSIZ. We know that the end size will be <= to the start size so it is simple to preallocate enough space. Fixes NetBSD PR#3028
1997-07-28install mail.rc at distribution time; bug found by explorer@flame.orgTheo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-07-24tempnam(3) goes bye bye.Todd C. Miller
1997-07-24Replace 3 tempnam()'s with mkstemp. The two left look tricky.Todd C. Miller
1997-07-22incfile() needs to lock the mail spool so it doesn't get partial messages.Todd C. Miller
Noticed by Theo.
1997-07-22locking is done differently nowTheo de Raadt
1997-07-22grabh() now returns SIGINT if it was interrupted (previously alwaysTodd C. Miller
returned 0 and the return val was always ignored). Add gethfromtty() to get a header (using grabh) from the tty and quit on two ^C's. Use gethfromtty() when getting Subject, Cc, and Bcc headers so we can quit nicely. Closes PR #291. Don't use longs where it doesn't make sense.
1997-07-22Only require 2 ^C's at Subject: prompt to quit as it is supposed to.Todd C. Miller
Also in Subject: prompt, when we get that first ^C re-prompt for the Subject: like SunOS does so the user knows what is going on.
1997-07-22Release signals when we get an error condition in incfile().Todd C. Miller
1997-07-18Change jmp_buf to sigjmp_buf that I missed in the last sweep.Todd C. Miller
1997-07-14Don't call it a mask when it is a sigset_t (cosmetic changes only).Todd C. Miller
1997-07-14Convert remaining sigsetmask() -> sigprocmask() (POSIX style)Todd C. Miller
in collect.c and fix up some signal botches elsewhere.
1997-07-14NOSTR -> NULLTodd C. Miller
Use sigsetjmp/siglongjmp instead of sigjmp/longjmp for portability.