]> diplodocus.org Git - nmh/log
nmh
13 years agom_convert: 'foo=n' and 'foo=+/-n' now select msgs with relative offsets
Paul Fox [Thu, 4 Apr 2013 12:21:50 +0000 (08:21 -0400)]
m_convert: 'foo=n' and 'foo=+/-n' now select msgs with relative offsets

13 years agoFixed permissions of maildelivery file in test-slocal to fix
David Levine [Fri, 19 Apr 2013 02:30:33 +0000 (21:30 -0500)]
Fixed permissions of maildelivery file in test-slocal to fix
test failure reported by Paul Fox.  Also added code to the test
to help diagnose any failure.

13 years agoPlugged memory leak in m_unknown().
David Levine [Tue, 16 Apr 2013 13:00:54 +0000 (08:00 -0500)]
Plugged memory leak in m_unknown().

13 years agoAdded date to test message with two blank lines between header
David Levine [Tue, 16 Apr 2013 12:59:54 +0000 (07:59 -0500)]
Added date to test message with two blank lines between header
and body so that the test can pass on other days.

13 years agoFixed problem in m_getfld() reported by Paul Fox. When
David Levine [Tue, 16 Apr 2013 02:01:12 +0000 (21:01 -0500)]
Fixed problem in m_getfld() reported by Paul Fox.  When
inc'ing a message from a maildrop with two blank lines
between the header and body, the last 3 or 4 characters of
the last header would be copied into the body.

13 years agoMoved #include of signal.h to h/signals.h. And it was already
David Levine [Sun, 14 Apr 2013 15:47:31 +0000 (10:47 -0500)]
Moved #include of signal.h to h/signals.h.  And it was already
in h/nmh.h.

13 years agoMoved #include of errno.h to h/nmh.h.
David Levine [Sun, 14 Apr 2013 15:27:47 +0000 (10:27 -0500)]
Moved #include of errno.h to h/nmh.h.

13 years agoRemoved #include of sys/wait.h from sbr/pidstatus.c. I missed
David Levine [Sun, 14 Apr 2013 15:13:42 +0000 (10:13 -0500)]
Removed #include of sys/wait.h from sbr/pidstatus.c.  I missed
it with b523a72928c0ef630be33cf5f5aab9fc301958e1.

13 years agoA "credentials" mh-profile entry has been added. This allows
David Levine [Sun, 14 Apr 2013 14:53:32 +0000 (09:53 -0500)]
A "credentials" mh-profile entry has been added.  This allows
post(8), whom(1), send(1), inc(1), and msgchk(1) to (optionally)
honour the username in the .netrc file [Bug #23168].  And, it
allows specification of any valid filename in place of $HOME/.netrc.

13 years agoFixed typo in several man pages.
David Levine [Wed, 10 Apr 2013 01:26:43 +0000 (20:26 -0500)]
Fixed typo in several man pages.

13 years agoAdded vpick to dist_contib_DATA so it gets distributed.
David Levine [Thu, 4 Apr 2013 01:06:19 +0000 (20:06 -0500)]
Added vpick to dist_contib_DATA so it gets distributed.

13 years agoBe sure that mhfixmsg returns a status of non-zero if
David Levine [Thu, 4 Apr 2013 00:56:54 +0000 (19:56 -0500)]
Be sure that mhfixmsg returns a status of non-zero if
it can't reformat a part.

13 years agoAdded port number to "Connecting to" message with -snoop.
David Levine [Wed, 3 Apr 2013 23:46:22 +0000 (18:46 -0500)]
Added port number to "Connecting to" message with -snoop.

13 years agoDocument new -initialtls option.
Ken Hornstein [Mon, 1 Apr 2013 16:10:28 +0000 (12:10 -0400)]
Document new -initialtls option.

13 years agoCast away constness of SSL_CTX_new() arg because that's
David Levine [Mon, 1 Apr 2013 01:56:49 +0000 (20:56 -0500)]
Cast away constness of SSL_CTX_new() arg because that's
what older versions of ssl use.

13 years agoLook at post instead of inc to determine build options in build_nmh.
David Levine [Mon, 1 Apr 2013 01:39:55 +0000 (20:39 -0500)]
Look at post instead of inc to determine build options in build_nmh.

13 years agoAdded const to SSL_METHOD *.
David Levine [Mon, 1 Apr 2013 01:39:22 +0000 (20:39 -0500)]
Added const to SSL_METHOD *.

13 years agoPreliminary support for TLS negotiation at the very start of SMTP session.
Ken Hornstein [Sun, 31 Mar 2013 22:33:46 +0000 (18:33 -0400)]
Preliminary support for TLS negotiation at the very start of SMTP session.

13 years agoMoved #include <sys/wait.h> to h/nmh.h.
David Levine [Sun, 31 Mar 2013 21:32:10 +0000 (16:32 -0500)]
Moved #include <sys/wait.h> to h/nmh.h.

13 years agoRemoved limit on maximum number of sequences in a folder.
David Levine [Sun, 31 Mar 2013 16:45:09 +0000 (11:45 -0500)]
Removed limit on maximum number of sequences in a folder.
Dynamically sized vectors in sbr/vector.c were added to support
this.  Their sizes are limited only by virtual memory.

13 years agoMoved #include <assert.h> to h/nmh.h.
David Levine [Sat, 30 Mar 2013 14:53:10 +0000 (09:53 -0500)]
Moved #include <assert.h> to h/nmh.h.

13 years agoA bug fix and an enhancement to mhfixmsg based on patches
David Levine [Fri, 29 Mar 2013 17:09:15 +0000 (12:09 -0500)]
A bug fix and an enhancement to mhfixmsg based on patches
provided by M. Levinson:
1) Set status to NOTOK in get_multipart_boundary() if the
   message is missing its end boundary.  This avoids a seg fault
   in fix_boundary(); also added check for null return from
   parse_mime().  If this turns out to be a common problem, we
   could consider adding code to repair it.  Now, mhfixmsg ignores
   the condition and proceeeds with any other transformations.
