]> git.marmaro.de Git - mmh/commitdiff
Removed mts.conf; the maildelivery option went into slocal directly.
authormarkus schnalke <meillo@marmaro.de>
Sat, 4 Feb 2012 12:08:51 +0000 (13:08 +0100)
committermarkus schnalke <meillo@marmaro.de>
Sat, 4 Feb 2012 12:08:51 +0000 (13:08 +0100)
The MTS is a non-MUA part of MH, which is/gets removed in MMH.
Now, you cannot change the global maildelivery file without changing the
code. You stil can specify -maildelivery to slocal.
I've also remove support for the env vars MHMTSCONF and MHMTSUSERCONF,
which were added by Earl Hood in 2010. We might want to add support
for them again. I need to think about the future of slocal anyway.

30 files changed:
INSTALL
docs/README.manpages
etc/Makefile.in
h/mts.h
man/Makefile.in
man/ap.man8
man/conflict.man8
man/inc.man1
man/mh-tailor.man5
man/mts.conf.man5 [deleted file]
man/rcvdist.man1
man/rcvpack.man1
man/rcvtty.man1
man/slocal.man1
sbr/Makefile.in
sbr/m_getfld.c
sbr/mts.c
uip/Makefile.in
uip/ali.c
uip/ap.c
uip/conflict.c
uip/inc.c
uip/msgchk.c
uip/rcvdist.c
uip/rcvpack.c
uip/rcvstore.c
uip/rcvtty.c
uip/scan.c
uip/slocal.c
uip/spost.c

diff --git a/INSTALL b/INSTALL
index d4bd38fb764102e338de7afaa22920cfccb2d641..89c9ac83dab200d7304087153d5eacc3bc1f5308 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -53,19 +53,7 @@ need an ANSI C compiler such as gcc.
    existing file.  Watch for information messages while make is processing
    that directory to see if you need to merge changes.
 
