Up to [cvs.NetBSD.org] / src / usr.bin / mail
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 4 01:54:55 2013 UTC (4 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
tls-maxphys-nbase,
tls-maxphys-base,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.15: +17 -12
lines
Diff to previous 1.15 (colored)
PR/47396: Steffen: mail(1) may falsely use quoted-printable for files with embedded NULs
Revision 1.15 / (download) - annotate - [select for diffs], Fri Jan 4 01:43:59 2013 UTC (4 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.14: +4 -4
lines
Diff to previous 1.14 (colored)
PR/47395: Steffen: mail(1) unnecessarily uses base64 if a CR without a LF is seen
Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 29 23:50:22 2012 UTC (12 months, 3 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5
Branch point for: tls-maxphys
Changes since 1.13: +10 -10
lines
Diff to previous 1.13 (colored)
set close on exec for all opened files.
Revision 1.13 / (download) - annotate - [select for diffs], Sat Apr 11 14:22:32 2009 UTC (4 years, 1 month ago) by christos
Branch: MAIN
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-premerge-20091211,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jym-xensuspend-base,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.12: +8 -5
lines
Diff to previous 1.12 (colored)
- magic fix for short files - knf from Anon Ymous
Revision 1.12 / (download) - annotate - [select for diffs], Fri Apr 10 13:08:25 2009 UTC (4 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.11: +17 -10
lines
Diff to previous 1.11 (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.11 / (download) - annotate - [select for diffs], Wed Mar 11 01:10:05 2009 UTC (4 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.10: +5 -5
lines
Diff to previous 1.10 (colored)
fix warnings.
Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:14 2008 UTC (5 years ago) by martin
Branch: MAIN
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.9: +2 -9
lines
Diff to previous 1.9 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.9 / (download) - annotate - [select for diffs], Thu Apr 24 01:27:06 2008 UTC (5 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.8: +3 -3
lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Fri Dec 14 16:55:20 2007 UTC (5 years, 5 months ago) by christos
Branch: MAIN
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
Branch point for: yamt-pf42
Changes since 1.7: +22 -21
lines
Diff to previous 1.7 (colored)
From Anon Ymous: - Fix a file handle leak. - Use Fopen(), Fdopen(), and Fclose() consistently so the signal handler close files.
Revision 1.7 / (download) - annotate - [select for diffs], Tue Oct 30 02:28:31 2007 UTC (5 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: cube-autoconf-base,
cube-autoconf
Changes since 1.6: +170 -62
lines
Diff to previous 1.6 (colored)
From Anon Ymous: - Add a "forward" command as requested by garbled@. From the manpage: forward Takes a list of messages and prompts for an address (or addresses) to forward each message to. If no message list is specified, the current message is used. The mail editor is run for each message allowing the user to enter a message that will precede the forward message. The message is sent as a multi- part/mixed MIME encoded message. - Add the ability to match messages that do (or do not) contain a header field. E.g., the command "f ! /Subject:" will display the list of messages that are missing a "Subject" field. - Teach savemail() to prefix fake headlines so the mbox doesn't get broken. - Fixed a couple of "bugs" in the attachment editing routine.
Revision 1.6 / (download) - annotate - [select for diffs], Mon Oct 29 23:20:38 2007 UTC (5 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.5: +2 -12
lines
Diff to previous 1.5 (colored)
From Anon Ymous: knf changes: - s/sizeof x/sizeof(x)/. - remove unnecessary malloc typecasts. - whitespace nits.
Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 23 14:58:44 2007 UTC (5 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.4: +20 -20
lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Wed Jan 3 00:24:36 2007 UTC (6 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.3: +31 -11
lines
Diff to previous 1.3 (colored)
1) Fix a really stupid table termination error in mime_decode.c. 2) When doing attachments set the "name=" parameter of the Content-Type field, in addition to the (already) set "filename=" parameter of the Content-Disposition field. Some utilities (e.g., metamail) use this parameter for the filename even though (I believe) the "filename=" parameter of the Content-Disposition field is preferred by the standard (I can't find this explicitly except for "application/octet-stream" types - see RFC1521 sec 7.4.1 and RFC2046 sec 4.5.1). My impression is that the "name=" parameter of the Content-Types field is really intended for use when retrieving a file not in the message, e.g., "message/external-body" Content-Types, and not for the filename. (Thanks to wiz@ for noticing this in his spam logs.) 3) Be more careful when determining the Content-Type of 1-byte attachments. libmagic(3) isn't helpful on such small files.
Revision 1.3 / (download) - annotate - [select for diffs], Tue Nov 28 18:45:32 2006 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.2: +19 -68
lines
Diff to previous 1.2 (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.2 / (download) - annotate - [select for diffs], Tue Oct 31 20:07:32 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.1: +93 -29
lines
Diff to previous 1.1 (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.1 / (download) - annotate - [select for diffs], Sat Oct 21 21:37:21 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
From our anonymous user: - mime and character set handling - command line editor and completion - many code improvements