]> diplodocus.org Git - nmh/log
nmh
8 years agotest-mhfixmsg: pwd(1)'s `-P' needed to avoid failure with symlinks.
Ralph Corderoy [Mon, 27 Nov 2017 15:20:44 +0000 (15:20 +0000)]
test-mhfixmsg: pwd(1)'s `-P' needed to avoid failure with symlinks.

Steven Winikoff reported to nmh-workers that one of this file's tests
failed in 1.7.  It attempts to manipulate the output of mhpath(1)
assuming it starts with the result of `pwd', but symlinks in the latter
may cause this to fail.  Use POSIX's `-P' option to ensure no symlinks,
as done in some other tests.

8 years agoUse ISO-2022-KR instead of EBCDIC-US in test-charset, because
David Levine [Sun, 26 Nov 2017 22:27:48 +0000 (17:27 -0500)]
Use ISO-2022-KR instead of EBCDIC-US in test-charset, because
Robert Elz reported that it is installed on his NetBSD host.
Also, don't run that check without iconv.

8 years agoFix tests that assume the backup prefix is a comma.
Ralph Corderoy [Sun, 26 Nov 2017 12:09:22 +0000 (12:09 +0000)]
Fix tests that assume the backup prefix is a comma.

Steven Winikoff reported to nmh-workers that some tests failed in 1.7
configured with --with-hash-backup because they assume the backup prefix
is comma rather than hash.  Alter those tests to use `mhparam sbackup',
as other tests already do.  PATH is already set to use the mhparam being
tested.

test-mhfixmsg used find(1) to check for leftover files that globbed
`mhfix*' or `,mhfix*'.  Changed to just `*mhfix*' as I think any file
containing that would be unwanted, and it will also spot mhfixmsg
hard-coding the comma prefix.

8 years agoNEWS: Encourage nmh-announce subscription. Capitalise `Gmail'.
Ralph Corderoy [Fri, 17 Nov 2017 12:04:01 +0000 (12:04 +0000)]
NEWS: Encourage nmh-announce subscription.  Capitalise `Gmail'.

Cherry-picked to 1.7-RC3-6-g3d2c68e3.

8 years agomhshow/test-charset: Protect question mark from shell globbing.
Ralph Corderoy [Sat, 25 Nov 2017 15:42:09 +0000 (15:42 +0000)]
mhshow/test-charset: Protect question mark from shell globbing.

8 years agoReworked parameter value tests to reflect Ralph's (re-?) discovery
David Levine [Fri, 24 Nov 2017 23:41:23 +0000 (18:41 -0500)]
Reworked parameter value tests to reflect Ralph's (re-?) discovery
that GNU iconv elides the ? from charset names.  nmh uses it as a
replacement character when decoding fails.

8 years agoMakefile.am: Remove `-I./sbr' from sbr_libmh_a_CPPFLAGS.
Ralph Corderoy [Thu, 23 Nov 2017 23:11:58 +0000 (23:11 +0000)]
Makefile.am: Remove `-I./sbr' from sbr_libmh_a_CPPFLAGS.

Doesn't seem to be useful.  Present since the switch to automake, so
possibly a leftover from experimentation.

8 years agofmttest.c: Clear output buffer after each write.
Ralph Corderoy [Wed, 22 Nov 2017 15:12:11 +0000 (15:12 +0000)]
fmttest.c: Clear output buffer after each write.

Otherwise each write outputs the whole buffer again, including what's
already appeared.  Instead of the three lines 1, 2, 3, one sees 1, 1, 2,
1, 2, 3.

8 years agoRewrite cpnumber() to fix `%2(msg)' with 123 overflowing to `?23'.
Ralph Corderoy [Wed, 22 Nov 2017 13:44:01 +0000 (13:44 +0000)]
Rewrite cpnumber() to fix `%2(msg)' with 123 overflowing to `?23'.

