mmh
15 years agotest/runtest: automatically run setup-test if it hasn't already
Peter Maydell [Thu, 25 Dec 2008 23:30:33 +0000 (23:30 +0000)]
test/runtest: automatically run setup-test if it hasn't already
been done. Improve error handling in test script with 'set -e'.

16 years ago * h/mh.h: raised NAMESZ from 128 to 999. RFC 2822 limits line
David Levine [Thu, 23 Oct 2008 18:38:22 +0000 (18:38 +0000)]
* h/mh.h: raised NAMESZ from 128 to 999.  RFC 2822 limits line
lengths to 998 characters, so a header name can be at most that long.
m_getfld limits header names to 2 less than NAMESZ, which is fine,
because header names must be followed by a colon.  Add one for
terminating NULL.

16 years ago * sbr/m_getfld.c: in warning message, use NAMESZ-2 instead of
David Levine [Thu, 23 Oct 2008 18:14:52 +0000 (18:14 +0000)]
* sbr/m_getfld.c: in warning message, use NAMESZ-2 instead of
NAMESZ-1 bytes because the message says "exceeds", not
"is greater than or equal to".

16 years ago * docs/MAIL.FILTERING: added note on removing procmail -f or
David Levine [Thu, 23 Oct 2008 16:45:36 +0000 (16:45 +0000)]
* docs/MAIL.FILTERING: added note on removing procmail -f or
-r options to try to suppress generation of a "From " line on
incoming messages.

16 years ago+mhn.defaults.sh.cfg
Eric Gillespie [Tue, 19 Aug 2008 04:36:42 +0000 (04:36 +0000)]
+mhn.defaults.sh.cfg

16 years ago * test/setup-test: Don't run autogen.sh unless needed. Build in a
Eric Gillespie [Thu, 14 Aug 2008 19:47:29 +0000 (19:47 +0000)]
* test/setup-test: Don't run autogen.sh unless needed.  Build in a
blddir under the temporary directory so as not to interfere with
whatever the developer may be doing in the source directory.
If the temporary directory already exists, rebuild and install it.

16 years agoThis is what happens with last-minute "safe" improvements: actually point
Eric Gillespie [Thu, 14 Aug 2008 06:19:08 +0000 (06:19 +0000)]
This is what happens with last-minute "safe" improvements: actually point
chset to something in the new merged InitText!

16 years ago * sbr/ambigsw.c: Send print_sw output to stderr. This avoids
Eric Gillespie [Thu, 14 Aug 2008 01:50:45 +0000 (01:50 +0000)]
* sbr/ambigsw.c: Send print_sw output to stderr.  This avoids
strange problems with scan `pick -bogus`, not to mention being
nicer anyway.

* sbr/getans.c, sbr/print_help.c, uip/msh.c: Send print_sw output
to stdout.

* h/prototypes.h, sbr/print_sw.c (print_sw): Add FILE * argument
and send output there rather than to stdout.

* test/tests/pick/test-stderr: Add test that error messages don't
end up going to stdout.

16 years ago * uip/pick.c: Ensure valid sequence name as soon as we parse it from
Eric Gillespie [Thu, 14 Aug 2008 01:31:11 +0000 (01:31 +0000)]
* uip/pick.c: Ensure valid sequence name as soon as we parse it from
command, instead of searching the messages first.

16 years ago * uip/pick.c: Print matching messages immediately, instead of
Eric Gillespie [Thu, 14 Aug 2008 01:28:56 +0000 (01:28 +0000)]
* uip/pick.c: Print matching messages immediately, instead of
waiting until the very end to print anything.

16 years ago * uip/Makefile.in, uip/popi.c: Remove popi.c, which has been dead
Eric Gillespie [Thu, 14 Aug 2008 01:11:12 +0000 (01:11 +0000)]
* uip/Makefile.in, uip/popi.c: Remove popi.c, which has been dead
since PatchSet 257 (2000/06/12 11:07:34 UTC).

