mmh
15 years agoAdded support for optional Content_Disposition header in mhbuild directive.s
David Levine [Sat, 18 Feb 2006 16:26:37 +0000 (16:26 +0000)]
Added support for optional Content_Disposition header in mhbuild directive.s

15 years agoAdded RFC2183 to reference of RFC1806 for Content-Disposition header.
David Levine [Sun, 12 Feb 2006 18:06:44 +0000 (18:06 +0000)]
Added RFC2183 to reference of RFC1806 for Content-Disposition header.

15 years agoAdded -nocontentid (and -contentid, for symmetry) switch to mhbuild. This allows...
David Levine [Tue, 31 Jan 2006 02:50:57 +0000 (02:50 +0000)]
Added -nocontentid (and -contentid, for symmetry) switch to mhbuild.  This allows users to disable generation of the Content-ID: header in MIME messages, in order to placate broken version(s) of Outlook.

15 years agoremove trailing newlines from components to fix bug with spaces at the end of
Oliver Kiddle [Sun, 29 Jan 2006 19:34:42 +0000 (19:34 +0000)]
remove trailing newlines from components to fix bug with spaces at the end of
Subject/References in replies

15 years agouse AS_HELP_STRING for formatting help messages
Oliver Kiddle [Wed, 18 Jan 2006 18:08:16 +0000 (18:08 +0000)]
use AS_HELP_STRING for formatting help messages

15 years agoadd autoconf magic to support old systems that don't support multibyte charsets
Oliver Kiddle [Wed, 18 Jan 2006 17:07:28 +0000 (17:07 +0000)]
add autoconf magic to support old systems that don't support multibyte charsets

15 years agofix bug with insertion of newline being wrong if the num function was used at
Oliver Kiddle [Wed, 18 Jan 2006 16:43:27 +0000 (16:43 +0000)]
fix bug with insertion of newline being wrong if the num function was used at
the end of the format buffer

15 years agoFixed make_bcc_file () to use contents of From: in draft, if draft_from masquerade...
David Levine [Wed, 18 Jan 2006 00:09:00 +0000 (00:09 +0000)]
Fixed make_bcc_file () to use contents of From: in draft, if draft_from masquerade flag is enabled.

15 years agomore robust multi-byte/column support for field widths
Oliver Kiddle [Tue, 17 Jan 2006 18:06:58 +0000 (18:06 +0000)]
more robust multi-byte/column support for field widths
restore right justification feature

15 years ago* uip/post.c, uip/spost.c: Move the uptolow macro from spost.c to post.c
Josh Bressers [Mon, 16 Jan 2006 17:07:14 +0000 (17:07 +0000)]
* uip/post.c, uip/spost.c: Move the uptolow macro from spost.c to post.c
  where it is needed.

15 years ago* sbr/fmt_scan.c: Add the missing wchar.h include
Josh Bressers [Mon, 16 Jan 2006 12:42:11 +0000 (12:42 +0000)]
* sbr/fmt_scan.c: Add the missing wchar.h include

15 years ago*** empty log message ***
Oliver Kiddle [Mon, 16 Jan 2006 10:40:32 +0000 (10:40 +0000)]
*** empty log message ***

15 years agoremove remnants of code for MMDF
Oliver Kiddle [Mon, 16 Jan 2006 10:00:46 +0000 (10:00 +0000)]
remove remnants of code for MMDF

15 years agomultiply buffer size by MB_CUR_MAX so multi-byte chars fit
Oliver Kiddle [Mon, 16 Jan 2006 09:55:24 +0000 (09:55 +0000)]
multiply buffer size by MB_CUR_MAX so multi-byte chars fit

15 years ago* sbr/fmt_scan.c:PUTSF() Fix an off by one formatting issue.
Josh Bressers [Sun, 15 Jan 2006 02:52:12 +0000 (02:52 +0000)]
* sbr/fmt_scan.c:PUTSF() Fix an off by one formatting issue.

