+Sun Sep 12 15:50:34 1999 Doug Morris <doug@mhost.com>
+
+ * updated Makefile.in so it recognized COMPLETION-TCSH and
+ COMPLETION-ZSH (only used in make nmhdist).
+
+ * added prototype for ruserpas to <h/prototypes.h>. Fixes
+ warnings in mhparse.c and mhbuildsbr.c.
+
+ * added include checks for <time.h> and <sys/time.h> to
+ prevent warnings in fmt_compile.c, fmt_scan.c, lock_file.c,
+ sendsbr.c, mhbuildsbr.c, mhcachesbr.c, picksbr.c, and post.c.
+
+ * added include for <zotnet/mts/mts.h> to ali.c, scan.c, ap.c,
+ rcvdist.c, rcvstore.c, rcvtty.c, and spost.c to remove
+ warnings about implicit definition of mts_init().
+
+ * added <grps.h> to slocal.c to prevent warnings about
+ function initgroups.
+
+ * added <h/signals.h> to prevent warning about missing SIGNAL
+ function.
+
+ * added function prototypes to smtp.c, whatnowproc.c,
+ mhbuildsbr.c, mhparse.c, mshcmds.c, show.c, whatnow.c, mhl.c
+ to fix warnings.
+
+ * explicitly declared mbx_style in mshcmds.c and lused in
+ fmtdump.c as type static int instead of just static to
+ prevent warnings.
+
+ * various code cleanups to prevent ambiguous statements
+ (brackets for if/thens and parens for complicated if
+ statements).
+
+
Sun Sep 12 09:19:27 1999 Doug Morris <doug@mhost.com>
* commented out _cleanup() in mf.c because it's the only
- location in all of the source code where it exists.
+ location in all of the source code where it exists.
* Added check for <db1/ndbm.h> which is the new location where
- linux systems appear to be stuffing this header file.
+ linux systems appear to be stuffing this header file.
Thu Sep 9 23:15:49 1999 Doug Morris <doug@mhost.com>
* fixed varous mkstmep bugs introduced in 1.0.1 by me. Whups!
* added mh_profile SEGV patch from Richard Cohen
- <richard@jubjub.demon.co.uk> that prevents crashing when
+ <richard@jubjub.demon.co.uk> that prevents crashing when
+ mh_profile doesn't end in a newline. A similar patch was
+ previously sent in by Andrew Bettison <andrewb@zip.com.au>.
- mh_profile doesn't end in a newline.
* fixed bug in associated with MAILGROUP #define (group "mail"
- is not universal) -- hard to believe, but true.
+ is not universal) -- hard to believe, but true.
Tue Sep 7 16:47:03 1999 Dan Harkless <dan-nmh@dilvish.speed.net>
# all files in this directory included in the distribution
DIST = README INSTALL MACHINES COPYRIGHT VERSION DIFFERENCES FAQ \
- TODO ZSH.COMPLETION MAIL.FILTERING ChangeLog install-sh \
- mkinstalldirs Makefile.in aclocal.m4 acconfig.h config.h.in \
- configure.in configure stamp-h.in
+ TODO COMPLETION-ZSH COMPLETION-TCSH MAIL.FILTERING \
+ ChangeLog install-sh mkinstalldirs Makefile.in aclocal.m4 \
+ acconfig.h config.h.in configure.in configure stamp-h.in
# subdirectories in distribution
SUBDIRS = h config sbr zotnet mts uip etc man
char *r1bindex(char *, int);
void readconfig (struct node **, FILE *, char *, int);
int refile (char **, char *);
+int ruserpass(char *, char **, char **);
int remdir (char *);
int seq_addmsg (struct msgs *, char *, int, int, int);
int seq_addsel (struct msgs *, char *, int, int);
strncpy (buffer, hp->h_name, sizeof(buffer));
return buffer;
}
- if (hosts.h_name || init_hs ())
+ if (hosts.h_name || init_hs ()) {
for (h = hosts.h_next; h; h = h->h_next)
- if (!strcasecmp (h->h_name, q))
+ if (!strcasecmp (h->h_name, q)) {
return h->h_name;
- else
+ } else {
for (r = h->h_aliases; *r; r++)
if (!strcasecmp (*r, q))
return h->h_name;
+ }
+ }
strncpy (buffer, site, sizeof(buffer));
return buffer;
#include "smtp.h"
#include <zotnet/mts/mts.h>
#include <signal.h>
+#include <h/signals.h>
#ifdef MPOP
#include <errno.h>
#endif
+
+
/*
* This module implements an interface to SendMail very similar
* to the MMDF mm_(3) routines. The sm_() routines herein talk
char **smail_copyip (char **, char **, int);
#endif
+/* from zotnet/mts/client.c */
+int client (char *, char *, char *, int, char *, int);
int
sm_init (char *client, char *server, int watch, int verbose,
if (sm_rfp != NULL && sm_wfp != NULL)
goto send_options;
- if (client == NULL || *client == '\0')
- if (clientname)
+ if (client == NULL || *client == '\0') {
+ if (clientname) {
client = clientname;
- else
+ } else {
client = LocalName(); /* no clientname -> LocalName */
+ }
+ }
#ifdef ZMAILER
if (client == NULL || *client == '\0')
#include <h/fmt_scan.h>
#include <h/fmt_compile.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef TM_IN_SYS_TIME
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
/*
* hash table for deciding if a component is "interesting"
*/
#include <zotnet/tws/tws.h>
#include <h/fmt_compile.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef TM_IN_SYS_TIME
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#define NFMTS MAXARGS
extern char *formataddr (); /* hook for custom address formatting */
#include <h/mh.h>
#include <h/signals.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef TM_IN_SYS_TIME
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#ifdef HAVE_ERRNO_H
# include <errno.h>
#endif
*cp++ = j = *(iob->_ptr + c);
c = _filbuf(iob);
#endif
- if (c == EOF || (j == '\0' || j == '\n') && c != ' ' && c != '\t') {
+ if (c == EOF ||
+ ((j == '\0' || j == '\n') && c != ' ' && c != '\t')) {
if (c != EOF) {
#ifdef LINUX_STDIO
--iob->_IO_read_ptr;
#include <h/mh.h>
#include <h/addrsbr.h>
#include <h/aliasbr.h>
+#include <zotnet/mts/mts.h>
/*
* maximum number of names
#include <h/mh.h>
#include <h/addrsbr.h>
#include <h/fmt_scan.h>
+#include <zotnet/mts/mts.h>
#define NADDRS 100
/* for assignlabel */
static struct format *lvec[128];
-static lused = 0;
+static int lused = 0;
/*
* static prototypes
#include <h/mime.h>
#include <h/mhparse.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef TM_IN_SYS_TIME
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#include <h/mhparse.h>
#include <h/mhcachesbr.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef TM_IN_SYS_TIME
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#include <h/mh.h>
+/* prototype from mhlsbr.c */
+int mhl (int, char **);
+
int
main (int argc, char **argv)
static void copy_message (int, FILE *);
static void copy_digest (int, FILE *);
+/* from mhlsbr.c */
+int mhlsbr (int, char **, FILE *(*)());
void
forkcmd (char **args, char *pgm)
{ NULL, 0 }
};
-static mbx_style = MMDF_FORMAT;
+static int mbx_style = MMDF_FORMAT;
void
packcmd (char **args)
#include <zotnet/tws/tws.h>
#include <h/picksbr.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef TM_IN_SYS_TIME
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
static struct swit parswit[] = {
#define PRAND 0
{ "and", 0 },
#include <setjmp.h>
#include <signal.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef TM_IN_SYS_TIME
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#ifdef MMDFMTS
# include <mts/mmdf/util.h>
# include <mts/mmdf/mmdf.h>
#include <h/fmt_scan.h>
#include <h/rcvmail.h>
#include <zotnet/tws/tws.h>
+#include <zotnet/mts/mts.h>
static struct swit switches[] = {
#define FORMSW 0
#include <h/signals.h>
#include <errno.h>
#include <signal.h>
+#include <zotnet/mts/mts.h>
static struct swit switches[] = {
#define CRETSW 0
#include <h/rcvmail.h>
#include <h/scansbr.h>
#include <zotnet/tws/tws.h>
+#include <zotnet/mts/mts.h>
#include <signal.h>
#include <fcntl.h>
#include <h/fmt_scan.h>
#include <h/scansbr.h>
#include <zotnet/tws/tws.h>
+#include <zotnet/mts/mts.h>
#include <errno.h>
/*
#include <fcntl.h>
#include <h/mime.h>
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef TM_IN_SYS_TIME
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
int debugsw = 0; /* global */
int forwsw = 1;
int inplace = 1;
*/
static int is_nontext(char *);
+/* prototype from mhlsbr.c */
+int mhl (int, char **);
+
#define SHOW 0
#define NEXT 1
#define PREV 2
#include <signal.h>
#include <sys/ioctl.h>
#include <fcntl.h>
+#include <grp.h>
#ifdef HAVE_DB1_NDBM_H
#include <db1/ndbm.h>
#include <h/aliasbr.h>
#include <h/dropsbr.h>
#include <zotnet/tws/tws.h>
+#include <zotnet/mts/mts.h>
#define uptolow(c) ((isalpha(c) && isupper (c)) ? tolower (c) : c)
#include <h/mh.h>
+/* from whatnowsbr.c */
+int WhatNow (int, char **);
+
int
main (int argc, char **argv)
* it will call this routine directly without exec'ing it.
*/
+/* from whatnowsbr.c */
+int WhatNow (int, char **);
+
+
int
what_now (char *ed, int nedit, int use, char *file, char *altmsg, int dist,
struct msgs *mp, char *text, int inplace, char *cwd)