-5) Edit the file `mts.conf' (installed in the mmh `etc' directory)
-   and make any necessary changes for the mail transport interface
-   you are using.
-
-   The default `mts.conf' file assumes you retrieve new mail from
-   a local (or NFS mounted) maildrop, and send outgoing mail by
-   injecting the message to a mail transfer agent (such as sendmail)
-   on the local machine.
-
-   Check the `mts.conf(5)' man page for a list of all the available
-   options for this file.
-
-6) Edit the file `mhn.defaults' (installed in the mmh `etc' directory).
+5) Edit the file `mhn.defaults' (installed in the mmh `etc' directory).
    This file contains the default profile entries for the mmh commands
    mhlist/mhstore/mhshow and is created by the script `mhn.defaults.sh'.
    This script will search a generic path (essentially your $PATH) for
@@ -141,7 +129,7 @@ Options for configure
      mmh's support binaries (spost, slocal, mhl, ...) are installed here.
 
 --sysconfdir=DIR     (DEFAULT is ${prefix}/etc)
-     mmh's config files (mts.conf, mhn.defaults, ...) are installed here.
+     mmh's config files (mhn.defaults, ...) are installed here.
 
 --mandir=DIR     (DEFAULT is ${prefix}/man)
      mmh's man pages are installed here.
index 90451b9da97f953c744a131c02ca2b2d6fd86898..5e1004b3c00a1681bef8896286c104da2d51bb45 100644 (file)
@@ -69,8 +69,8 @@ Source files
                .PP
 
        Of course, replace "components" with a unique identifier that
-       reflects the content being included, like "mts_conf" for
-       etc/mts.conf. Then, add two lines to the man.sed target in
+       reflects the content being included, like "mhl_reply" for
+       etc/mhl.reply. Then, add two lines to the man.sed target in
        Makefile.in like:
 
                echo '/%components%/r $(top_srcdir)/etc/components' >> $@
index 0c7736d646151179600dbdf37f4fb9d4573ca6cd..5de4e41ae65943fac1e855aa56c818fc6dd88848 100644 (file)
@@ -42,7 +42,7 @@ STATIC_FILES = components digestcomps distcomps forwcomps  \
                scan.timely scan.unseen
 
 # templates and scripts from which non-static files are generated
-GENERATED_FILE_SRCS = mhn.defaults.sh mhn.find.sh mts.conf.in sendfiles.in
+GENERATED_FILE_SRCS = mhn.defaults.sh mhn.find.sh sendfiles.in
 
 # scripts generated using above GENERATED_FILE_SRCs; don't add binaries
 # to this list, as they'll get installed with INSTALL_SCRIPT and won't
@@ -50,7 +50,7 @@ GENERATED_FILE_SRCS = mhn.defaults.sh mhn.find.sh mts.conf.in sendfiles.in
 GENERATED_BIN_FILES = sendfiles
 
 # non-scripts generated using above GENERATED_FILE_SRCs
-GENERATED_ETC_FILES = mhn.defaults mts.conf
+GENERATED_ETC_FILES = mhn.defaults
 
 # auxiliary files (included in distribution but not installed)
 AUX = Makefile.in
@@ -66,11 +66,6 @@ mhn.defaults: $(srcdir)/mhn.defaults.sh $(MHNSEARCHPROG)
        rm -f $@
        $(srcdir)/mhn.defaults.sh $(MHNSEARCHPATH) $(MHNSEARCHPROG) > $@
 
-mts.conf: $(srcdir)/mts.conf.in Makefile
-       rm -f $@
-       $(SED) -e 's,%mailspool%,$(mailspool),' \
-              -e 's,%etcdir%,$(etcdir),' < $(srcdir)/mts.conf.in > $@
-
 sendfiles: $(srcdir)/sendfiles.in Makefile
        rm -f $@
        $(SED) -e 's,%libdir%,$(libdir),' < $(srcdir)/sendfiles.in > $@
diff --git a/h/mts.h b/h/mts.h
index a0f83dc27e230976b12e3a34af512935f37dd028..2155e0555530ae0e6855e3a1a297f41cfb4b41e1 100644 (file)
--- a/h/mts.h
+++ b/h/mts.h
@@ -8,17 +8,5 @@
 char *LocalName(void);
 char *SystemName(void);
 
-
 char *getusername(void);
 char *getfullname(void);
-
-
-/*
-** Read mts.conf file
-*/
-void mts_init(char *);
-
-/*
-** Global MailDelivery File
-*/
-extern char *maildelivery;
index de3c254a1885df2e21c808ed7277376065a59db8..8998184a462169b228cd012e9ccf51390731e961 100644 (file)
@@ -55,7 +55,7 @@ MAN1SRC = ali. anno. burst. comp. dist. flist. flists. folder. folders.    \
        rcvstore. rcvtty. refile. repl. rmf. rmm. scan. send. sendfiles.    \
        show. slocal. sortm. whatnow.
 
-MAN5SRC = mh-alias. mh-format. mh-mail. mh-profile. mh-tailor. mts.conf.
+MAN5SRC = mh-alias. mh-format. mh-mail. mh-profile. mh-tailor.
 
 MAN7SRC = mmh-intro. mh-draft. mh-sequence. 
 
index 0a5ac5a8fb1ae8eb6a42a696a1fbbf6cd750f17c..af967dff864c2b35abd4b7fb52d22bfafd3a54a4 100644 (file)
@@ -83,7 +83,6 @@ the address.
 .nf
 .ta \w'%etcdir%/ExtraBigFileName  'u
 ^$HOME/.mmh/profile~^The user profile
-^%etcdir%/mts.conf~^nmh mts configuration file
 .fi
 
 .SH "PROFILE COMPONENTS"
index 4df70944ad541c750e835108f22010f5d5c57eab..dc05548f444779b75be1b6afaacabd3c4026e734 100644 (file)
@@ -62,7 +62,6 @@ or whenever system accounting takes place.
 .fc ^ ~
 .nf
 .ta \w'%etcdir%/ExtraBigFileName  'u
-^%etcdir%/mts.conf~^nmh mts configuration file
 ^/etc/passwd~^List of users
 ^/etc/group~^List of groups
 ^%bindir%/mhmail~^Program to send mail
index 1dc958909980c52e0f2d035654e4ba1ab2e94f95..40a04c5c8a169cf4f981fe4a549149629e367aa9 100644 (file)
@@ -163,7 +163,6 @@ in the background and going on to other things.
 .nf
 .ta \w'%etcdir%/ExtraBigFileName  'u
 ^$HOME/.mmh/profile~^The user profile
-^%etcdir%/mts.conf~^nmh mts configuration file
 ^%mailspool%/$USER~^Location of mail drop
 .fi
 
index e3a949a2454e837c63df9fd4ca6941d3cc25f848..60545daa30edce4af8a6695a0dcae65bed2e4638 100644 (file)
@@ -3,29 +3,13 @@
 .\"
 .TH MH-TAILOR %manext5% "%nmhdate%" MH.6.8 [%nmhversion%]
 .SH NAME
-mh-tailor, mts.conf \- mail transport customization for nmh message handler
-.SH SYNOPSIS
-.I %etcdir%/mts.conf
+mh\-tailor \- obsolete man page
 .SH DESCRIPTION
-The file
-.I %etcdir%/mts.conf
-defines run-time options for those
-.B nmh
-programs which interact (in some form) with the message transport system.
-At present, these (user) programs are:
-.BR ap ,
-.BR conflict ,
-.BR inc ,
-.BR msgchk ,
-.BR post ,
-.BR rcvdist ,
-and
-.BR rcvpack .
-.PP
-Each option should be given on a single line.  Blank lines and lines
-which begin with `#' are ignored.  The options available along with
-default values and a description of their meanings are listed below:
-.PP
+.B "This man page is in transition state.
+.B "It's original use is gone.
+.B "Eventually it will be removed.
+.B "Until then, it contains information that have no better place yet.
+.SS "Spost's handling of From: headers
 .B spost
 will send messages by forking a
 local copy of