2) With -decodetext 7bit, mhfixmsg now converts base64-encoded
   parts to quoted-printable 8bit if the part will not fit into
   7bit.

13 years agoDocument changes regarding increased per-folder sequence limits.
Ken Hornstein [Wed, 27 Mar 2013 18:56:44 +0000 (14:56 -0400)]
Document changes regarding increased per-folder sequence limits.

13 years agoWarn the user if too many sequences exist during sequence initialization.
Ken Hornstein [Wed, 27 Mar 2013 18:51:33 +0000 (14:51 -0400)]
Warn the user if too many sequences exist during sequence initialization.

13 years agoChange seqset_t to unsigned long to support more sequences on LP64 systems.
Ken Hornstein [Wed, 27 Mar 2013 18:22:40 +0000 (14:22 -0400)]
Change seqset_t to unsigned long to support more sequences on LP64 systems.
Also include necessary casts to make sequence macros worked properly.
Based on code contributed by M. Levinson.

13 years agoReworded description of "mark -seq foo delete all" example
David Levine [Tue, 26 Mar 2013 03:29:06 +0000 (22:29 -0500)]
Reworded description of "mark -seq foo delete all" example
in mark(1) man page.

13 years agoFinished replacing mh_strcasecmp() with strcasecmp(). Removed
David Levine [Sun, 24 Mar 2013 18:37:47 +0000 (13:37 -0500)]
Finished replacing mh_strcasecmp() with strcasecmp().  Removed
sbr/strcasecmp.c.

13 years agoMore replacements of mh_strcasecmp() with strcasecmp().
David Levine [Sun, 24 Mar 2013 18:23:59 +0000 (13:23 -0500)]
More replacements of mh_strcasecmp() with strcasecmp().

13 years agoMore replacements of mh_strcasecmp() with strcasecmp().
David Levine [Sun, 24 Mar 2013 16:45:42 +0000 (11:45 -0500)]
More replacements of mh_strcasecmp() with strcasecmp().

13 years agoMore replacements of mh_strcasecmp() with strcasecmp().
David Levine [Sun, 24 Mar 2013 16:28:51 +0000 (11:28 -0500)]
More replacements of mh_strcasecmp() with strcasecmp().

13 years agoMore replacements of mh_strcasecmp() with strcasecmp().
David Levine [Sun, 24 Mar 2013 16:15:27 +0000 (11:15 -0500)]
More replacements of mh_strcasecmp() with strcasecmp().