15 years ago* sbr/fmt_scan.c: Turn the PUTSF macro into a function capable of handling
Josh Bressers [Sun, 15 Jan 2006 02:29:38 +0000 (02:29 +0000)]
* sbr/fmt_scan.c: Turn the PUTSF macro into a function capable of handling
multi column characters.

15 years ago* Remove sbr/strerror.c -- strerror(3) is defined in C89.
Josh Bressers [Sat, 7 Jan 2006 15:22:19 +0000 (15:22 +0000)]
* Remove sbr/strerror.c -- strerror(3) is defined in C89.

15 years ago* patch #3968: Move the add() function from its own file (add.c) and
Josh Bressers [Fri, 6 Jan 2006 21:51:43 +0000 (21:51 +0000)]
* patch #3968: Move the add() function from its own file (add.c) and
  into utils.c. There was also a duplicate add() function in mf.c which
  has been removed.

15 years ago* mh_xmalloc(), mh_xrealloc(), pwd(): Add comments describing the purpose
Josh Bressers [Wed, 4 Jan 2006 02:10:25 +0000 (02:10 +0000)]
* mh_xmalloc(), mh_xrealloc(), pwd(): Add comments describing the purpose
  of the function.

15 years agoRemove sbr/pwd.c file, moving the pwd() function into sbr/utils.c.
Josh Bressers [Tue, 3 Jan 2006 01:08:33 +0000 (01:08 +0000)]
Remove sbr/pwd.c file, moving the pwd() function into sbr/utils.c.

15 years ago* patch #3967: Create a mh_xrealloc function to prevent mistakes when
Josh Bressers [Mon, 2 Jan 2006 03:25:18 +0000 (03:25 +0000)]
* patch #3967: Create a mh_xrealloc function to prevent mistakes when
calling realloc.

15 years ago* patch #3966: Create a mh_xmalloc function to prevent mistakes when
Josh Bressers [Mon, 2 Jan 2006 03:17:41 +0000 (03:17 +0000)]
* patch #3966: Create a mh_xmalloc function to prevent mistakes when
calling malloc.

15 years agoAvoid non-portable use of $< outside an inference rule.
Peter Maydell [Sat, 24 Dec 2005 17:53:26 +0000 (17:53 +0000)]
Avoid non-portable use of $< outside an inference rule.

15 years agoRework detection and handling of ndbm: we now check for a working
Peter Maydell [Sat, 24 Dec 2005 17:17:38 +0000 (17:17 +0000)]
Rework detection and handling of ndbm: we now check for a working
(library,header) combination, and configure defines variables for each
which the makefile and C file just use, rather than a bunch of HAVE_foo
switches. As a bonus, we no longer unnecessarily link every binary with
the ndbm library even though only slocal uses it. Also you can now tell
configure where to get the header/library so even if we guess wrong you
can overrule us.

15 years agoFix stupid accidental dependence on a bash quirk in previous
Peter Maydell [Thu, 22 Dec 2005 10:38:32 +0000 (10:38 +0000)]
Fix stupid accidental dependence on a bash quirk in previous
configure script change.

15 years agoRolled release. RELEASE_1_2
Jon Steinhart [Tue, 20 Dec 2005 04:39:51 +0000 (04:39 +0000)]
Rolled release.

15 years agoImprove the checks for where to find ndbm (dbm_open etc); should now
Peter Maydell [Thu, 15 Dec 2005 00:45:36 +0000 (00:45 +0000)]
Improve the checks for where to find ndbm (dbm_open etc); should now
work on systems with new gdbm and libdb4.

15 years agoChange some non-standard formatting in a previous log entry so it matches
Peter Maydell [Thu, 15 Dec 2005 00:12:52 +0000 (00:12 +0000)]
Change some non-standard formatting in a previous log entry so it matches
the conventions used in other entries.

15 years ago* Fedora Bug #163760: sbr/context_read.c (context_read): Ensure that the
Josh Bressers [Wed, 14 Dec 2005 01:48:24 +0000 (01:48 +0000)]
* Fedora Bug #163760: sbr/context_read.c (context_read): Ensure that the
context is only read once.

