History log of /netbsd/usr.bin/mail/cmd2.c (Results 1 – 25 of 26)
Revision Date Author Comments
# f29b807e 09-Nov-2017 christos <christos@NetBSD.org>

Only open regular files.


# 674e12d2 29-Apr-2012 christos <christos@NetBSD.org>

set close on exec for all opened files.


# ca13337d 10-Apr-2009 christos <christos@NetBSD.org>

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 t

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.

show more ...


# 4556f89a 27-Oct-2007 christos <christos@NetBSD.org>

From Anon Ymous:
- Add a "bounce" command as requested by garbled@.
From the manpage:

bounce Takes a list of messages and prompts for an address to bounce the
messages to. All the orig

From Anon Ymous:
- Add a "bounce" command as requested by garbled@.
From the manpage:

bounce Takes a list of messages and prompts for an address to bounce the
messages to. All the original header fields are preserved except
for the ``Delivered-To'', ``X-Original-To'' and ``Status''
fields. The new ``To'' field contains the bounce address(es)
plus any addresses in the old ``To'' field minus the user's local
address and any on the alternates list. (See the alternates com-
mand.)

show more ...


# f3098750 28-Nov-2006 christos <christos@NetBSD.org>

From Anon Ymous:

1) Statification of modules.

2) Implement the 'detach' and 'Detach' commands for extracting mime
parts from messages.

3) Teach mail to output "In-Reply-To" and "References" hea

From Anon Ymous:

1) Statification of modules.

2) Implement the 'detach' and 'Detach' commands for extracting mime
parts from messages.

3) Teach mail to output "In-Reply-To" and "References" header fields
when replying so others can thread us.

4) Implement threading, sorting, and tagging, supported by the
following commands: 'flatten', 'reverse', 'sort', 'thread',
'unthread', 'down', 'tset', 'up', 'expose', 'hide', 'tag',
'untag', 'invtags', 'tagbelow', 'hidetags', 'showtags'.
See the manpage for details (when available - soon).

5) Implement a 'deldups' command to delete duplicate messages based on
their "Message-Id" field, e.g., in replies to a mailing list that
are also CCed to a subscriber. (This can also be accomplished with
the threading and tagging commands.)

6) Implement 'ifdef' and 'ifndef' commands, and make the conditionals
nestable (i.e., implement a conditional stack). The if/else/endif
commands existed before, but they were primitive and undocumented.
The 'if' command currently recognizes the "receiving", "sending",
and "headersonly" mode keywords.

7) Teach the message selecting routine to understand regular
expressions if "regex-search" is defined. Otherwise only case
insensitive substring matches are done (as in the past).

8) Teach the message selection routine to understand boolean
expressions. Improved "colon-modifier" support. See the manpage
for details (when available - soon).

9) Extend paging to all commands (where relevant).

10) Add shell like piping and redirection of (standard) output (if
"enable-piping" is defined). Extend completion to these contexts.

11) The manpage should follow soon!!!!

show more ...


# 798fbc60 31-Oct-2006 christos <christos@NetBSD.org>

More fixes from Anon Ymous:


1) Removed the -B flag (it was stupid on my part) and added a short
description indicating how to accomplish the same thing under the
"Sending Mail" section of man

More fixes from Anon Ymous:


1) Removed the -B flag (it was stupid on my part) and added a short
description indicating how to accomplish the same thing under the
"Sending Mail" section of man mail(1).

2) Added a -H flag to dump the headers and exit. It takes optional
flags to restrict to old, new, read, unread, and deleted messages
(the later being kind of useless - it shares code with something
that already had it).

3) Restored the 'Save' command which somehow got mistakenly removed in
the last commit and add documentation for it! (My apologies to
its author.)

4) Added a 'mkread' command to mark messages as read (the inverse of
'unread'). Should we also have a 'mknew' command?

5) Added a 'smopts' command to keep a database of addresses and
sendmail options to be used when sending messages to those
addresses. See man mail(1) for a fuller description.

6) Added 'indentpreamble' and 'indentpostscript' variables whose
values are inserted before and after a quoted message (~m or ~M
escapes).
=20
7) Added string formatting abilities for the 'prompt', 'insertpreamble',
'insertpostscript', and header display strings. These strings
support all the strftime() format parameters as well as many more
specific to mail (see man mail(1)).

8) Fix the -a flag so that it only takes a single filename, unless
"mime-attach-list" is defined. This is more conventional and avoids
unexpected whitespace issues.

show more ...


# 8207b28a 21-Oct-2006 christos <christos@NetBSD.org>

From our anonymous user:
- mime and character set handling
- command line editor and completion
- many code improvements


# ca286310 19-Jul-2005 christos <christos@NetBSD.org>

Pass lint completely.


# ece0fd5c 19-Jul-2005 christos <christos@NetBSD.org>

WARNS=3


# 89aaa1bb 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.


# ecb9aca3 29-Mar-2002 ross <ross@NetBSD.org>

The print/Print pair just cries out for a corresponding save/Save feature,
so implement the "missing" Save command -- save all the headers.


# ae38aa87 05-Mar-2002 wiz <wiz@NetBSD.org>

Use warn() instead of perror().


# ab850155 04-Mar-2002 wiz <wiz@NetBSD.org>

Don't use special null string pointer (NOSTR), just use NULL.


# 4e972651 02-Mar-2002 wiz <wiz@NetBSD.org>

Rename variables to avoid shadowing.


# b127cccc 02-Mar-2002 wiz <wiz@NetBSD.org>

ANSIfy, and minimal KNF.


# 85ef0603 05-Feb-2001 christos <christos@NetBSD.org>

fix nested externs
rename raise to upcase to avoid clash with raise(3)


# baa67f49 10-Feb-2000 tron <tron@NetBSD.org>

Rename send() to sendmessage() to avoid conflict with send(2) in "libc".
Patch supplied by Geoff Adams in PR bin/9385.


# 09edb003 19-Dec-1998 christos <christos@NetBSD.org>

char -> unsigned char, s.w_coredump -> WCOREDUMP(s)


# 7c81c8f3 19-Oct-1997 lukem <lukem@NetBSD.org>

WARNSify, fix .Nm usage, deprecate register, use <err.h>


# f890b048 17-May-1997 pk <pk@NetBSD.org>

NULL => 0 (Arne Juul; PR#3629)


# 254cb6fd 13-May-1997 mikel <mikel@NetBSD.org>

fix some potential buffer overflows, and other cleanup.


# 88b833a7 08-Jun-1996 christos <christos@NetBSD.org>

- 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 POS

- 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.
- RCSid police.

show more ...


# b5c23110 28-Dec-1994 mycroft <mycroft@NetBSD.org>

undelete -> undeletecmd, to avoid conflict with syscall.


# 2cb5542f 29-Jun-1994 deraadt <deraadt@NetBSD.org>

4.4-lite, plus our mods


# e9d867ef 01-Aug-1993 mycroft <mycroft@NetBSD.org>

Add RCS identifiers.


12