13 years agoMore replacements of mh_strcasecmp() with strcasecmp().
David Levine [Sun, 24 Mar 2013 15:36:18 +0000 (10:36 -0500)]
More replacements of mh_strcasecmp() with strcasecmp().

13 years agoStarted replacing uses of mh_strcasecmp() with strcasecmp().
David Levine [Sun, 24 Mar 2013 14:09:02 +0000 (09:09 -0500)]
Started replacing uses of mh_strcasecmp() with strcasecmp().

13 years agoChange folder_delmsgs() to save context and sequence files (and make
Ken Hornstein [Sun, 24 Mar 2013 02:59:24 +0000 (22:59 -0400)]
Change folder_delmsgs() to save context and sequence files (and make
sure those changes are before calling rmmproc().  Update programs
that use folder_delmsgs() to make all changes to sequences and
the context before calling folder_delmsgs().

13 years agoMake some formatting changes to conform to our manpage style.
Ken Hornstein [Fri, 22 Mar 2013 04:28:35 +0000 (00:28 -0400)]
Make some formatting changes to conform to our manpage style.

13 years agoAlways update sequences and context in mhfixmsg, not just when
David Levine [Fri, 22 Mar 2013 13:33:40 +0000 (08:33 -0500)]
Always update sequences and context in mhfixmsg, not just when
there is a rmmproc.

13 years agoFixes from M. Levinson:
David Levine [Fri, 22 Mar 2013 02:05:09 +0000 (21:05 -0500)]
Fixes from M. Levinson:
1) Fixed typo in elinks option in etc/mhn.defaults.sh.
2) Added #include <sys/wait.h> to mhfixmsg.c.
3) Fixed seg fault when there's no corresponding profile entry
   for a message part in mhfixmsg.
4) If rename() fails in write_content() of mhfixmsg, attempt to
   copy and then remove the file.

13 years agoMinor formatting fix for fmttest man page.
Ken Hornstein [Fri, 22 Mar 2013 01:49:29 +0000 (21:49 -0400)]
Minor formatting fix for fmttest man page.

13 years agoWent through the sources and checked where etcpath() is
Alexander Zangerl [Fri, 22 Mar 2013 01:22:21 +0000 (20:22 -0500)]
Went through the sources and checked where etcpath() is
used, and added/cloned an explanatory bit of text from the
fmttest man page to the files section for all affected
programs.

13 years agoMake sure to mark the sequence file as closed in the msgs struct.
Ken Hornstein [Thu, 21 Mar 2013 22:28:21 +0000 (18:28 -0400)]
Make sure to mark the sequence file as closed in the msgs struct.

13 years agoChange mhfixmsg to the new world folder_read() API.
Ken Hornstein [Thu, 21 Mar 2013 21:19:46 +0000 (17:19 -0400)]
Change mhfixmsg to the new world folder_read() API.

13 years agoMerge branch 'newlock'
Ken Hornstein [Thu, 21 Mar 2013 21:14:30 +0000 (17:14 -0400)]
Merge branch 'newlock'

13 years agoMore documentation about locking changes.
Ken Hornstein [Thu, 21 Mar 2013 21:12:42 +0000 (17:12 -0400)]
More documentation about locking changes.

13 years agoSupport for sequence file locking in inc(1).
Ken Hornstein [Thu, 21 Mar 2013 21:12:13 +0000 (17:12 -0400)]
Support for sequence file locking in inc(1).

13 years agoDon't lock and write the sequence files until after the searching
Ken Hornstein [Thu, 21 Mar 2013 17:47:04 +0000 (13:47 -0400)]
Don't lock and write the sequence files until after the searching
is complete.

13 years agoReplaced reference to mktemp(3) with mkstemp(3) in
David Levine [Thu, 21 Mar 2013 14:13:13 +0000 (09:13 -0500)]
Replaced reference to mktemp(3) with mkstemp(3) in
rmmproc.messageid.

13 years agoAdded support for Content-Disposition header (RFC 2183) to
David Levine [Thu, 21 Mar 2013 02:48:57 +0000 (21:48 -0500)]
Added support for Content-Disposition header (RFC 2183) to
mhstore(1) and mhn(1) when used with -auto.

13 years agoRemoved hard-coded locking selection from SPECS/nmh.spec.
David Levine [Thu, 21 Mar 2013 01:52:10 +0000 (20:52 -0500)]
Removed hard-coded locking selection from SPECS/nmh.spec.