15 years agoFixed annotate call for new delete argument values.
Jon Steinhart [Mon, 12 Dec 2005 22:30:44 +0000 (22:30 +0000)]
Fixed annotate call for new delete argument values.

15 years ago* uip/sendsbr.c (annoaux): Fix the call to annotate()
Josh Bressers [Mon, 12 Dec 2005 20:26:53 +0000 (20:26 +0000)]
* uip/sendsbr.c (annoaux): Fix the call to annotate()

15 years ago*** empty log message ***
Jon Steinhart [Thu, 8 Dec 2005 15:57:34 +0000 (15:57 +0000)]
*** empty log message ***

15 years agoFixed a bug where anno -append put the headers in the wrong place
Jon Steinhart [Wed, 7 Dec 2005 21:25:46 +0000 (21:25 +0000)]
Fixed a bug where anno -append put the headers in the wrong place
if applied to a message that didn't contain any headers.

Added a special value of "all" to the -number option that causes
anno -delete to delete all matching components instead of just
the first one.

Added new -preserve and -nopreserve options.  Using -preserve
retains the original last accessed and last modified times on
annotated messages.

15 years agoFix the AC_PATH_PROG default when vi isn't found during build.
Josh Bressers [Mon, 5 Dec 2005 13:38:41 +0000 (13:38 +0000)]
Fix the AC_PATH_PROG default when vi isn't found during build.

15 years agoRolled version. Should have done it last time!
Jon Steinhart [Sat, 3 Dec 2005 23:41:39 +0000 (23:41 +0000)]
Rolled version.  Should have done it last time!

15 years agoMake it clearer that lower-case envariables aren't supposed to be set
Peter Maydell [Sat, 19 Nov 2005 16:32:34 +0000 (16:32 +0000)]
Make it clearer that lower-case envariables aren't supposed to be set
by the user.

15 years agoSpecial-case an MHCONTEXT of "/dev/null" and don't try to lock it -- some
Peter Maydell [Sat, 19 Nov 2005 16:04:25 +0000 (16:04 +0000)]
Special-case an MHCONTEXT of "/dev/null" and don't try to lock it -- some
user scripts may use this to suppress modification of context.

