History log of /src/usr.bin/mail/vars.c |
Revision | | Date | Author | Comments |
1.19 |
| 08-Sep-2023 |
shm | Fixed undefined behaviour in hash()
Shift left on large int values was causing an undefined behaviour, fix it by operating on unsigned int type instead. This patch changes behaviour of the hash() slightly - if the computed hash is INT_MIN, the function previously returned 0, but this case is negligible.
|
1.18 |
| 27-Oct-2007 |
christos | 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.)
|
1.17 |
| 28-Nov-2006 |
christos | branches: 1.17.8; 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!!!!
|
1.16 |
| 31-Oct-2006 |
christos | 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.
|
1.15 |
| 21-Oct-2006 |
christos | From our anonymous user: - mime and character set handling - command line editor and completion - many code improvements
|
1.14 |
| 19-Jul-2005 |
christos | Pass lint completely.
|
1.13 |
| 19-Jul-2005 |
christos | WARNS=3
|
1.12 |
| 31-Oct-2003 |
ross | Defensively rewrite a string moving loop. Constify. Check for an allocation error.
|
1.11 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.10 |
| 12-Aug-2002 |
itojun | calloc() arg mistake. it's (nelem, size). from openbsd
|
1.9 |
| 04-Mar-2002 |
wiz | Replace some more special pointers to zero (NIL, NONE, NOVAR, NOGRP, NOGE) with NULL.
|
1.8 |
| 02-Mar-2002 |
wiz | Rename variables to avoid shadowing.
|
1.7 |
| 02-Mar-2002 |
wiz | ANSIfy, and minimal KNF.
|
1.6 |
| 08-Oct-1998 |
wsanchez | Get rid of commons. Rename vfree() to v_free() to avoid conflict in out libc's vfree().
|
1.5 |
| 19-Oct-1997 |
lukem | WARNSify, fix .Nm usage, deprecate register, use <err.h>
|
1.4 |
| 08-Jun-1996 |
christos | - 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.
|
1.3 |
| 29-Jun-1994 |
deraadt | 4.4-lite, plus our mods
|
1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 28-Dec-1996 |
tls | Import of 4.4BSD-Lite (already merged at head)
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.17.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|