13 years agoFixed typo in rmf man page.
David Levine [Thu, 21 Mar 2013 01:25:31 +0000 (20:25 -0500)]
Fixed typo in rmf man page.

13 years agoAdded -[no]rmmproc switches to rmm and mhfixmsg.
David Levine [Tue, 19 Mar 2013 12:32:24 +0000 (07:32 -0500)]
Added -[no]rmmproc switches to rmm and mhfixmsg.

13 years agoMake sure the building of config/config.o and sbr/mts.o depend on
Ken Hornstein [Tue, 19 Mar 2013 05:02:45 +0000 (01:02 -0400)]
Make sure the building of config/config.o and sbr/mts.o depend on
the Makefile so changes to the Makefile are properly reflected in the build.

13 years agoAdded -[no]rmmproc switches to rmm and mhfixmsg.
David Levine [Tue, 19 Mar 2013 01:00:10 +0000 (20:00 -0500)]
Added -[no]rmmproc switches to rmm and mhfixmsg.

13 years agoAdd code for (and convert world to) the new world lock order.
Ken Hornstein [Mon, 18 Mar 2013 19:29:35 +0000 (15:29 -0400)]
Add code for (and convert world to) the new world lock order.

Still need to add some code to make inc and pick behave better (not hold locks
for as long).

13 years agoAdd ICONVLIB to build rule for mhfixmsg
Ken Hornstein [Mon, 18 Mar 2013 14:38:06 +0000 (10:38 -0400)]
Add ICONVLIB to build rule for mhfixmsg

13 years agoFixed use of WIFEXITED in mhfixmsg.c.
David Levine [Mon, 18 Mar 2013 13:54:55 +0000 (08:54 -0500)]
Fixed use of WIFEXITED in mhfixmsg.c.

13 years agoFixed procmail example in mhfixmsg man page.
David Levine [Mon, 18 Mar 2013 02:55:56 +0000 (21:55 -0500)]
Fixed procmail example in mhfixmsg man page.

13 years agoRemoved color-tests from AM_INIT_AUTOMAKE because the build
David Levine [Sun, 17 Mar 2013 20:40:36 +0000 (15:40 -0500)]
Removed color-tests from AM_INIT_AUTOMAKE because the build
breaks if not supported, and automake 1.13 enables it by
default.

13 years agoAdded mhfixmsg(1).
David Levine [Sun, 17 Mar 2013 15:32:57 +0000 (10:32 -0500)]
Added mhfixmsg(1).

13 years agoFixed typo in fmmtest man page.
David Levine [Sun, 17 Mar 2013 15:29:26 +0000 (10:29 -0500)]
Fixed typo in fmmtest man page.

13 years agoAdd information about locking support entries to the man pages.
Ken Hornstein [Sat, 16 Mar 2013 04:04:38 +0000 (00:04 -0400)]
Add information about locking support entries to the man pages.

13 years agoSupport for locking tests in the test suite.
Ken Hornstein [Sat, 16 Mar 2013 03:45:54 +0000 (23:45 -0400)]
Support for locking tests in the test suite.

13 years agoTurns out the close function can be called with FILE * == NULL, so handle
Ken Hornstein [Fri, 15 Mar 2013 23:42:43 +0000 (19:42 -0400)]
Turns out the close function can be called with FILE * == NULL, so handle
that case.

13 years agoMostly complete now, but not yet functional.
Ken Hornstein [Fri, 15 Mar 2013 19:57:56 +0000 (15:57 -0400)]
Mostly complete now, but not yet functional.

13 years agoCorrected comment describing copy_seqs().
David Levine [Fri, 15 Mar 2013 13:50:23 +0000 (08:50 -0500)]
Corrected comment describing copy_seqs().

13 years agoChanged c_cefile member of struct Content from pointer to
David Levine [Fri, 15 Mar 2013 03:02:30 +0000 (22:02 -0500)]
Changed c_cefile member of struct Content from pointer to
struct cefile.  The memory cost will be negligible and it
simplifies the MIME parser code a bit.

13 years agoAdded -[no]retainsequences switches to refile(1).
David Levine [Fri, 15 Mar 2013 01:58:31 +0000 (20:58 -0500)]
Added -[no]retainsequences switches to refile(1).