@@ -37,16 +21,6 @@ uses it
 rather than constructing its own.  However, to discourage email forgery, the
 SMTP envelope \*(lqFrom:\*(rq and a \*(lqSender:\*(rq header are set to the user's real address.
 .RE
-.PP
-.BR maildelivery :
-%libdir%/maildelivery
-.RS 5
-The name of the system-wide default
-.I maildelivery
-file.
-See
-.BR slocal (1)
-for the details.
 .SS "File Locking"
 A few words on locking:
 .B nmh
@@ -88,19 +62,3 @@ Prior to installing
 .BR nmh ,
 you should see how locking is done at
 your site, and set the appropriate values.
-
-.SH FILES
-.fc ^ ~
-.nf
-.ta \w'%etcdir%/ExtraBigFileName  'u
-^%etcdir%/mts.conf~^nmh mts configuration file
-.fi
-
-.SH "PROFILE COMPONENTS"
-None
-
-.SH "SEE ALSO"
-mh\-mts(8), post(8)
-
-.SH DEFAULTS
-As listed above
diff --git a/man/mts.conf.man5 b/man/mts.conf.man5
deleted file mode 100644 (file)
index 9d534fd..0000000
+++ /dev/null
@@ -1 +0,0 @@
-.so man5/mh-tailor.5
index 3653f47240970414edf3344a0d10f9e173c28b37..21bc1dce4bf1da8e75fb717270cf1f2c1f8e81c9 100644 (file)
@@ -70,7 +70,6 @@ profile component.
 .ta \w'%etcdir%/ExtraBigFileName  'u
 ^%etcdir%/rcvdistcomps~^Default message skeleton
 ^or $HOME/.mmh/rcvdistcomps~^Rather than standard message skeleton
-^%etcdir%/mts.conf~^nmh mts configuration file
 ^$HOME/\&.maildelivery~^The file controlling local delivery
 ^%etcdir%/maildelivery~^Rather than the standard file
 .fi
index 8c9da9e9ca0d2c97728695d0c20963f1000c55d9..55305f2d48931121e259b552a2871f6b0911a2d7 100644 (file)
@@ -37,7 +37,6 @@ shell scripts.
 .fc ^ ~
 .nf
 .ta \w'%etcdir%/ExtraBigFileName  'u
-^%etcdir%/mts.conf~^nmh mts configuration file
 .fi
 
 .SH "SEE ALSO"
index f098b2186409c0694ae50d4cf339afce730ad4ed..3a141e3d835bb0909da51bdace1c46b5c29193b9 100644 (file)
@@ -103,7 +103,6 @@ instead.
 .fc ^ ~
 .nf
 .ta \w'%etcdir%/ExtraBigFileName  'u
-^%etcdir%/mts.conf~^nmh mts configuration file
 ^$HOME/\&.maildelivery~^The file controlling local delivery
 ^%etcdir%/maildelivery~^Rather than the standard file
 .fi
index bf6c210b3c6644662fb4064a159383cd1552c5fa..e2b6051e3aca29a4841a1afa5a0295ef94248425 100644 (file)
@@ -368,7 +368,6 @@ quicker delivery into your maildrop.
 .fc ^ ~
 .nf
 .ta \w'%etcdir%/ExtraBigFileName  'u
-^%etcdir%/mts.conf~^nmh mts configuration file
 ^$HOME/\&.maildelivery~^The file controlling local delivery
 ^%etcdir%/maildelivery~^Rather than the standard file
 ^%mailspool%/$USER~^The default maildrop
index 95ff94c0f64b1e87fbe64876d6b8d43c32585e46..d05672cd8fc51d3f88941a2d8678c0574e94b2de 100644 (file)
@@ -105,9 +105,6 @@ lint: sigmsg.h
 dtimep.c: dtimep.lex
        $(LEX) -n -t $(srcdir)/dtimep.lex > dtimep.c
 
-mts.o: mts.c
-       $(COMPILE2) $(srcdir)/mts.c
-
 pidstatus.o: sigmsg.h
 
 libmh.a: $(OBJS)
index a2dba260966f2e7f7c14a76be509b61d922739be..4dbd94fdc4368efd2369b3354db5d0bc26109544 100644 (file)
@@ -30,9 +30,6 @@
 ** the eom() macro returns FALSE saying we aren't at the end of the
 ** message.
 **
-** The next thing to do is to read the mts.conf file and initialize
-** delimiter[] and delimlen accordingly...
-**
 ** After mhl was made a built-in in msh, m_getfld() worked just fine
 ** (using m_unknown() at startup).  Until one day: a message which was
 ** the result of a bursting was shown. Then, since the burst boundaries
@@ -57,6 +54,9 @@
 ** the code gets executed is when inc (or msh) calls it, and both of these
 ** have already called mts_init().
 **
+** [ Note by meillo 2012-02:
+**   MMDF-style maildrops (4x ^A) and mts_init() were removed. ]
+**
 ** ------------------------
 ** (Written by Van Jacobson for the mh6 m_getfld, January, 1986):
 **
index 503ec3c15f131d22f2978e53c5855894c2894e64..6b8b3a2cd9fe85b2294bc8465a2b5e3b89fa32bf 100644 (file)
--- a/sbr/mts.c
+++ b/sbr/mts.c
 /*
 ** static prototypes
 */
-static char *tailor_value(unsigned char *);
 static void getuserinfo(void);
-static const char *get_mtsconf_pathname(void);
-static const char *get_mtsuserconf_pathname(void);
-static void mts_read_conf_file(FILE *fp);
-
-/*
-** nmh mail transport interface customization file
-*/
-static char *mtsconf = NMHETCDIR"/mts.conf";
-
 
 /* Cache the username and fullname of the user */
 static char username[BUFSIZ];
 static char fullname[BUFSIZ];
 
-/*
-** Global MailDelivery file
-*/
-char *maildelivery = NMHETCDIR"/maildelivery";
-
-/*
-** Customize the MTS settings for nmh by adjusting
-** the file mts.conf in the nmh etc directory.
-*/
-
-struct bind {
-       char *keyword;
-       char **value;
-};
-
-static struct bind binds[] = {
-       { "maildelivery", &maildelivery },
-       { NULL, NULL }
-};
-
-
-/*
-** Read the configuration file for the nmh interface
-** to the mail transport system (MTS).
-*/
-
-void
-mts_init(char *name)
-{
-       const char *cp;
-       FILE *fp;
-       static int inited = 0;
-
-       if (inited++ || (fp = fopen(get_mtsconf_pathname(), "r")) == NULL)
-               return;
-       mts_read_conf_file(fp);
-       fclose(fp);
-
-       cp = get_mtsuserconf_pathname();
-       if (cp != NULL &&
-               ((fp = fopen(get_mtsuserconf_pathname(), "r")) != NULL)) {
-               mts_read_conf_file(fp);
-               fclose(fp);
-       }
-}
-
-
-#define QUOTE  '\\'
-
-/*
-** Convert escaped values, malloc some new space,
-** and copy string to malloc'ed memory.
-*/
-
-static char *
-tailor_value(unsigned char *s)
-{
-       int i, r;
-       char *bp;
-       char buffer[BUFSIZ];
-       size_t len;
-
-       for (bp = buffer; *s; bp++, s++) {
-               if (*s != QUOTE) {
-                       *bp = *s;
-               } else {
-                       switch (*++s) {
-                       case 'b': *bp = '\b'; break;
-                       case 'f': *bp = '\f'; break;
-                       case 'n': *bp = '\n'; break;
-                       case 't': *bp = '\t'; break;
-
-                       case 0: s--;
-                       case QUOTE:
-                               *bp = QUOTE;
-                               break;
-
-                       default:
-                               if (!isdigit(*s)) {
-                                       *bp++ = QUOTE;
-                                       *bp = *s;
-                               }
-                               r = *s != '0' ? 10 : 8;
-                               for (i = 0; isdigit(*s); s++)
-                                       i = i * r + *s - '0';
-                               s--;
-                               *bp = toascii(i);
-                               break;
-                       }
-               }
-       }
-       *bp = 0;
-
-       len = strlen(buffer) + 1;
-       bp = mh_xmalloc(len);
-       memcpy(bp, buffer, len);
-
-       return bp;
-}
 
 /*
 ** Get the fully qualified name of the local host.
 */
-
 char *
 LocalName(void)
 {
@@ -158,8 +48,6 @@ LocalName(void)
        if (buffer[0])
                return buffer;
 
-       mts_init("mts");
-
        memset(buffer, 0, sizeof(buffer));
 #ifdef HAVE_UNAME
        /* first get our local name */
@@ -187,7 +75,6 @@ LocalName(void)
 ** This is only for UUCP mail.  It gets the hostname
 ** as part of the UUCP "domain".
 */
-
 char *
 SystemName(void)
 {
@@ -201,8 +88,6 @@ SystemName(void)
        if (buffer[0])
                return buffer;
 
-       mts_init("mts");
-
 #ifdef HAVE_UNAME
        uname(&name);
        strncpy(buffer, name.nodename, sizeof(buffer));
@@ -217,7 +102,6 @@ SystemName(void)
 /*
 ** Get the username of current user
 */
-
 char *
 getusername(void)
 {
@@ -232,7 +116,6 @@ getusername(void)
 ** Get full name of current user (typically from GECOS
 ** field of password file).
 */
-
 char *
 getfullname(void)
 {
@@ -314,50 +197,3 @@ getuserinfo(void)
 
        return;
 }
-
-static const char*
-get_mtsconf_pathname(void)
-{
-       const char *cp = getenv( "MHMTSCONF ");
-       if (cp != NULL && *cp != '\0') {
-               return cp;
-       }
-       return mtsconf;
-}
-
-static const char*
-get_mtsuserconf_pathname(void)
-{
-       const char *cp = getenv( "MHMTSUSERCONF" );
-       if (cp != NULL && *cp != '\0') {
-               return cp;
-       }
-       return NULL;
-}
-
-static void
-mts_read_conf_file(FILE *fp)
-{
-       unsigned char *bp;
-       char *cp, buffer[BUFSIZ];
-       struct bind *b;
-
-       while (fgets(buffer, sizeof(buffer), fp)) {
-               if (!(cp = strchr(buffer, '\n')))
-                       break;
-               *cp = 0;
-               if (*buffer == '#' || *buffer == '\0')
-                       continue;
-               if (!(bp = strchr(buffer, ':')))
-                       break;
-               *bp++ = 0;
-               while (isspace(*bp))
-                       *bp++ = 0;
-
-               for (b = binds; b->keyword; b++)
-                       if (strcmp(buffer, b->keyword)==0)
-                               break;
-               if (b->keyword && (cp = tailor_value(bp)))
-                       *b->value = cp;
-       }
-}
index 58a82af41d27845596fd071eccd603c454d317ec..4a02564b6bae0871fa0b77b37a2c71ced181bff8 100644 (file)
@@ -17,14 +17,13 @@ etcdir      = @sysconfdir@
 CC       = @CC@
 CFLAGS   = @CFLAGS@
 DEFS     = @DEFS@
+CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"'
 INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir) @CPPFLAGS@
 LDFLAGS  = @LDFLAGS@
 
 LIBS     = @LIBS@
-MTSLIB   =
-# ../mts/libmts.a
 NDBM_LIBS = @NDBM_LIBS@
-LOCALLIBS = ../config/version.o ../config/config.o $(MTSLIB) ../sbr/libmh.a
+LOCALLIBS = ../config/version.o ../config/config.o ../sbr/libmh.a
 LINKLIBS = $(LOCALLIBS) $(LIBS)
 
 LINT    = @LINT@
@@ -34,6 +33,7 @@ TERMLIB = @TERMLIB@
 LEXLIB  = @LEXLIB@
 
 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
+COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
 LINK    = $(CC) $(LDFLAGS) -o $@
 LN = ln
 
@@ -211,6 +211,9 @@ send: send.o sendsbr.o annosbr.o distsbr.o $(LOCALLIBS)
 show: show.o mhlsbr.o termsbr.o $(LOCALLIBS)
        $(LINK) show.o mhlsbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
 
+slocal.o: slocal.c
+       $(COMPILE2) $(srcdir)/slocal.c
+
 slocal: slocal.o aliasbr.o dropsbr.o $(LOCALLIBS)
        $(LINK) slocal.o aliasbr.o dropsbr.o $(NDBM_LIBS) $(LINKLIBS)
 
index 8907e69fcb1830692f0416fe512880a18a55f727..f1d74163df364db1d92001372ad524adb0f3cd9a 100644 (file)
--- a/uip/ali.c
+++ b/uip/ali.c
@@ -69,7 +69,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
index ad3c9987d206f7b83f48c8c159c52bc93eec1ef7..4f7f7603001af91c1745d045ca1e1d812a1d8ed2 100644 (file)
--- a/uip/ap.c
+++ b/uip/ap.c
@@ -68,7 +68,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
index 527dd11332a1d0f4b2f42fd425a23d6db1d3f87d..03de873a611872e15706142421b9e3d1153e6607 100644 (file)
@@ -74,7 +74,6 @@ main(int argc, char **argv)
        if (context_foil(NULL) == -1)
                done(1);
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 0);
        argp = arguments;
 
index f000d4767187fa655a7e15c03ee0778565a6fdd2..1f03e2b7b6f879c628a86c2859d7645bb2196e50 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -166,7 +166,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
index 5b75814c2b28a0799b5f8ca1ade8b51c9451a113..5e10ad33f826eb173d84614cfcb8253153666847 100644 (file)
@@ -69,7 +69,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        user = getusername();
 
        arguments = getarguments(invo_name, argc, argv, 1);
index 898073fa980eda87689d96113a187e27c73166ff..cff337db989440796641db201a6d09c95bd1a527 100644 (file)
@@ -54,7 +54,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
index 85de619db67ea68e743630227ea737377a4df0d2..f0f1bd18351c83a669877aeac7a1ece1f34d7f09 100644 (file)
@@ -36,7 +36,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
index ba3cfccd497fad9e3a336427591d156111811337..ebf3e14dac058facf863d232b364eb80c2abaca5 100644 (file)
@@ -68,7 +68,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
index a62d091fd77d52402f9a7ff152ffedcc88a3493b..1dc38c4eeaab3f2fbc5cb95c59b329455c2fcb63 100644 (file)
@@ -104,7 +104,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
index a11ca0da2521550dcc5336d256fc0bfc5f6cb82f..18de4c48e9ccdb078120064c32de8de7d32086c5 100644 (file)
@@ -63,7 +63,6 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
index 7546cdd953169507c74e8c75ad4aec7565e462f6..2573cbe054aaf7300b1cb28aa1f3e97601bbe964 100644 (file)
@@ -102,6 +102,11 @@ static struct swit switches[] = {
        { NULL, 0 }
 };
 
+
+/* global maildelivery file */
+char *maildelivery = NMHETCDIR"/maildelivery";
+
+
 static int globbed = 0;  /* have we built "vars" table yet? */
 static int parsed = 0;  /* have we built header field table yet   */
 static int utmped = 0;  /* have we scanned umtp(x) file yet */
@@ -220,7 +225,6 @@ main(int argc, char **argv)
        if (context_foil(NULL) == -1)
                done(1);
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 0);
        argp = arguments;
 
index e3cf211df24678c167ba4afd7341d4ee4ddeb7f8..5b51ad4ce76190d356bc4c06473bfa75dffd2332 100644 (file)
@@ -186,7 +186,6 @@ main(int argc, char **argv)
        if (context_foil(NULL) == -1)
                done(1);
 
-       mts_init(invo_name);
        arguments = getarguments(invo_name, argc, argv, 0);
        argp = arguments;