16 years ago * h/mhparse.h: Move interfaces also used by mhbuildsbr.c here
Eric Gillespie [Thu, 14 Aug 2008 00:56:38 +0000 (00:56 +0000)]
* h/mhparse.h: Move interfaces also used by mhbuildsbr.c here
from mhparse.c.

* uip/Makefile.in (mhbuild): Build with mhparse.o.

* uip/mhbuildsbr.c: Drop the duplication of mhparse.c.

* uip/mhbuild.c, uip/mhlist.c, uip/mhn.c, uip/mhshow.c,
uip/mhstore.c, uip/mhtest.c: Drop check swdeclaration, which is
now in mhparse.h.

* uip/mhparse.c: Move some declarations to mhparse.h, and remove
'static' from the definitions here.
(get_ctinfo): Take magic mhbuild support from mhbuildsbr.c's copy,
and adapt callers.
(incl_name_value, extract_name_value): Move from mhbuildsbr.c to
support get_ctinfo change).
(get_content, open7Bit): Add Content-Disposition support, added to
mhbuildsbr.c's copy in mhbuildsbr.c r1.12 (PatchSet 549).
(InitText): Default to CHARSET_UNSPECIFIED instead of "US-ASCII",
as mhbuildsbr.c's copy did.  Explain termproc.
(openBase64, openQuoted, open7Bit): Fix comment from r1.5:
suffixes, not prefixes.
(openMail): Explain showproc.