13 years agoChanged loop in dumpwidth() to go from [0, 0xffff) because
David Levine [Fri, 15 Mar 2013 01:37:49 +0000 (20:37 -0500)]
Changed loop in dumpwidth() to go from [0, 0xffff) because
wchar_t is 2 bytes wide on Cygwin.  gcc noticed that the loop
would never terminate because 0xffff would increment to 0.

13 years agoChanged detection of warning in build_nmh for sign mismatch
David Levine [Fri, 15 Mar 2013 00:08:15 +0000 (19:08 -0500)]
Changed detection of warning in build_nmh for sign mismatch
in sbr/dtimep.c to work with older gcc.

13 years agoMore locking updates; still doesn't compile yet.
Ken Hornstein [Thu, 14 Mar 2013 19:57:07 +0000 (15:57 -0400)]
More locking updates; still doesn't compile yet.

13 years agoStart of the changes for the new lock code. Does not compile yet.
Ken Hornstein [Thu, 14 Mar 2013 01:02:48 +0000 (21:02 -0400)]
Start of the changes for the new lock code.  Does not compile yet.

13 years agoAdd support for RFC-2017, message/external-body content which contains URLs.
Ken Hornstein [Tue, 12 Mar 2013 18:22:49 +0000 (14:22 -0400)]
Add support for RFC-2017, message/external-body content which contains URLs.

13 years agoChange sample disposition from "application" to "attachment"
Ken Hornstein [Tue, 12 Mar 2013 16:57:41 +0000 (12:57 -0400)]
Change sample disposition from "application" to "attachment"

13 years agoAdded check that writesomecmd() isn't at the end of argp before
David Levine [Mon, 11 Mar 2013 23:57:01 +0000 (18:57 -0500)]
Added check that writesomecmd() isn't at the end of argp before
dereferencing ++argp.  I'm surprised that no one, including me,
tripped over this before:  whatnow(1) would seg fault when
handling, e.g., detach -n 4.  But until I upgraded to Fedora 18,
I never noticed it.  (valgrind did.)

13 years agoIgnore the sign mismatch warning when sbr/dtimep.c is built with
David Levine [Mon, 11 Mar 2013 23:42:16 +0000 (18:42 -0500)]
Ignore the sign mismatch warning when sbr/dtimep.c is built with
flex 2.5.36 or 2.5.37.

13 years agoFixed spelling of "preserve" in refile man page.
David Levine [Fri, 8 Mar 2013 12:40:07 +0000 (06:40 -0600)]
Fixed spelling of "preserve" in refile man page.

13 years agoIn the locking discussion of mh-folders(5), discourage direct
David Levine [Fri, 8 Mar 2013 02:11:22 +0000 (20:11 -0600)]
In the locking discussion of mh-folders(5), discourage direct
access to the nmh state files.

13 years agoAdded lockmethod pseudocomponent to mhparam so that users
David Levine [Wed, 6 Mar 2013 02:17:08 +0000 (20:17 -0600)]
Added lockmethod pseudocomponent to mhparam so that users
can easily find out what locking method was configured in.

13 years agoUpdate with more information.
Ken Hornstein [Tue, 5 Mar 2013 19:30:51 +0000 (14:30 -0500)]
Update with more information.

13 years agoAdded a bit more on sequences to mh-folders.man.
David Levine [Mon, 4 Mar 2013 03:45:09 +0000 (21:45 -0600)]
Added a bit more on sequences to mh-folders.man.

13 years agoAdded beginnings of storage format spec to new mh-folders.man.
David Levine [Sun, 3 Mar 2013 15:53:10 +0000 (09:53 -0600)]
Added beginnings of storage format spec to new mh-folders.man.

13 years agoFixed typo in rmmproc.messageid.
David Levine [Sun, 3 Mar 2013 15:49:05 +0000 (09:49 -0600)]
Fixed typo in rmmproc.messageid.

13 years agoReworked internals of MIME parser's reverse_parts() and made it
David Levine [Thu, 28 Feb 2013 01:32:38 +0000 (19:32 -0600)]
Reworked internals of MIME parser's reverse_parts() and made it
public.