Reported in 1.7 by Ken on nmh-workers yesterday.
`It seems this was introduced in commit 92128dacf'.
We now use the C library to format the number, and then manipulate the
result.  A temporary charstring_t is no longer used.
Also adds left justification using negative width.

8 years agoNormalize some #include paths.
Ken Hornstein [Mon, 20 Nov 2017 00:08:48 +0000 (19:08 -0500)]
Normalize some #include paths.

Include the subdirectory so these files will compile from an object build.

8 years agoMove etc/rmmproc.messageid to fix its install permissions.
David Levine [Sat, 18 Nov 2017 15:35:19 +0000 (10:35 -0500)]
Move etc/rmmproc.messageid to fix its install permissions.

And removed duplicate docs/contrib/replaliases to fix its install permissions.

8 years agofmt_new.c: Move interface to own file.
Ralph Corderoy [Thu, 16 Nov 2017 00:14:35 +0000 (00:14 +0000)]
fmt_new.c: Move interface to own file.

8 years agofmt_addr.c: Move interface to own file.
Ralph Corderoy [Thu, 16 Nov 2017 00:02:00 +0000 (00:02 +0000)]
fmt_addr.c: Move interface to own file.

8 years agodatetime.c: Make rrule_clock() static; no external callers.
Ralph Corderoy [Wed, 15 Nov 2017 23:52:08 +0000 (23:52 +0000)]
datetime.c: Make rrule_clock() static;  no external callers.

8 years agodatetime.c: Move interface to own file.
Ralph Corderoy [Wed, 15 Nov 2017 23:36:42 +0000 (23:36 +0000)]
datetime.c: Move interface to own file.

8 years agocrawl_folders.h: Base header on implementation.
Ralph Corderoy [Wed, 15 Nov 2017 23:29:04 +0000 (23:29 +0000)]
crawl_folders.h: Base header on implementation.

Normally done as part of extracting the new header file from a larger
one, but this file already existed so it had to be moved as one commit
and altered in the next, otherwise git would break its history.

8 years agocrawl_folders.h: Rename to be alongside implementation.
Ralph Corderoy [Wed, 15 Nov 2017 23:25:29 +0000 (23:25 +0000)]
crawl_folders.h: Rename to be alongside implementation.

8 years agooauth.c: Alter permissions from 0755 to 0644.
Ralph Corderoy [Wed, 15 Nov 2017 23:16:13 +0000 (23:16 +0000)]
oauth.c: Alter permissions from 0755 to 0644.

Possibly introduced by 380046d2.

8 years agoh/rcvmail.h: Delete. Contained just a couple of pointless macros.
Ralph Corderoy [Tue, 14 Nov 2017 23:56:16 +0000 (23:56 +0000)]
h/rcvmail.h: Delete.  Contained just a couple of pointless macros.

RCV_MOK was 0, RCV_MBX was 1.  They were used for exit(3) and done().
`exit(0)' is clearer than another layer of abstraction, and the commands
that used them didn't seem to document the exit statuses anyway.  The
included by other means, at least on one platform.

8 years agopopsbr.h: Base header on implementation.
Ralph Corderoy [Tue, 14 Nov 2017 23:41:18 +0000 (23:41 +0000)]
popsbr.h: Base header on implementation.

Normally done as part of extracting the new header file from a larger
one, but this file already existed so it had to be moved as one commit
and altered in the next, otherwise git would break its history.

8 years agopopsbr.h: Rename to be alongside implementation.
Ralph Corderoy [Tue, 14 Nov 2017 23:38:41 +0000 (23:38 +0000)]
popsbr.h: Rename to be alongside implementation.

8 years agopopsbr.h: Remove pop_fd() and pop_set() prototypes.
Ralph Corderoy [Mon, 13 Nov 2017 00:06:30 +0000 (00:06 +0000)]
popsbr.h: Remove pop_fd() and pop_set() prototypes.

Function definitions removed in 4ea2f92f.