* test/tests/mhshow/test-cte-binary: Add test for
Content-Transfer-Encoding: binary (Debian #136976).

* test/tests/mhbuild/test-forw: Add an mhbuild test, testing forw
with and without RFC-934 mode.  More mhbuild tests would be nice.

16 years agoOops, meant to use $failed (number of failed checks) as the exit code.
Eric Gillespie [Wed, 13 Aug 2008 23:59:56 +0000 (23:59 +0000)]
Oops, meant to use $failed (number of failed checks) as the exit code.

16 years agoAdd descriptive headers, as other tests have.
Eric Gillespie [Wed, 13 Aug 2008 23:32:03 +0000 (23:32 +0000)]
Add descriptive headers, as other tests have.

16 years ago * test/tests/bad-input/test-header: Add test for it.
Eric Gillespie [Wed, 13 Aug 2008 18:27:36 +0000 (18:27 +0000)]
* test/tests/bad-input/test-header: Add test for it.

* sbr/m_getfld.c: If we reach the end of the line without finding
a ':' when parsing a header field, treat that line as the
beginning of the body rather than blowing up.  These messages are
usually spam, but it's nice to be able to at least scan them.

16 years ago * test/tests/mhshow/test-qp: Test various valid and invalid
Eric Gillespie [Wed, 13 Aug 2008 01:01:12 +0000 (01:01 +0000)]
* test/tests/mhshow/test-qp: Test various valid and invalid
escape sequences.

* uip/mhparse.c (openQuoted): Simplify the decode-or-show for loop by
peeking ahead to the next byte(s) when encountering '=', and just let
invalid escape sequences through as literals (fixes bug #15245).

16 years agoIgnore test-temp-dir.
Eric Gillespie [Wed, 13 Aug 2008 01:00:20 +0000 (01:00 +0000)]
Ignore test-temp-dir.

16 years agoadd one more hint for developers, to explicitly point at docs/README.developers
Paul Fox [Tue, 12 Aug 2008 21:01:30 +0000 (21:01 +0000)]
add one more hint for developers, to explicitly point at docs/README.developers

16 years agoautogen.sh (new file): add script for running the GNU autotools in the
Peter Maydell [Tue, 12 Aug 2008 18:04:29 +0000 (18:04 +0000)]
autogen.sh (new file): add script for running the GNU autotools in the
right order. Mention and use new script in the appropriate places.

16 years ago * sbr/discard.c, sbr/m_getfld.c, uip/scansbr.c: Add support for
Eric Gillespie [Fri, 8 Aug 2008 23:45:24 +0000 (23:45 +0000)]
* sbr/discard.c, sbr/m_getfld.c, uip/scansbr.c: Add support for
DragonFlyBSD stdio (from NetBSD pkgsrc).

16 years agos/ls/cd/ in comment (probably pasted from test-ls)
Eric Gillespie [Fri, 8 Aug 2008 04:45:05 +0000 (04:45 +0000)]
s/ls/cd/ in comment (probably pasted from test-ls)

16 years agouip/folder.c: chdir(nmhdir) in main rather than in dodir, which
Peter Maydell [Tue, 5 Aug 2008 21:06:00 +0000 (21:06 +0000)]
uip/folder.c: chdir(nmhdir) in main rather than in dodir, which
is called many times.  Drop the chdir in get_folder_info, which
served no purpose at all.  If struct stat has d_type (BSD), use
that to skip processing (strcmp, stat, and so on) of message
files, mostly undoing the slow-down from the last change.
Plus autoconf machinery to detect d_type field. Patch from Eric Gillespie.

16 years agoDump hacky overoptimisation in addir -- it doesn't actually get the case
Peter Maydell [Tue, 5 Aug 2008 19:09:03 +0000 (19:09 +0000)]
Dump hacky overoptimisation in addir -- it doesn't actually get the case
of symlinks to directories right. Patch from Eric Gillespie.

16 years agoSimplify dodir/addir/addfold (patch from Eric Gillespie)
Peter Maydell [Tue, 5 Aug 2008 19:05:23 +0000 (19:05 +0000)]
Simplify dodir/addir/addfold (patch from Eric Gillespie)

16 years agobug #23319: rework the way we handle the working directory when invoking
Peter Maydell [Sun, 3 Aug 2008 18:47:56 +0000 (18:47 +0000)]
bug #23319: rework the way we handle the working directory when invoking
the user's shell, so that we don't have issues when the cwd contains a
space or shell special character.

16 years agotest/setup-test: use 'set -e' so we stop on compile failure.
Peter Maydell [Sun, 3 Aug 2008 18:45:34 +0000 (18:45 +0000)]
test/setup-test: use 'set -e' so we stop on compile failure.
Configure --enable-debug for convenience in debugging.

16 years agoAdd protective 'do { ... } while (0)' wrappers to multistatement macros
Peter Maydell [Sun, 3 Aug 2008 15:19:53 +0000 (15:19 +0000)]
Add protective 'do { ... } while (0)' wrappers to multistatement macros

16 years agoBug #23436: fix some minor manpage syntax errors and add a test which runs
Peter Maydell [Sun, 3 Aug 2008 15:14:23 +0000 (15:14 +0000)]
Bug #23436: fix some minor manpage syntax errors and add a test which runs
groff over them and checks that no warnings are emitted.

16 years agoAllow tests to indicate that they have been skipped by printing their
Peter Maydell [Sun, 3 Aug 2008 15:13:34 +0000 (15:13 +0000)]
Allow tests to indicate that they have been skipped by printing their
own message and returning with exit status 120.

16 years agoIgnore editor backup files
Peter Maydell [Sun, 3 Aug 2008 13:59:19 +0000 (13:59 +0000)]
Ignore editor backup files

16 years agoetc/replcomps, etc/replgroupcomps: Trim trailing whitespace from
Peter Maydell [Sun, 3 Aug 2008 13:54:37 +0000 (13:54 +0000)]
etc/replcomps, etc/replgroupcomps: Trim trailing whitespace from
Subject field (patch from Eric Gillespie)

16 years agoWhen doing an if-test on the result of a function which returns a string
Peter Maydell [Sun, 3 Aug 2008 13:32:17 +0000 (13:32 +0000)]
When doing an if-test on the result of a function which returns a string
result, check whether the string is non-empty (as the documentation says we
do). Previously we were always testing the integer 'value'.

16 years ago* test/setup-test: Run 'make clean' before building
Josh Bressers [Fri, 25 Jul 2008 01:07:39 +0000 (01:07 +0000)]
* test/setup-test: Run 'make clean' before building

16 years ago* test/runtest: cat test-temp-dir only once. Destroy and create
Josh Bressers [Fri, 25 Jul 2008 00:11:53 +0000 (00:11 +0000)]
* test/runtest: cat test-temp-dir only once.  Destroy and create
test Mail hierarchy here, so each test has its own independent
test data.

* test/setup-test: Drop needless pushd/popd, which don't exist in
sh anyway.  Don't use aclocal, which is part of automake.
Don't create Mail hierarchy here (see test/runtest).

* test/tests/folder/test-create, tests/folder/test-total: Drop
unused BINDIR.

* tests/pick/test-pick: Remove failing no-op test.

* test/tests/scan/test-scan: Write expected and actual output to
files and diff them.  This way, if the output differs, diff
provides the FAILing exit code and shows the differences.

16 years ago* man/repl.man, etc/mhl.reply:
Josh Bressers [Fri, 13 Jun 2008 00:11:49 +0000 (00:11 +0000)]
* man/repl.man, etc/mhl.reply:
Add an attribution line when replying to messages.

16 years agoRemove an accidentally committed file
Josh Bressers [Thu, 12 Jun 2008 23:29:16 +0000 (23:29 +0000)]
Remove an accidentally committed file

16 years agoWhen building on gcc, use noreturn attribute on adios and the various done
Peter Maydell [Mon, 2 Jun 2008 22:37:01 +0000 (22:37 +0000)]
When building on gcc, use noreturn attribute on adios and the various done
functions.

16 years agoBack out previous, completely broken, change (due to a foulup I was
Peter Maydell [Mon, 2 Jun 2008 22:05:11 +0000 (22:05 +0000)]
Back out previous, completely broken, change (due to a foulup I was
compiling a different tree to the one I was committing to CVS).

16 years agoIf we're compiling with gcc, mark adios() as never returning (better code
Peter Maydell [Mon, 2 Jun 2008 21:49:07 +0000 (21:49 +0000)]
If we're compiling with gcc, mark adios() as never returning (better code
and fewer spurious 'uninitialized variable) warnings)

16 years agoUpdate bit of docs about release announcements.
Peter Maydell [Sun, 1 Jun 2008 16:50:22 +0000 (16:50 +0000)]
Update bit of docs about release announcements.

16 years agoDon't use MB_CUR_MAX if we aren't compiled with multibyte support.
Peter Maydell [Thu, 22 May 2008 10:37:55 +0000 (10:37 +0000)]
Don't use MB_CUR_MAX if we aren't compiled with multibyte support.

16 years agoFactor out common code for writing ls shell command. Rework its length
Peter Maydell [Thu, 22 May 2008 10:21:48 +0000 (10:21 +0000)]
Factor out common code for writing ls shell command. Rework its length
checking so it doesn't rely on the return value of sprintf(), for the
benefit of SunOS 4.

16 years agoDon't rely on realloc() to follow POSIX in handling a NULL pointer
Peter Maydell [Wed, 21 May 2008 18:05:49 +0000 (18:05 +0000)]
Don't rely on realloc() to follow POSIX in handling a NULL pointer

16 years agoAdd some table size declarations for the benefit of elderly lexes with
Peter Maydell [Wed, 21 May 2008 17:16:44 +0000 (17:16 +0000)]
Add some table size declarations for the benefit of elderly lexes with
small defaults (eg SunOS 4)

16 years agoUpdate comment now we don't use lex -o.
Peter Maydell [Tue, 20 May 2008 19:04:57 +0000 (19:04 +0000)]
Update comment now we don't use lex -o.

16 years ago* sbr/addrsbr.c: removed "err" from conditional, because gcc
David Levine [Sun, 18 May 2008 13:56:58 +0000 (13:56 +0000)]
* sbr/addrsbr.c: removed "err" from conditional, because gcc
correctly warned that it would always evaluate as true.  It's
the address of a static array.

16 years agodon't use $< in target rules in makefiles, as POSIX says it's only defined
Oliver Kiddle [Fri, 16 May 2008 15:31:26 +0000 (15:31 +0000)]
don't use $< in target rules in makefiles, as POSIX says it's only defined
in inference rules

16 years ago* configure.in, INSTALL: if --enable-masquerade is not
David Levine [Tue, 13 May 2008 02:39:04 +0000 (02:39 +0000)]
* configure.in, INSTALL: if --enable-masquerade is not
specified to configure, enable all supported masquerade forms.
This allows users to masquerade with the default
configuration. That seems to be more worthwhile now than
trying to prevent users from using it, especially with
single-user installations or those where a user can edit
etc/mts.conf.

16 years agobug #23167: sbr/ruserpass.c (ruserpass): make bad permissions on .netrc be
Peter Maydell [Sun, 4 May 2008 20:58:35 +0000 (20:58 +0000)]
bug #23167: sbr/ruserpass.c (ruserpass): make bad permissions on .netrc be
an instantly fatal error. Previously we returned an error value; however, no
caller was checking it. So now ruserpass() has a void return type.

16 years ago* bug #23163: various minor fixes for the benefit of older Unixes
Peter Maydell [Sun, 4 May 2008 16:09:08 +0000 (16:09 +0000)]
* bug #23163: various minor fixes for the benefit of older Unixes
(specifically SunOS 4): reintroduce strerror() substitute implementation;
provide memmove() substitute implementation
* bug #23163: fix broken 'build outside source directory' feature
* bug #23162: sbr/dtime.c: fix stray HAVE_TM_GMTOFF that wasn't updated
to the new macro name.

16 years agoProvide SASL_CB_AUTHNAME callback (avoids problem with wrong username
Peter Maydell [Wed, 30 Apr 2008 18:47:02 +0000 (18:47 +0000)]
Provide SASL_CB_AUTHNAME callback (avoids problem with wrong username
being sent in some situations)

16 years agoCorrect various places in smtp.c where the reply string might not have been
Peter Maydell [Tue, 29 Apr 2008 21:05:30 +0000 (21:05 +0000)]
Correct various places in smtp.c where the reply string might not have been
correctly NUL-terminated. Includes a fix for a particularly nasty and long
standing screwup where the buffer length counting in smhear() was totally
broken for continued lines from the server.

16 years agoFix SASL issue properly, by making sm_rrecord() and thus sm_hear() set
Peter Maydell [Tue, 29 Apr 2008 20:59:04 +0000 (20:59 +0000)]
Fix SASL issue properly, by making sm_rrecord() and thus sm_hear() set
the length of the reply string correctly (the SASL libraries now care
if you pass in the wrong length).

16 years agoRevert previous SASL fix (wrong approach)
Peter Maydell [Tue, 29 Apr 2008 20:53:33 +0000 (20:53 +0000)]
Revert previous SASL fix (wrong approach)

16 years agoCope with sasl_decode64() returning SASL_CONTINUE as well as SASL_OK.
Peter Maydell [Tue, 29 Apr 2008 17:04:38 +0000 (17:04 +0000)]
Cope with sasl_decode64() returning SASL_CONTINUE as well as SASL_OK.

16 years agoAdd remark about how to update the homepage.
Peter Maydell [Mon, 28 Apr 2008 21:13:53 +0000 (21:13 +0000)]
Add remark about how to update the homepage.

16 years agoUpdate some of the 'how to do a release' documentation
Peter Maydell [Sun, 27 Apr 2008 20:58:50 +0000 (20:58 +0000)]
Update some of the 'how to do a release' documentation

16 years agoUp version string to 1.3-dev for the CVS trunk.
Peter Maydell [Sun, 27 Apr 2008 20:55:28 +0000 (20:55 +0000)]
Up version string to 1.3-dev for the CVS trunk.

16 years agoUse hyphen, not plus (corresponding to previous RCx naming convention) nmh-1_3_RC1
Peter Maydell [Sun, 27 Apr 2008 19:54:37 +0000 (19:54 +0000)]
Use hyphen, not plus (corresponding to previous RCx naming convention)

16 years agoBump version number, date for release of 1.3 RC1
Peter Maydell [Sun, 27 Apr 2008 19:44:58 +0000 (19:44 +0000)]
Bump version number, date for release of 1.3 RC1

16 years agomove most remaining macros out of acconfig.h which is an obsolete feature of
Oliver Kiddle [Fri, 11 Apr 2008 14:12:54 +0000 (14:12 +0000)]
move most remaining macros out of acconfig.h which is an obsolete feature of
autoconf

16 years ago* bug #18655: fix use of admonish() for a fatal error (should
Peter Maydell [Sat, 5 Apr 2008 19:04:41 +0000 (19:04 +0000)]
* bug #18655: fix use of admonish() for a fatal error (should
be adios(); only actual effect would be wrong exit code).
Thanks to Craig Leres for spotting this.

16 years agoBug #20028 (Debian bug 399271): fix code assuming that pointer
Peter Maydell [Sat, 5 Apr 2008 18:41:37 +0000 (18:41 +0000)]
Bug #20028 (Debian bug 399271): fix code assuming that pointer
differences were 32 bits -- thanks to Dean Gaudet for the patch.

16 years ago* uip/mhshowsbr.c (show_all_messages): Be more generous when parsing
Josh Bressers [Fri, 25 Jan 2008 21:00:42 +0000 (21:00 +0000)]
* uip/mhshowsbr.c (show_all_messages): Be more generous when parsing
    multipart messages.

17 years agoInsert types for args of some function pointers to improve type checking.
Joel Reicher [Thu, 8 Nov 2007 02:28:38 +0000 (02:28 +0000)]
Insert types for args of some function pointers to improve type checking.

17 years agoReturn type of (*done)() changed to void. default_done() replaced by
Joel Reicher [Sun, 4 Nov 2007 11:54:32 +0000 (11:54 +0000)]
Return type of (*done)() changed to void. default_done() replaced by
exit(). All dead code "return 1" lines removed from *_done()s and replaced
by explicit "return 1" following done() calls in main()s (they should
never be reached). This should make cleaning up program termination
structures easier.

17 years agoRefactor cts pointer and free()ing on abnormal exit of associated list
Joel Reicher [Sun, 4 Nov 2007 08:52:17 +0000 (08:52 +0000)]
Refactor cts pointer and free()ing on abnormal exit of associated list
into mhfree.c, eliminating duplication.

17 years agoChange link-time overriding of done() to run-time reassigning of equivalent
Joel Reicher [Sun, 4 Nov 2007 04:47:17 +0000 (04:47 +0000)]
Change link-time overriding of done() to run-time reassigning of equivalent
(*done)(). This should make changing the return type of done and the
rationalisation of exit code easier.

17 years ago The MH web site is now http://rand-mh.sourceforge.net/ and the MH
Bill Wohler [Mon, 24 Sep 2007 07:02:03 +0000 (07:02 +0000)]
  The MH web site is now rand-mh.sourceforge.net/ and the MH
  book is now at http://rand-mh.sourceforge.net/book/.

  Changed Questions

1.02 ...current version? mailutils 1.2
1.03 Where can I get MH? Debian 4.0 nmh 1.1-RC4, update links, mu 1.2
1.04 ...references for MH? Refer to SourceForge
1.06 How...print a MH manual? Refer to SourceForge
2.17 How...build MH on a Mac? Use fink
4.05 ...tools to archive MH? Mention swish++, mairix, and namazu

17 years ago* Red Hat Bug #253342: inc.c, utils.c, utils.h: When inc is run with the
Josh Bressers [Tue, 21 Aug 2007 21:19:39 +0000 (21:19 +0000)]
* Red Hat Bug #253342: inc.c, utils.c, utils.h: When inc is run with the
-silent flag, don't exit(1) for no apparent reason.

17 years agoRename functions to avoid clash with C library exp2().
Peter Maydell [Sun, 29 Apr 2007 22:57:36 +0000 (22:57 +0000)]
Rename functions to avoid clash with C library exp2().

17 years agoSuppress 'uninitialised variable' warning.
Peter Maydell [Sun, 29 Apr 2007 22:34:04 +0000 (22:34 +0000)]
Suppress 'uninitialised variable' warning.

17 years agoOn Linux, define _GNU_SOURCE so that GNU libc exposes the wcwidth()
Peter Maydell [Sun, 29 Apr 2007 22:05:02 +0000 (22:05 +0000)]
On Linux, define _GNU_SOURCE so that GNU libc exposes the wcwidth()
prototype in wchar.h.

17 years agoChange name of internal function to avoid potential conflicts with GNU
Peter Maydell [Sun, 29 Apr 2007 22:01:04 +0000 (22:01 +0000)]
Change name of internal function to avoid potential conflicts with GNU
libc's getline() function.

17 years agoMinor rearrangement so variables/functions used only if !HAVE_LIBLOCKFILE
Peter Maydell [Sun, 29 Apr 2007 20:49:32 +0000 (20:49 +0000)]
Minor rearrangement so variables/functions used only if !HAVE_LIBLOCKFILE
are also declared only in that case.

17 years agoFor gcc, make the default CFLAGS include -Wno-pointer-sign if the compiler
Peter Maydell [Sun, 29 Apr 2007 19:36:14 +0000 (19:36 +0000)]
For gcc, make the default CFLAGS include -Wno-pointer-sign if the compiler
recognises it. gcc 4 now by default produces a large volume of these
warnings, which I believe are probably spurious and definitely a lot of
work to go through and fix. So we suppress them for now so that the other
warnings are more easily visible.

17 years agobuffer is compared with cp, and so needs to be changed to unsigned too.
Joel Reicher [Tue, 17 Apr 2007 04:53:54 +0000 (04:53 +0000)]
buffer is compared with cp, and so needs to be changed to unsigned too.

17 years agoInitial checkin of a testsuite
Josh Bressers [Tue, 17 Apr 2007 01:02:08 +0000 (01:02 +0000)]
Initial checkin of a testsuite

17 years agoChange all chars being passed to the ctype macros (isalph(), etc.) to
Joel Reicher [Fri, 13 Apr 2007 11:53:08 +0000 (11:53 +0000)]
Change all chars being passed to the ctype macros (isalph(), etc.) to
be unsigned chars, following through to change any other types as
necessary (e.g. comparison between two pointers). Not all chars have
been changed to unsigned chars; just those that were in danger of being
sign extended when passed to the int-taking ctype macros.

17 years agoWe're not using the .Bu macro anymore.
Joel Reicher [Tue, 10 Apr 2007 22:12:26 +0000 (22:12 +0000)]
We're not using the .Bu macro anymore.

17 years agoFix for bug #11139: mhl -form mhl.reply omits '> ' on some lines.
Joel Reicher [Tue, 10 Apr 2007 06:13:27 +0000 (06:13 +0000)]
Fix for bug #11139: mhl -form mhl.reply omits '> ' on some lines.

putcomp() was assuming only the first call on the body had the buffer
beginning at the start of a line.

17 years agoApplication of patch #5218: patch for bug #9742. Fixes a typo in the
Joel Reicher [Tue, 10 Apr 2007 03:32:48 +0000 (03:32 +0000)]
Application of patch #5218: patch for bug #9742. Fixes a typo in the
size arg of snprintf(). mhlist output which used to have incorrect lines
such as
     1.2   multipart/mixed            772
     1.21  text/plain                   9
     1.22  multipart/mixed            162
now have the correct
     1.2   multipart/mixed            772
     1.2.1 text/plain                   9
     1.2.2 multipart/mixed            162

17 years agobug #18630, #18631, #18632, #18634: various patches from Craig Leres
Peter Maydell [Wed, 21 Mar 2007 00:21:10 +0000 (00:21 +0000)]
bug #18630, #18631, #18632, #18634: various patches from Craig Leres
fixing error message argument problems.

17 years agobug #15212: remove configure test for broken AT&T vi. This test was broken
Peter Maydell [Wed, 21 Mar 2007 00:18:19 +0000 (00:18 +0000)]
bug #15212: remove configure test for broken AT&T vi. This test was broken
and unfixable. Support for manually defining ATTVIBUG remains.

17 years agoAdd a missing header file
Josh Bressers [Tue, 16 Jan 2007 02:08:10 +0000 (02:08 +0000)]
Add a missing header file

18 years agoChanged bold "-all" to unbolded "all". It's a reserved msgs word, not a flag.
Joel Reicher [Sun, 5 Nov 2006 13:20:46 +0000 (13:20 +0000)]
Changed bold "-all" to unbolded "all". It's a reserved msgs word, not a flag.

18 years ago* uip/sendsbr.c: with attachformat values of 1 or 2, add
David Levine [Tue, 24 Oct 2006 14:31:40 +0000 (14:31 +0000)]
* uip/sendsbr.c: with attachformat values of 1 or 2, add
name= portion to Content-Type header.  This makes them
consistent with attachformat value 0.  And it allows mhstore
to use that (file)name when extracting attachments.

18 years ago* configure.in: If we're not using dotlocking, there is no need to set inc
Josh Bressers [Sun, 27 Aug 2006 01:19:39 +0000 (01:19 +0000)]
* configure.in: If we're not using dotlocking, there is no need to set inc
sgid.

18 years agoFixed bug introduced when changing from check_folder() to new
Joel Reicher [Sun, 4 Jun 2006 08:37:24 +0000 (08:37 +0000)]
Fixed bug introduced when changing from check_folder() to new
create_folder() function. The folder name needed to be expanded to an
absolute path first. Similar things may have happened with other
conversions.

18 years agoCreated pluspath function to check for '+' prefix and change flag for
Joel Reicher [Thu, 27 Apr 2006 12:00:28 +0000 (12:00 +0000)]
Created pluspath function to check for '+' prefix and change flag for
path() appropriately. This eliminates some duplicate prefix processing,
but not all. The path functions need to be restructed; this is the first
step.

18 years agossequal() does not check for a substring, but for a prefix, so added a
Joel Reicher [Mon, 24 Apr 2006 07:10:03 +0000 (07:10 +0000)]
ssequal() does not check for a substring, but for a prefix, so added a
comment to this effect. If this is sufficient, the function body should
remain unchanged but the name and comments should be modified. If not,
then the function needs to be corrected.

18 years agofixes case where a very long character-class range (128 or
Paul Fox [Sat, 22 Apr 2006 16:33:48 +0000 (16:33 +0000)]
fixes case where a very long character-class range (128 or
more characters) causes negative indexing into pattern string.

18 years agoFixed a typo.
Joel Reicher [Sun, 16 Apr 2006 06:47:59 +0000 (06:47 +0000)]
Fixed a typo.

18 years agoCreated function open_form() to open form file or fallback to default
Joel Reicher [Fri, 14 Apr 2006 14:10:15 +0000 (14:10 +0000)]
Created function open_form() to open form file or fallback to default
components file, with error handling. Replaced duplicated code with call
to this function.

18 years agoFixed a couple of typos.
Joel Reicher [Fri, 14 Apr 2006 08:42:04 +0000 (08:42 +0000)]
Fixed a couple of typos.

18 years agoSanitised some dodgy homedir finding code, but it still might not make
Joel Reicher [Fri, 14 Apr 2006 08:21:35 +0000 (08:21 +0000)]
Sanitised some dodgy homedir finding code, but it still might not make
sense.

18 years agoGet rid of some trivial warnings; unused variables, ambiguous if-else,
Joel Reicher [Fri, 14 Apr 2006 07:54:26 +0000 (07:54 +0000)]
Get rid of some trivial warnings; unused variables, ambiguous if-else,
missing headers.

18 years agoMake print_aka() and print_usr() static. They're not used outside ali.c.
Joel Reicher [Thu, 13 Apr 2006 14:24:41 +0000 (14:24 +0000)]
Make print_aka() and print_usr() static. They're not used outside ali.c.

18 years agoCreated app_msgarg() (append message arg) and a simple resizable array
Joel Reicher [Tue, 11 Apr 2006 14:09:11 +0000 (14:09 +0000)]
Created app_msgarg() (append message arg) and a simple resizable array
struct to go with it that do almost exactly what the code they've replaced
was doing.
Replaced this (duplicated) code in many files with a call to app_msgarg().

18 years agoCompleting the .cvsignore list(s).
Joel Reicher [Tue, 11 Apr 2006 05:48:43 +0000 (05:48 +0000)]
Completing the .cvsignore list(s).