summaryrefslogtreecommitdiff
path: root/usr.bin/mail
AgeCommit message (Collapse)Author
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.
1997-07-13bcopy() -> memcpy() and fix some casts.Todd C. Miller
1997-07-13Update from 44.BSD-lite2Todd C. Miller
1997-07-13Merge in NetBSD and 4.4BSD-lite2 changes as well as some of my own.Todd C. Miller
- 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
1997-06-18crank version number, we have made a few changes...Theo de Raadt
1997-06-16Use buflen, not sizeof(buf) as buf is a pointer.Todd C. Miller
1997-06-02buflen != sizeof (char *)dm
1997-05-30overflows aboundTheo de Raadt
1997-04-27COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIPTodd C. Miller
This fixes namespace problems where STRIP is sometimes used as the name of the strip(1) to use and other times used as the flag to send install(1) when stripping (or not). COPY doesn't have this problem (yet) but was poorly named.
1997-04-13single ^C on a pipeTheo de Raadt
1997-04-13do not (continue) on a stdin pipeTheo de Raadt
1997-04-10how is this for fast bug fixing response! revert to sigblock() since theTheo de Raadt
sigprocmask() code was not equivelant. report from grr@shandakor.tharsis.com, PR#154
1997-03-29Use ``mail.local -H'' to do dot locking so we can have mode 755 mailTodd C. Miller
spool, change an occurrence of tempnam() to mkstemp(), change some longs and shorts to ints. Mail is now usable again.
1997-02-03use a long line counter, netbsd pr#3083, rhialto@polder.ubc.kun.nlTheo de Raadt
1997-01-17r?index -> strr?chrTodd C. Miller
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1997-01-13doc "more" command; jdc@orthanc.ncl.ac.ukTheo de Raadt
1996-12-08install -> ${INSTALL}, -c -> ${COPY}Jason Downs
1996-10-28Ignore $HOME if > MAXPATHLENTodd C. Miller
1996-10-26honor $LOGNAMETodd C. Miller
1996-09-16_PATH_TMP -> _PATH_TMPFILE; avoid /tmp//fooXXXX where possible tooTheo de Raadt
1996-06-26Accept NULL nset in prepare child (as run_editor will try to use one).dm
1996-06-11from christos;Theo de Raadt
- 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.
1996-03-27From NetBSD: merge of 960317Niklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt