]> diplodocus.org Git - nmh/log
nmh
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.

8 years agoprint_version.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 23:28:08 +0000 (23:28 +0000)]
print_version.c: Move interface to own file.

8 years agoprint_sw.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 23:16:21 +0000 (23:16 +0000)]
print_sw.c: Move interface to own file.

8 years agoprint_help.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 23:08:38 +0000 (23:08 +0000)]
print_help.c: Move interface to own file.

8 years agoseq_nameok.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 22:56:32 +0000 (22:56 +0000)]
seq_nameok.c: Move interface to own file.

8 years agoseq_list.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 22:47:58 +0000 (22:47 +0000)]
seq_list.c: Move interface to own file.

8 years agoseq_bits.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 22:37:16 +0000 (22:37 +0000)]
seq_bits.c: Move interface to own file.

8 years agoseq_getnum.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 21:50:33 +0000 (21:50 +0000)]
seq_getnum.c: Move interface to own file.

8 years agoseq_del.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 21:40:11 +0000 (21:40 +0000)]
seq_del.c: Move interface to own file.

8 years agoseq_print.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 18:19:59 +0000 (18:19 +0000)]
seq_print.c: Move interface to own file.

8 years agoseq_add.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 18:09:43 +0000 (18:09 +0000)]
seq_add.c: Move interface to own file.

8 years agoarglist.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 17:59:04 +0000 (17:59 +0000)]
arglist.c: Move interface to own file.

8 years agoStrip directory from #include when it's not needed.
Ralph Corderoy [Thu, 2 Nov 2017 17:36:33 +0000 (17:36 +0000)]
Strip directory from #include when it's not needed.

8 years agoRemove symbols-wanted comments after #include.
Ralph Corderoy [Thu, 2 Nov 2017 14:09:26 +0000 (14:09 +0000)]
Remove symbols-wanted comments after #include.

They're unlikely to be up to date, and they are few.

8 years agoUse #include with `""' for including nmh's source.
Ralph Corderoy [Thu, 2 Nov 2017 13:57:23 +0000 (13:57 +0000)]
Use #include with `""' for including nmh's source.

Compilers vary on how they handle #includes with `""' and `<>', but
consistency on using `""' for nmh's files, and `<>' for the system's,
means it's easy to tell which is which at a glance.

8 years agoerror.c: Move interface to own file.
Ralph Corderoy [Thu, 2 Nov 2017 13:44:24 +0000 (13:44 +0000)]
error.c: Move interface to own file.

8 years agoSupport a -timeout switch.
Ken Hornstein [Thu, 9 Nov 2017 03:32:57 +0000 (22:32 -0500)]
Support a -timeout switch.

8 years agoUse va_copy() to get a copy of va_list, instead of using original.
Ken Hornstein [Sat, 4 Nov 2017 13:59:18 +0000 (09:59 -0400)]
Use va_copy() to get a copy of va_list, instead of using original.

netsec_vprintf() can call vsnprintf() twice if the outgoing buffer is
full (but it happens rarely in practice, given the way the current
code uses it).  But if this DOES happen, vsnprintf() will use the
same va_list argument twice, and the second time around either it will
grab a random bit of memory off of the stack OR it will segfault.
So we always use va_copy() to get our own copy of the passed-in va_list
and work on that.

8 years agoAdd support for batch mode.
Ken Hornstein [Sat, 4 Nov 2017 13:58:16 +0000 (09:58 -0400)]
Add support for batch mode.

Add a new switch, -batch, which will run a sequence of commands out
of a batch file.

8 years agoVarious IMAP protocol improvements
Ken Hornstein [Fri, 3 Nov 2017 18:58:06 +0000 (14:58 -0400)]
Various IMAP protocol improvements

Make the CAPABAILITY parser work correctly (and not include CAPABILITY
as a capability).

Support reading an untagged CAPABILITY response during an authentication
exchange.

Removing some debugging statements.

Make LITERAL+ and LITERAL- work correctly.

8 years agoMake APPEND work; still needs some changes, though.
Ken Hornstein [Fri, 3 Nov 2017 03:21:36 +0000 (23:21 -0400)]
Make APPEND work; still needs some changes, though.

8 years agoStart of making APPEND functional; not quite there yet.
Ken Hornstein [Thu, 2 Nov 2017 03:46:17 +0000 (23:46 -0400)]
Start of making APPEND functional; not quite there yet.

8 years agoSupport sending multiple commands at once.
Ken Hornstein [Wed, 1 Nov 2017 19:01:23 +0000 (15:01 -0400)]
Support sending multiple commands at once.

8 years agoReport on the TLS negotation time
Ken Hornstein [Wed, 1 Nov 2017 18:00:18 +0000 (14:00 -0400)]
Report on the TLS negotation time

8 years agoprototypes.h: Delete duplicate prototypes.
Ralph Corderoy [Thu, 2 Nov 2017 02:21:55 +0000 (02:21 +0000)]
prototypes.h: Delete duplicate prototypes.

Those that already appear in other header files.

8 years agoprototypes.h: Delete default_done() prototype.
Ralph Corderoy [Thu, 2 Nov 2017 02:20:12 +0000 (02:20 +0000)]
prototypes.h: Delete default_done() prototype.

Function doesn't exist;  removed in 38615191.

8 years agoforwsbr.c: Move interface declaration to own forwsbr.h.
Ralph Corderoy [Thu, 2 Nov 2017 01:58:09 +0000 (01:58 +0000)]
forwsbr.c: Move interface declaration to own forwsbr.h.

8 years agomd5.c, md5.h: Reformat and delete needless portability.
Ralph Corderoy [Thu, 2 Nov 2017 01:46:26 +0000 (01:46 +0000)]
md5.c, md5.h: Reformat and delete needless portability.

The algorithm is not going to change, bugs are unlikely to appear in the
upstream RSA version, so reformat the source to be more readable, and
delete portability code now we have function prototypes with parameters,
void pointer, etc.

8 years agoSplit function definition prototypes so identifier starts a line.
Ralph Corderoy [Thu, 2 Nov 2017 01:21:56 +0000 (01:21 +0000)]
Split function definition prototypes so identifier starts a line.

Nearly all were already split like this.  The consistency helps ad hoc
scripting.

8 years agoDon't have `static' of a function definition on its own line.
Ralph Corderoy [Thu, 2 Nov 2017 01:12:17 +0000 (01:12 +0000)]
Don't have `static' of a function definition on its own line.

Join it to the next line that species the return type.

8 years agoMove the opening brace of a C function to its own line.
Ralph Corderoy [Thu, 2 Nov 2017 01:09:32 +0000 (01:09 +0000)]
Move the opening brace of a C function to its own line.

If the brace doesn't start a line of its own then vi(1)'s
function-related commands don't spot the function.

8 years agorepl.c: Add `static' to function definitions to match declarations.
Ralph Corderoy [Thu, 2 Nov 2017 00:50:51 +0000 (00:50 +0000)]
repl.c: Add `static' to function definitions to match declarations.

8 years agorepl.c, replsbr.c: Move shared data into header file.
Ralph Corderoy [Thu, 2 Nov 2017 00:34:18 +0000 (00:34 +0000)]
repl.c, replsbr.c: Move shared data into header file.

repl.c declared global variables, and replsbr.c had extern statements
that hopefully matched them.  But they're really inputs into replsbr.c's
code, so move the declarations into a new header file that both then
include, and define them in replsbr.c.

8 years agouip: Replace some ints that are only ever 0 or 1 with bool.
Ralph Corderoy [Wed, 1 Nov 2017 17:21:23 +0000 (17:21 +0000)]
uip: Replace some ints that are only ever 0 or 1 with bool.

Knowing the domain of the variable is Boolean aids comprehension of the
variable's name and purpose.

8 years agosend.c, whatnowsbr.c: Delete option variables set but never read.
Ralph Corderoy [Wed, 1 Nov 2017 11:39:37 +0000 (11:39 +0000)]
send.c, whatnowsbr.c: Delete option variables set but never read.

Some options are passed on without the code parsing the options having
to act upon their value.  These don't need to store the option's Boolean
value in a local variable that's never read.

