Up to [cvs.NetBSD.org] / src / usr.bin / mail
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.24 / (download) - annotate - [select for diffs], Sun Apr 29 23:50:22 2012 UTC (12 months, 3 weeks ago) by christos
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, agc-symver-base, agc-symver, HEAD
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)
set close on exec for all opened files.
Revision 1.23 / (download) - annotate - [select for diffs], Tue May 24 12:33:22 2011 UTC (2 years ago) by joerg
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)
Use proper format strings.
Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 10 13:08:25 2009 UTC (4 years, 1 month ago) by christos
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.21: +10 -10 lines
Diff to previous 1.21 (colored)
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.
Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 24 01:27:07 2008 UTC (5 years, 1 month ago) by christos
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: jym-xensuspend
Changes since 1.20: +7 -6 lines
Diff to previous 1.20 (colored)
Fix a header decode mistake that caused mime header lines decoded by hfield() to be decoded as if they were "unstructured" regardless of their type. This resulted from calling mime_decode_hfield() with the body of the header line, i.e., the portion after the colon header field name terminator, rather than the full header line. From Anon Ymous
Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 27 15:14:51 2007 UTC (5 years, 6 months ago) by christos
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.19: +19 -0 lines
Diff to previous 1.19 (colored)
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.)
Revision 1.19 / (download) - annotate - [select for diffs], Tue Oct 23 14:58:45 2007 UTC (5 years, 7 months ago) by christos
Changes since 1.18: +14 -14 lines
Diff to previous 1.18 (colored)
From Anon Ymous: - Introduce date_to_tm() and hl_date_to_tm() to parse the date and headline date a bit more efficiently. - If 'tm_isdst' is determined, let strftime(3) handle the '%Z' and '%z' formats. Otherwise, output "-0000" and "???", respectively, to help preserve with alignment; strftime(3) will output an empty string in these case. - Change fail() to use the '-d' flag (which sets the 'debug' variable) rather than the "debug" _environment_ variable. This is more consistent with other warnings. - Don't use gcc C extensions, e.g., "case LOW ... HIGH:". - Define is_WSP() in def.h to be an inline function that for checks whitespace (WSP = ' ' or '\t'), as defined in RFC 2822. Use it consistently in place of isblank(). - For consistency, rename skip_blank() to skip_WSP(). - Add inline skip_space() to complement skip_blank() (now skip_WSP). - Check all ctype(3) calls for argument range issues. - Whitespace and comment cleanup/changes.
Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 5 17:50:23 2007 UTC (5 years, 11 months ago) by christos
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.17: +26 -2 lines
Diff to previous 1.17 (colored)
Add RCSID's to help files and centralize the function to cat the help files.
Revision 1.17 / (download) - annotate - [select for diffs], Tue Nov 28 18:45:32 2006 UTC (6 years, 5 months ago) by christos
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.16: +195 -145 lines
Diff to previous 1.16 (colored)
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!!!!
Revision 1.16 / (download) - annotate - [select for diffs], Tue Oct 31 20:07:32 2006 UTC (6 years, 6 months ago) by christos
Changes since 1.15: +0 -0 lines
Diff to previous 1.15 (colored)
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.
Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 21 21:37:21 2006 UTC (6 years, 7 months ago) by christos
Changes since 1.14: +28 -11 lines
Diff to previous 1.14 (colored)
From our anonymous user: - mime and character set handling - command line editor and completion - many code improvements
Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 19 23:07:10 2005 UTC (7 years, 10 months ago) by christos
CVS Tags: chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.13: +16 -16 lines
Diff to previous 1.13 (colored)
Pass lint completely.
Revision 1.13 / (download) - annotate - [select for diffs], Tue Jul 19 01:38:38 2005 UTC (7 years, 10 months ago) by christos
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)
Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 30 20:44:39 2004 UTC (8 years, 6 months ago) by dsl
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.11: +3 -6 lines
Diff to previous 1.11 (colored)
Add (unsigned char) cast to ctype functions
Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 31 01:25:54 2003 UTC (9 years, 6 months ago) by ross
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)
Defensively rewrite a string moving loop. Constify. Check for an allocation error.
Revision 1.10 / (download) - annotate - [select for diffs], Thu Aug 7 11:14:42 2003 UTC (9 years, 9 months ago) by agc
Changes since 1.9: +3 -7 lines
Diff to previous 1.9 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22365, verified by myself.
Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 5 21:29:30 2002 UTC (11 years, 2 months ago) by wiz
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)
Use warn() instead of perror().
Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 5 21:18:15 2002 UTC (11 years, 2 months ago) by wiz
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)
KNF: No space after casts.
Revision 1.7 / (download) - annotate - [select for diffs], Tue Mar 5 20:58:54 2002 UTC (11 years, 2 months ago) by wiz
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)
Replace a 0-cast with NULL.
Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 5 19:26:42 2002 UTC (11 years, 2 months ago) by wiz
Changes since 1.5: +3 -5 lines
Diff to previous 1.5 (colored)
ANSIfy another function (overlooked that one...).
Revision 1.5 / (download) - annotate - [select for diffs], Tue Mar 5 19:25:16 2002 UTC (11 years, 2 months ago) by wiz
Changes since 1.4: +2 -15 lines
Diff to previous 1.4 (colored)
Use strpbrk(3) instead of anyof().
Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 4 03:07:27 2002 UTC (11 years, 2 months ago) by wiz
Changes since 1.3: +16 -16 lines
Diff to previous 1.3 (colored)
Don't use special null string pointer (NOSTR), just use NULL.
Revision 1.3 / (download) - annotate - [select for diffs], Sat Mar 2 15:27:52 2002 UTC (11 years, 2 months ago) by wiz
Changes since 1.2: +13 -13 lines
Diff to previous 1.2 (colored)
Rename variables to avoid shadowing.
Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 2 14:59:38 2002 UTC (11 years, 2 months ago) by wiz
Changes since 1.1: +25 -55 lines
Diff to previous 1.1 (colored)
ANSIfy, and minimal KNF.
Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 19 02:46:19 2001 UTC (11 years, 7 months ago) by tv
Rename "aux.c" to "support.c" to avoid clash with invalid "aux" basename on some Microsoft host OS's.
This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.