13 years agoAdded tolower(), toupper(), and toascii() to
David Levine [Thu, 28 Feb 2013 01:31:31 +0000 (19:31 -0600)]
Added tolower(), toupper(), and toascii() to
gen-ctype-checked.c.

13 years agoAdded a handful of functions to the parser to allow access to
David Levine [Wed, 27 Feb 2013 01:23:58 +0000 (19:23 -0600)]
Added a handful of functions to the parser to allow access to
init functions and string representations of enum valus for
content types and encodings.

13 years agoAdded nmh_strcasestr() because POSIX doesn't have strcasestr().
David Levine [Wed, 27 Feb 2013 01:08:38 +0000 (19:08 -0600)]
Added nmh_strcasestr() because POSIX doesn't have strcasestr().

13 years agoSupport RFC 2231 language tags in RFC 2047 header strings.
Ken Hornstein [Tue, 26 Feb 2013 18:19:06 +0000 (13:19 -0500)]
Support RFC 2231 language tags in RFC 2047 header strings.

13 years agoAdded cpytrim() function. Unlike trimcpy(), it does not modify
David Levine [Tue, 26 Feb 2013 05:02:05 +0000 (23:02 -0600)]
Added cpytrim() function.  Unlike trimcpy(), it does not modify
its argument.

13 years agoAdded const qualifier to arguments of concat() and copy().
David Levine [Tue, 26 Feb 2013 04:46:00 +0000 (22:46 -0600)]
Added const qualifier to arguments of concat() and copy().

13 years agoAdded find_str() and rfind_str() to sbr/utils.c
David Levine [Mon, 25 Feb 2013 03:55:28 +0000 (21:55 -0600)]
Added find_str() and rfind_str() to sbr/utils.c

13 years agoAdded const qualifier to char * arguments of add(), addlist(),
David Levine [Mon, 25 Feb 2013 03:38:33 +0000 (21:38 -0600)]
Added const qualifier to char * arguments of add(), addlist(),
and folder_exists() in sbr/utils.{h,c}.

13 years agoAdd support for LS_UNQUOTE instruction.
Ken Hornstein [Fri, 22 Feb 2013 05:52:50 +0000 (00:52 -0500)]
Add support for LS_UNQUOTE instruction.

13 years agoFix the code to print out an unknown instruction. Wow, this never worked
Ken Hornstein [Fri, 22 Feb 2013 05:47:47 +0000 (00:47 -0500)]
Fix the code to print out an unknown instruction.  Wow, this never worked
back from the original fmtdump.

13 years agoWhoops, forgot a \ when adding fmttest.man to man_SRCS.
Ken Hornstein [Fri, 22 Feb 2013 04:56:02 +0000 (23:56 -0500)]
Whoops, forgot a \ when adding fmttest.man to man_SRCS.

13 years agoQuote the arguments to the .I macro so the manpage test doesn't complain.
Ken Hornstein [Fri, 22 Feb 2013 04:03:31 +0000 (23:03 -0500)]
Quote the arguments to the .I macro so the manpage test doesn't complain.

13 years agoDocument new fmttest program.
Ken Hornstein [Fri, 22 Feb 2013 03:55:41 +0000 (22:55 -0500)]
Document new fmttest program.

13 years agoFix a few issues resulting from m_getfld() API changes.
Ken Hornstein [Fri, 22 Feb 2013 03:55:23 +0000 (22:55 -0500)]
Fix a few issues resulting from m_getfld() API changes.

13 years agoMerge branch 'format-test'
Ken Hornstein [Fri, 22 Feb 2013 03:40:48 +0000 (22:40 -0500)]
Merge branch 'format-test'

13 years agoAdd a lot more text to the man page; it should be in reasonable shape now.
Ken Hornstein [Fri, 22 Feb 2013 03:38:18 +0000 (22:38 -0500)]
Add a lot more text to the man page; it should be in reasonable shape now.

13 years agoUpdate instruction output to be a bit more cleaner
Ken Hornstein [Fri, 22 Feb 2013 03:37:47 +0000 (22:37 -0500)]
Update instruction output to be a bit more cleaner

13 years agoFixed write8Bit() to use fread()/fwrite() instead of
David Levine [Fri, 22 Feb 2013 03:01:55 +0000 (21:01 -0600)]
Fixed write8Bit() to use fread()/fwrite() instead of
fgets()/fputs().