8 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/nmh
Ken Hornstein [Wed, 1 Nov 2017 00:48:40 +0000 (20:48 -0400)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/nmh

8 years agoClean up things a bit
Ken Hornstein [Wed, 1 Nov 2017 00:48:31 +0000 (20:48 -0400)]
Clean up things a bit

8 years agouip: Replace some ints that are only ever 0 or 1 with bool.
Ralph Corderoy [Wed, 1 Nov 2017 00:09:32 +0000 (00:09 +0000)]
uip: Replace some ints that are only ever 0 or 1 with bool.

Knowing the domain of the variable is Boolean aids comprehension of the
variable's name and purpose.

8 years agomhbuild.c, mhbuildsbr.c: Replace three global ints with bools.
Ralph Corderoy [Tue, 31 Oct 2017 23:46:14 +0000 (23:46 +0000)]
mhbuild.c, mhbuildsbr.c: Replace three global ints with bools.

Knowing the domain of the variable is Boolean aids comprehension of the
variable's name and purpose.

8 years agoReplace some ints that are only ever 0 or 1 with bool.
Ralph Corderoy [Tue, 31 Oct 2017 23:33:34 +0000 (23:33 +0000)]
Replace some ints that are only ever 0 or 1 with bool.

Knowing the domain of the variable is Boolean aids comprehension of the
variable's name and purpose.

8 years agodtimep.l: Delete unused macros SKIPSP and SKIPTOSP.
Ralph Corderoy [Tue, 31 Oct 2017 21:37:24 +0000 (21:37 +0000)]
dtimep.l: Delete unused macros SKIPSP and SKIPTOSP.

Silences gcc's warnings.

8 years agoDisplay the command when reporting timing.
Ken Hornstein [Tue, 31 Oct 2017 18:44:04 +0000 (14:44 -0400)]
Display the command when reporting timing.

8 years agouip: Change global int userrs to bool.
Ralph Corderoy [Mon, 30 Oct 2017 23:32:58 +0000 (23:32 +0000)]
uip: Change global int userrs to bool.

8 years agouip: Replace some ints that are only ever 0 or 1 with bool.
Ralph Corderoy [Mon, 30 Oct 2017 23:29:32 +0000 (23:29 +0000)]
uip: Replace some ints that are only ever 0 or 1 with bool.

Knowing the domain of the variable is Boolean aids comprehension of the
variable's name and purpose.

8 years agosbr: Replace some ints that are only ever 0 or 1 with bool.
Ralph Corderoy [Mon, 30 Oct 2017 22:13:02 +0000 (22:13 +0000)]
sbr: Replace some ints that are only ever 0 or 1 with bool.

Knowing the domain of the variable is Boolean aids comprehension of the
variable's name and purpose.

8 years agomts/smtp/smtp.c: Replace int with bool.
Ralph Corderoy [Mon, 30 Oct 2017 22:11:15 +0000 (22:11 +0000)]
mts/smtp/smtp.c: Replace int with bool.

8 years agonmh_init(): Replace integer parameter with two bools.
Ralph Corderoy [Mon, 30 Oct 2017 20:58:46 +0000 (20:58 +0000)]
nmh_init(): Replace integer parameter with two bools.

Removes the 0, 1, or 2 passed by callers.  If the options get more
complex then an enum of possible actions might be a better fit.

8 years agoReplace adios(NULL, ...) with die(...).
Ralph Corderoy [Mon, 30 Oct 2017 20:29:29 +0000 (20:29 +0000)]
Replace adios(NULL, ...) with die(...).

It's the common case, and saves having to skip over the NULL when
reading, and avoids the risk of the format string being passed as the
first parameter by mistake.

8 years agoReplace printf(3) with fputs(3) where possible.
Ralph Corderoy [Mon, 30 Oct 2017 19:55:14 +0000 (19:55 +0000)]
Replace printf(3) with fputs(3) where possible.

The format string has no format specifiers, and doesn't end with `\n',
so fputs() to stdout is sufficient.

8 years agomhbuild.man: Avoid using format-free printf(3) in example.
Ralph Corderoy [Mon, 30 Oct 2017 19:52:11 +0000 (19:52 +0000)]
mhbuild.man: Avoid using format-free printf(3) in example.

It pops up in searches for printf()s that could be fputs(),
and as printf() it doesn't output the trailing `\n' to end the line.
Replace with puts().  Lowercase Kernighan's message, as he wrote it.