Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/mail



Module Name:    src
Committed By:   christos
Date:           Fri Apr 10 13:08:25 UTC 2009

Modified Files:
        src/usr.bin/mail: Makefile cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c
            collect.c complete.c complete.h def.h dotlock.c edit.c extern.h
            fio.c format.c glob.h lex.c list.c mail.1 main.c mime_attach.c
            mime_codecs.c mime_decode.c mime_detach.c mime_header.c popen.c
            quit.c send.c strings.c support.c thread.c tty.c version.c
Added Files:
        src/usr.bin/mail: sig.c sig.h

Log Message:
From Anon Ymous:

- Remove all longjmp(3) calls from signal handlers.  Instead, we post
to an internal signal queue and check that periodically.  All signal
related code is now in sig.c, except for the SIGCHLD handler which
remains in popen.c as it is intimately tied to routines there.

- Handle SIGPIPE in type1() regardless of mime support, or else the
handler in execute() will prevent our error code from being returned
resulting in 'sawcom' not being set on the first command as it should.
This only affected the initial behavior of the "next" command without
mime support.

- Add the 'T' flag to many commands in cmdtab.c that should not look
like the first command.  E.g., start mail on a mailbox with multiple
messages, run "set foo", then "next", and watch the second message get
displayed rather than the first as is the case without the first "set"
command.

- Add file descriptor and file handle leak detection.  Enabled by
DEBUG_FILE_LEAK.  This will likely disappear in the future.

- Fix a long standing (since import in 1993) longjmp() bug in
edstop(): the jmpbuf was invalid when quit() is called at the end of
main.

- Fix a long standing bug (since import in 1993) in snarf() where it
didn't strip whitespace correctly if the line consisted only of
whitespace.

- Lint cleanup.

- New Feature: "Header" command.  This allows miscellaneous header
fields to be added to the header, e.g., "X-Organization:" or
"Reply-To:" fields.

- New Feature: "page-also" variable.  This allows the specification of
additional commands to page.  It is more flexible than "crt".

- Document the "pager-off" variable: if set, it disables paging
entirely.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/mail/Makefile \
    src/usr.bin/mail/extern.h
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/mail/cmd1.c src/usr.bin/mail/main.c
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/mail/cmd2.c
cvs rdiff -u -r1.39 -r1.40 src/usr.bin/mail/cmd3.c
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/mail/cmd4.c
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/mail/cmdtab.c
cvs rdiff -u -r1.42 -r1.43 src/usr.bin/mail/collect.c
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/mail/complete.c
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/mail/complete.h
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/mail/def.h src/usr.bin/mail/quit.c
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/mail/dotlock.c
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/mail/edit.c src/usr.bin/mail/list.c \
    src/usr.bin/mail/popen.c
cvs rdiff -u -r1.31 -r1.32 src/usr.bin/mail/fio.c
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/mail/format.c
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/mail/glob.h \
    src/usr.bin/mail/mime_attach.c
cvs rdiff -u -r1.36 -r1.37 src/usr.bin/mail/lex.c
cvs rdiff -u -r1.55 -r1.56 src/usr.bin/mail/mail.1
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/mail/mime_codecs.c
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/mail/mime_decode.c
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/mail/mime_detach.c
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/mail/mime_header.c \
    src/usr.bin/mail/thread.c
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/mail/send.c
cvs rdiff -u -r0 -r1.1 src/usr.bin/mail/sig.c src/usr.bin/mail/sig.h
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/mail/strings.c
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/mail/support.c
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/mail/tty.c
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/mail/version.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index