15 years ago[bug #9813] Don't crash after removing the folder if the context file
Peter Maydell [Mon, 14 Nov 2005 00:18:24 +0000 (00:18 +0000)]
[bug #9813] Don't crash after removing the folder if the context file
has no Current-Folder entry.

15 years agoPass some globals into sm_init() so that it uses SASL if necessary.
Peter Maydell [Sun, 13 Nov 2005 23:57:49 +0000 (23:57 +0000)]
Pass some globals into sm_init() so that it uses SASL if necessary.
[NB that as I do not have a SASL setup I am relying on (a) the patch
being obviously correct and (b) the original submitter having tested!]

15 years agoForgot to quote the bug number in the changelog comment.
Peter Maydell [Sun, 13 Nov 2005 23:56:30 +0000 (23:56 +0000)]
Forgot to quote the bug number in the changelog comment.

15 years agoUse context/ctxpath==NULL to indicate that no context file should be read,
Peter Maydell [Sun, 13 Nov 2005 23:51:18 +0000 (23:51 +0000)]
Use context/ctxpath==NULL to indicate that no context file should be read,
to avoid inadvertently trying to lock /dev/null (takes 30secs+ with some
locking methods).

15 years agoFix buffer overrun in address parsing code (would only show up if
Peter Maydell [Sun, 13 Nov 2005 22:36:07 +0000 (22:36 +0000)]
Fix buffer overrun in address parsing code (would only show up if
scan was run with -width 16536 or similar)

15 years agoremove link to install-mh that caused problems on some systems
Oliver Kiddle [Sun, 13 Nov 2005 19:38:32 +0000 (19:38 +0000)]
remove link to install-mh that caused problems on some systems

15 years agobug #739: install target now depends on all to avoid problem on
Oliver Kiddle [Sun, 13 Nov 2005 19:27:37 +0000 (19:27 +0000)]
bug #739: install target now depends on all to avoid problem on
case-insensitive file systems with the INSTALL file

15 years agoFix the AC_PATH_PROG default when sendmail isn't found during build.
Josh Bressers [Thu, 10 Nov 2005 21:37:10 +0000 (21:37 +0000)]
Fix the AC_PATH_PROG default when sendmail isn't found during build.

15 years agoFix a non-ANSI prototype.
Peter Maydell [Wed, 9 Nov 2005 22:56:35 +0000 (22:56 +0000)]
Fix a non-ANSI prototype.

15 years agoSimon Burge: fix to handle getutent() on NetBSD
Oliver Kiddle [Tue, 8 Nov 2005 20:22:33 +0000 (20:22 +0000)]
Simon Burge: fix to handle getutent() on NetBSD

15 years agoupdate most references to the web page and mailing list locations
Oliver Kiddle [Tue, 8 Nov 2005 17:18:09 +0000 (17:18 +0000)]
update most references to the web page and mailing list locations

15 years agoprepend DESTDIR to install locations
Oliver Kiddle [Tue, 8 Nov 2005 16:58:08 +0000 (16:58 +0000)]
prepend DESTDIR to install locations

15 years agoreplace obsolete autoconf macros
Oliver Kiddle [Tue, 8 Nov 2005 16:51:34 +0000 (16:51 +0000)]
replace obsolete autoconf macros

15 years agoFix various buffer overruns in fmt_scan.c; the bulk of this is passing
Peter Maydell [Sun, 6 Nov 2005 21:54:40 +0000 (21:54 +0000)]
Fix various buffer overruns in fmt_scan.c; the bulk of this is passing
buffer length through to decode_rfc2047() and having that function do
sufficient bookkeeping to avoid running off the end of the buffer.

15 years agoFix a compile error if building nmh with --enable-apop.
Peter Maydell [Sun, 6 Nov 2005 00:34:56 +0000 (00:34 +0000)]
Fix a compile error if building nmh with --enable-apop.

15 years agoDon't fclose() the file twice in error-exit paths from get_content()
Peter Maydell [Sun, 6 Nov 2005 00:32:20 +0000 (00:32 +0000)]
Don't fclose() the file twice in error-exit paths from get_content()
(was causing crashes on multipart mails with invalid Content-Type headers)

15 years agoRemove space between -o and output filename so it works on older versions
Peter Maydell [Sun, 6 Nov 2005 00:28:12 +0000 (00:28 +0000)]
Remove space between -o and output filename so it works on older versions
of flex as well as newer ones.

15 years agoAdd an AC_PREREQ so we don't just fail with an obscure error message if
Peter Maydell [Sun, 6 Nov 2005 00:23:48 +0000 (00:23 +0000)]
Add an AC_PREREQ so we don't just fail with an obscure error message if
using old 2.13 era autoconf (or an autoconf-version-guessing wrapper).

15 years agoUpdate the instructions for subscribing to the nmh-workers list
Josh Bressers [Fri, 4 Nov 2005 22:07:48 +0000 (22:07 +0000)]
Update the instructions for subscribing to the nmh-workers list

15 years agofail when kpop connection attempted without KPOP support compiled in
Oliver Kiddle [Wed, 2 Nov 2005 17:43:21 +0000 (17:43 +0000)]
fail when kpop connection attempted without KPOP support compiled in

15 years agofix for newer version of flex and remove autogenerated file from cvs
Oliver Kiddle [Wed, 2 Nov 2005 17:29:50 +0000 (17:29 +0000)]
fix for newer version of flex and remove autogenerated file from cvs

15 years agospeed up flist by skipping stat on files with numbers as names
Oliver Kiddle [Wed, 2 Nov 2005 17:22:27 +0000 (17:22 +0000)]
speed up flist by skipping stat on files with numbers as names

15 years agoinclude new files in distribution
Oliver Kiddle [Wed, 2 Nov 2005 17:16:39 +0000 (17:16 +0000)]
include new files in distribution

15 years ago A couple of questions from nmh's original FAQ were folded into
Bill Wohler [Tue, 11 Oct 2005 01:52:45 +0000 (01:52 +0000)]
  A couple of questions from nmh's original FAQ were folded into
  the MH FAQ which is now a part of nmh.

    New Questions

1.09 What is the copyright status of nmh?
3.23 Why do folder and flist overlook some of my sub-folders?

  Changed Questions

1.02 current version? nmh history update, nmh 1.1-RC4, mailutils 0.6

15 years agoHarald Geyer: back out fork/vfork workaround and handle the issue directly
Oliver Kiddle [Wed, 5 Oct 2005 10:05:24 +0000 (10:05 +0000)]
Harald Geyer: back out fork/vfork workaround and handle the issue directly

15 years agouse fork instead of vfork on Linux
Oliver Kiddle [Wed, 18 May 2005 13:45:03 +0000 (13:45 +0000)]
use fork instead of vfork on Linux

15 years agotest/report error writing to stdout
Oliver Kiddle [Wed, 18 May 2005 13:27:44 +0000 (13:27 +0000)]
test/report error writing to stdout

15 years agocorrect SASL include file locations
Oliver Kiddle [Wed, 18 May 2005 13:24:14 +0000 (13:24 +0000)]
correct SASL include file locations

15 years agoadd bash completion definitions from Debian
Oliver Kiddle [Wed, 18 May 2005 13:16:21 +0000 (13:16 +0000)]
add bash completion definitions from Debian

15 years agofix a bug affecting AFS where nmh was setting the READONLY flag for a
Oliver Kiddle [Wed, 18 May 2005 12:57:40 +0000 (12:57 +0000)]
fix a bug affecting AFS where nmh was setting the READONLY flag for a
folder even when you do have write access to the folder

15 years agoCarl Mummert: add unquote() function for removing quotes from RFC-2822 headers
Oliver Kiddle [Wed, 18 May 2005 12:50:45 +0000 (12:50 +0000)]
Carl Mummert: add unquote() function for removing quotes from RFC-2822 headers

15 years agofill in a few of the missing ChangeLog entries
Oliver Kiddle [Tue, 17 May 2005 16:30:15 +0000 (16:30 +0000)]
fill in a few of the missing ChangeLog entries

16 years agouse iconv to convert RFC-2047 encoded headers to the character set used
Oliver Kiddle [Wed, 23 Feb 2005 16:20:47 +0000 (16:20 +0000)]
use iconv to convert RFC-2047 encoded headers to the character set used
by the current locale

16 years agofix Debian bug #202667: crash when a message's filename overflows an int
Oliver Kiddle [Wed, 23 Feb 2005 14:07:52 +0000 (14:07 +0000)]
fix Debian bug #202667: crash when a message's filename overflows an int
when converted

16 years agoUpdated config.guess and config.sub to the most recent versions
Oliver Kiddle [Wed, 23 Feb 2005 11:55:25 +0000 (11:55 +0000)]
Updated config.guess and config.sub to the most recent versions
(from automake 1.9.5)

16 years agofix bug where inc crashed on failing to reopen the terminal
Oliver Kiddle [Mon, 21 Feb 2005 16:31:58 +0000 (16:31 +0000)]
fix bug where inc crashed on failing to reopen the terminal

16 years agoacknowledge that my change was based on an older patch from Michael Richardson
Oliver Kiddle [Thu, 27 Jan 2005 16:43:03 +0000 (16:43 +0000)]
acknowledge that my change was based on an older patch from Michael Richardson

16 years agoAdded -proxy option to inc and msgchk
Oliver Kiddle [Thu, 27 Jan 2005 16:39:56 +0000 (16:39 +0000)]
Added -proxy option to inc and msgchk

16 years agoAdded -proxy option to inc and msgchk
Oliver Kiddle [Thu, 27 Jan 2005 16:34:20 +0000 (16:34 +0000)]
Added -proxy option to inc and msgchk

16 years agoOn systems where it is available, use nl_langinfo to get the character
Oliver Kiddle [Thu, 27 Jan 2005 16:26:24 +0000 (16:26 +0000)]
On systems where it is available, use nl_langinfo to get the character
set if MM_CHARSET is unset

16 years agoUS-ASCII is a subset of UTF-8 so can be handled directly when UTF-8 is
Oliver Kiddle [Fri, 21 Jan 2005 19:25:44 +0000 (19:25 +0000)]
US-ASCII is a subset of UTF-8 so can be handled directly when UTF-8 is
being used

16 years agoFix -part option to mhshow/mhlist/mhstore to find sub-parts of the specified
Oliver Kiddle [Fri, 17 Dec 2004 15:16:04 +0000 (15:16 +0000)]
Fix -part option to mhshow/mhlist/mhstore to find sub-parts of the specified
part

16 years agoAdded mail directory argument to folder_addmsg in order to make it possible
Jon Steinhart [Fri, 19 Nov 2004 05:06:16 +0000 (05:06 +0000)]
Added mail directory argument to folder_addmsg in order to make it possible
to provide a path to the ext_hook call that is mailpath-based.  A problem
existed when a folder was a symbolic link and the pwd call would return
the path relative to the filesystem, not to mailpath.  A new argument was
needed because there was otherwise no reasonable way to get that path.

16 years agoFixed problem where the refile hook was being called after a message was
Jon Steinhart [Tue, 16 Nov 2004 18:14:34 +0000 (18:14 +0000)]
Fixed problem where the refile hook was being called after a message was
renamed so that it wasn't around for the hook.  The hook is now called
before the message file is renamed.

16 years agoFixed typo in comment.
Jon Steinhart [Tue, 16 Nov 2004 18:08:07 +0000 (18:08 +0000)]
Fixed typo in comment.
Fixed problem with refile hook when refiling across filesystems.

16 years agoRemoved unnecessary code.
Jon Steinhart [Tue, 16 Nov 2004 17:37:41 +0000 (17:37 +0000)]
Removed unnecessary code.

16 years agoFixed wrong directory for hook when refiling with -src option.
Jon Steinhart [Tue, 16 Nov 2004 17:28:33 +0000 (17:28 +0000)]
Fixed wrong directory for hook when refiling with -src option.

16 years agoFixed calling of external hooks.
Jon Steinhart [Fri, 15 Oct 2004 17:10:58 +0000 (17:10 +0000)]
Fixed calling of external hooks.

16 years agoFixed another weird bug caused by the static mailpath being overwritten.
Jon Steinhart [Tue, 12 Oct 2004 21:14:02 +0000 (21:14 +0000)]
Fixed another weird bug caused by the static mailpath being overwritten.

16 years agoFixed bug that caused anno to mangle headers.
Jon Steinhart [Tue, 12 Oct 2004 20:41:34 +0000 (20:41 +0000)]
Fixed bug that caused anno to mangle headers.

16 years agoFixed strange bug that prevented a lock from ever being obtained if getting
Jon Steinhart [Tue, 12 Oct 2004 20:40:25 +0000 (20:40 +0000)]
Fixed strange bug that prevented a lock from ever being obtained if getting
it failed the first time.  The problem was that the string of XXXXXX that
is required by mkstemp() was overwritten the first time through, and so
all subsequent times failed because mkstemp() failed.  The fix
reinitializes the tmp file string.

16 years agoFixed bug in which the static maildir was overwritted if a format string
Jon Steinhart [Tue, 12 Oct 2004 20:38:10 +0000 (20:38 +0000)]
Fixed bug in which the static maildir was overwritted if a format string
was read from the profile.

16 years agoFixed bug that was producing an incorrect path for the external hook.
Jon Steinhart [Tue, 12 Oct 2004 20:31:14 +0000 (20:31 +0000)]
Fixed bug that was producing an incorrect path for the external hook.

17 years agodb configuration fix for Debian; yet another location for ndbm.
Glenn Burkhardt [Mon, 6 Oct 2003 20:11:39 +0000 (20:11 +0000)]
db configuration fix for Debian; yet another location for ndbm.

17 years agorestored use of PUTDF() macro; was broken in versions 1.10-1.12;
Glenn Burkhardt [Tue, 30 Sep 2003 19:55:12 +0000 (19:55 +0000)]
restored use of PUTDF() macro; was broken in versions 1.10-1.12;
replacement implementation filled on right instead of on left.

17 years ago[bug #4302] errno is not always an extern int
Glenn Burkhardt [Tue, 30 Sep 2003 16:57:26 +0000 (16:57 +0000)]
[bug #4302] errno is not always an extern int
The errno declaration is best left to errno.h; several systems use
#define errno (*(___errno()))
or similar

17 years agocorrected termination condition for fill character introduced in last version
Glenn Burkhardt [Tue, 30 Sep 2003 16:22:54 +0000 (16:22 +0000)]
corrected termination condition for fill character introduced in last version

17 years ago[bug #4296] PUTD() macro can't hack 10 digit values
Glenn Burkhardt [Tue, 30 Sep 2003 16:19:12 +0000 (16:19 +0000)]
[bug #4296] PUTD() macro can't hack 10 digit values
Once the number exceeded 1000000000, the conversion would fail.  An execution of
 dp -format "%(clock{text})" "Tue, 01 Jul 2003 21:38:05 +0700" would erroneously print
749660476, instead of 1057070285.

The macros PUTD() and PUTDF() have been replaced by snprintf() calls;  These macros
should never have been written in the first place, when system functions exist to do the
work.

(prev version 1.10 was erroneously comitted).

17 years ago[bug #4296] PUTD() macro can't hack 10 digit values
Glenn Burkhardt [Tue, 30 Sep 2003 16:07:49 +0000 (16:07 +0000)]
[bug #4296] PUTD() macro can't hack 10 digit values
Once the number exceeded 1000000000, the conversion would fail.  An execution of
 dp -format "%(clock{text})" "Tue, 01 Jul 2003 21:38:05 +0700" would erroneously print
749660476, instead of 1057070285.

The macros PUTD() and PUTDF() have been replaced by snprintf() calls;  These macros
should never have been written in the first place, when system functions exist to do the
work.

17 years ago[bug #4297] The strlen mh-format function can crash if 'str' is null.
Glenn Burkhardt [Tue, 30 Sep 2003 14:36:04 +0000 (14:36 +0000)]
[bug #4297] The strlen mh-format function can crash if 'str' is null.

17 years agonote recent changes
Glenn Burkhardt [Tue, 30 Sep 2003 14:30:36 +0000 (14:30 +0000)]
note recent changes

17 years agofix handling of "-list" and "-seq" options, so behavior is orthoganal.
Glenn Burkhardt [Tue, 30 Sep 2003 14:19:20 +0000 (14:19 +0000)]
fix handling of "-list" and "-seq" options, so behavior is orthoganal.
Previously, "pick -list -seq seqname" meant "pick -nolist -seq seqname".
Now "pick -list -seq seqname" and "pick -seq seqname -list" do the same thing.
Thanks to Robert Elz.

17 years agoupdate 'mp->lowmsg' from 0 to 1 during regular 'inc' from mail spool;
Glenn Burkhardt [Sun, 28 Sep 2003 14:27:34 +0000 (14:27 +0000)]
update 'mp->lowmsg' from 0 to 1 during regular 'inc' from mail spool;
avoids failure of 'folder_realloc()' for case of no messages in
folder, and more than 100 messages to incorporate.  Initially,
'folder_read()' will initialize 'mp->lowmsg' to 0, and 'mp->lowoff'
to 1.  So the call would be folder_realloc(mp, 1, 200), and the
comparison 'if (mp->nummsg > 0 && lo > mp->lowmsg)' will fail.