8 years agopopsbr.c: Add `static' to function definitions to match prototypes.
Ralph Corderoy [Sun, 12 Nov 2017 23:58:29 +0000 (23:58 +0000)]
popsbr.c: Add `static' to function definitions to match prototypes.

parse_proxy(), command(), and multiline() all have prototypes claiming
they're static in popsbr.c, but their later definitions lack that
qualifier.

8 years agopicksbr.h: Rename to be alongside implementation.
Ralph Corderoy [Sun, 12 Nov 2017 18:50:32 +0000 (18:50 +0000)]
picksbr.h: Rename to be alongside implementation.

8 years agodtime.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 18:40:21 +0000 (18:40 +0000)]
dtime.c: Move interface to own file.

8 years agoh/prototypes.h: Remove mhlsbr() prototype; no such function.
Ralph Corderoy [Sun, 12 Nov 2017 13:50:58 +0000 (13:50 +0000)]
h/prototypes.h: Remove mhlsbr() prototype; no such function.

Function deleted in c808c5d5.

8 years agowhatnowsbr.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 13:49:07 +0000 (13:49 +0000)]
whatnowsbr.c: Move interface to own file.

8 years agowhatnowproc.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 13:46:37 +0000 (13:46 +0000)]
whatnowproc.c: Move interface to own file.

8 years agosendsbr.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 13:44:34 +0000 (13:44 +0000)]
sendsbr.c: Move interface to own file.

8 years agodistsbr.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 13:42:01 +0000 (13:42 +0000)]
distsbr.c: Move interface to own file.

8 years agomhlsbr.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 13:38:49 +0000 (13:38 +0000)]
mhlsbr.c: Move interface to own file.

8 years agoannosbr.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 13:35:49 +0000 (13:35 +0000)]
annosbr.c: Move interface to own file.

8 years agoscansbr.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 13:24:05 +0000 (13:24 +0000)]
scansbr.c: Move interface to own file.

Merging in content of existing h/scansbr.h, though that only contained
one of the three prototypes.  The other two were in h/prototypes.h.

8 years agom_name.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 13:08:02 +0000 (13:08 +0000)]
m_name.c: Move interface to own file.

8 years agom_gmprot.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 13:02:28 +0000 (13:02 +0000)]
m_gmprot.c: Move interface to own file.

8 years agom_getfld.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 12:57:35 +0000 (12:57 +0000)]
m_getfld.c: Move interface to own file.

8 years agogetarguments.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 12:31:05 +0000 (12:31 +0000)]
getarguments.c: Move interface to own file.

8 years agoread_switch_multi*_readline.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:33:55 +0000 (00:33 +0000)]
read_switch_multi*_readline.c: Move interface to own file.

8 years agoread_switch_multiword.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:31:18 +0000 (00:31 +0000)]
read_switch_multiword.c: Move interface to own file.

8 years agoread_yes_or_no_if_tty.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:28:46 +0000 (00:28 +0000)]
read_yes_or_no_if_tty.c: Move interface to own file.

8 years agoread_switch.c: Move interface declaration to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:26:11 +0000 (00:26 +0000)]
read_switch.c: Move interface declaration to own file.

8 years agoconcat.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:23:44 +0000 (00:23 +0000)]
concat.c: Move interface to own file.

8 years agoseq_setunseen.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:20:19 +0000 (00:20 +0000)]
seq_setunseen.c: Move interface to own file.

8 years agoseq_setprev.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:18:03 +0000 (00:18 +0000)]
seq_setprev.c: Move interface to own file.

8 years agoseq_setcur.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:15:47 +0000 (00:15 +0000)]
seq_setcur.c: Move interface to own file.

8 years agoseq_save.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:13:35 +0000 (00:13 +0000)]
seq_save.c: Move interface to own file.

8 years agoseq_read.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:10:48 +0000 (00:10 +0000)]
seq_read.c: Move interface to own file.

8 years agoshowfile.c: Move interface to own file.
Ralph Corderoy [Sun, 12 Nov 2017 00:05:54 +0000 (00:05 +0000)]
showfile.c: Move interface to own file.

8 years agosmatch.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 23:59:22 +0000 (23:59 +0000)]
smatch.c: Move interface to own file.

8 years agogetpass.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 23:53:00 +0000 (23:53 +0000)]
getpass.c: Move interface to own file.

8 years agor1bindex.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 23:47:07 +0000 (23:47 +0000)]
r1bindex.c: Move interface to own file.

8 years agorefile.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 23:44:44 +0000 (23:44 +0000)]
refile.c: Move interface to own file.

8 years agoruserpass.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 23:42:31 +0000 (23:42 +0000)]
ruserpass.c: Move interface to own file.

8 years agoremdir.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 23:39:01 +0000 (23:39 +0000)]
remdir.c: Move interface to own file.

8 years agosnprintb.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 23:34:59 +0000 (23:34 +0000)]
snprintb.c: Move interface to own file.

8 years agostrindex.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 23:31:23 +0000 (23:31 +0000)]
strindex.c: Move interface to own file.

8 years agossequal.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 23:28:30 +0000 (23:28 +0000)]
ssequal.c: Move interface to own file.

8 years agocredentials.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:45:25 +0000 (17:45 +0000)]
credentials.c: Move interface to own file.

8 years agoencode_rfc2047.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:38:47 +0000 (17:38 +0000)]
encode_rfc2047.c: Move interface to own file.

8 years agofmt_rfc2047.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:33:36 +0000 (17:33 +0000)]
fmt_rfc2047.c: Move interface to own file.

8 years agoclient.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:30:37 +0000 (17:30 +0000)]
client.c: Move interface to own file.

8 years agoclosefds.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:28:18 +0000 (17:28 +0000)]
closefds.c: Move interface to own file.

8 years agocopyip.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:25:55 +0000 (17:25 +0000)]
copyip.c: Move interface to own file.

8 years agocpydata.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:23:45 +0000 (17:23 +0000)]
cpydata.c: Move interface to own file.

8 years agocpydgst.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:21:17 +0000 (17:21 +0000)]
cpydgst.c: Move interface to own file.

8 years agodiscard.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:19:06 +0000 (17:19 +0000)]
discard.c: Move interface to own file.

8 years agotrimcpy.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 17:15:05 +0000 (17:15 +0000)]
trimcpy.c: Move interface to own file.

8 years agouprf.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 16:22:30 +0000 (16:22 +0000)]
uprf.c: Move interface to own file.

8 years agovfgets.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 16:18:15 +0000 (16:18 +0000)]
vfgets.c: Move interface to own file.

8 years agocheck_charset.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 16:16:14 +0000 (16:16 +0000)]
check_charset.c: Move interface to own file.

8 years agogetcpy.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 16:12:02 +0000 (16:12 +0000)]
getcpy.c: Move interface to own file.

8 years agom_draft.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:49:08 +0000 (14:49 +0000)]
m_draft.c: Move interface to own file.

8 years agom_convert.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:46:28 +0000 (14:46 +0000)]
m_convert.c: Move interface to own file.

8 years agom_backup.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:43:38 +0000 (14:43 +0000)]
m_backup.c: Move interface to own file.

8 years agom_atoi.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:40:50 +0000 (14:40 +0000)]
m_atoi.c: Move interface to own file.

8 years agogetfolder.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:35:55 +0000 (14:35 +0000)]
getfolder.c: Move interface to own file.

8 years agogeteditor.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:30:21 +0000 (14:30 +0000)]
geteditor.c: Move interface to own file.

8 years agoescape_addresses.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:28:05 +0000 (14:28 +0000)]
escape_addresses.c: Move interface to own file.

8 years agoext_hook.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:25:37 +0000 (14:25 +0000)]
ext_hook.c: Move interface to own file.

8 years agofdcompare.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:22:24 +0000 (14:22 +0000)]
fdcompare.c: Move interface to own file.

8 years agofolder_read.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 14:20:01 +0000 (14:20 +0000)]
folder_read.c: Move interface to own file.

8 years agofolder_realloc.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 13:42:45 +0000 (13:42 +0000)]
folder_realloc.c: Move interface to own file.

8 years agofolder_pack.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 00:18:51 +0000 (00:18 +0000)]
folder_pack.c: Move interface to own file.

8 years agofolder_free.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 00:15:30 +0000 (00:15 +0000)]
folder_free.c: Move interface to own file.

8 years agofolder_delmsgs.c: Move interface to own file.
Ralph Corderoy [Sat, 11 Nov 2017 00:05:31 +0000 (00:05 +0000)]
folder_delmsgs.c: Move interface to own file.

8 years agofolder_addmsg.c: Move interface to own file.
Ralph Corderoy [Fri, 10 Nov 2017 23:36:23 +0000 (23:36 +0000)]
folder_addmsg.c: Move interface to own file.

8 years agocontext_foil.c: Move interface to own file.
Ralph Corderoy [Fri, 10 Nov 2017 23:13:42 +0000 (23:13 +0000)]
context_foil.c: Move interface to own file.

8 years agocontext_save.c: Move interface to own file.
Ralph Corderoy [Fri, 10 Nov 2017 23:05:42 +0000 (23:05 +0000)]
context_save.c: Move interface to own file.

8 years agocontext_replace.c: Move interface to own file.
Ralph Corderoy [Fri, 10 Nov 2017 22:58:11 +0000 (22:58 +0000)]
context_replace.c: Move interface to own file.

8 years agocontext_read.c: Move interface to own file.
Ralph Corderoy [Fri, 10 Nov 2017 22:50:36 +0000 (22:50 +0000)]
context_read.c: Move interface to own file.

8 years agocontext_del.c: Move interface to own file.
Ralph Corderoy [Fri, 10 Nov 2017 18:06:35 +0000 (18:06 +0000)]
context_del.c: Move interface to own file.

8 years agocontext_find.c: Move interface to own file.
Ralph Corderoy [Fri, 10 Nov 2017 18:01:08 +0000 (18:01 +0000)]
context_find.c: Move interface to own file.

8 years agoreadconfig.c: Move interface to own file.
Ralph Corderoy [Tue, 7 Nov 2017 00:28:47 +0000 (00:28 +0000)]
readconfig.c: Move interface to own file.

8 years agobrkstring.c: Move interface to own file.
Ralph Corderoy [Tue, 7 Nov 2017 00:17:50 +0000 (00:17 +0000)]
brkstring.c: Move interface to own file.

8 years agoatooi.c: Move interface to own file.
Ralph Corderoy [Tue, 7 Nov 2017 00:10:06 +0000 (00:10 +0000)]
atooi.c: Move interface to own file.

8 years agoambigsw.c: Move interface to own file.
Ralph Corderoy [Mon, 6 Nov 2017 23:59:41 +0000 (23:59 +0000)]
ambigsw.c: Move interface to own file.

8 years agovector.c: Move interface to own file.
Ralph Corderoy [Sun, 5 Nov 2017 13:10:17 +0000 (13:10 +0000)]
vector.c: Move interface to own file.

Don't #include it in all its users yet as it's too tangled with mh.h's
other content, so just #include it in mh.h instead.

8 years agopidstatus.c: Move interface to own file.
Ralph Corderoy [Fri, 3 Nov 2017 00:28:26 +0000 (00:28 +0000)]
pidstatus.c: Move interface to own file.

8 years agopush.c: Move interface to own file.
Ralph Corderoy [Fri, 3 Nov 2017 00:14:20 +0000 (00:14 +0000)]
push.c: Move interface to own file.

8 years agopath.c: Move interface to own file.
Ralph Corderoy [Fri, 3 Nov 2017 00:07:21 +0000 (00:07 +0000)]
path.c: Move interface to own file.