]> git.marmaro.de Git - mmh/commitdiff
Moved the sendmail path config line from mts.conf to the MH profile
authormarkus schnalke <meillo@marmaro.de>
Tue, 4 Oct 2011 19:05:33 +0000 (21:05 +0200)
committermarkus schnalke <meillo@marmaro.de>
Tue, 4 Oct 2011 19:05:33 +0000 (21:05 +0200)
This another step in getting rid of the mts stuff.

config/Makefile.in
config/config.c
h/mh.h
h/mts.h
man/mh-profile.man
man/mh-tailor.man
sbr/mts.c
sbr/readconfig.c
uip/mhparam.c

index 23ded2a3b5784a67ec9634b30c4d8768d45c0bdf..79d54d5e733f78a410919af3b05bc8513e2b768b 100644 (file)
@@ -19,13 +19,15 @@ etcdir      = @sysconfdir@
 
 default_editor = @editorpath@
 default_pager  = @pagerpath@
+sendmailpath   = @sendmailpath@
 
 CC         = @CC@
 CFLAGS     = @CFLAGS@
 DEFS       = @DEFS@
 INCLUDES   = -I.. -I$(top_srcdir) @CPPFLAGS@
 CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' -DNMHLIBDIR='"$(libdir)"' \
-             -DDEFAULT_EDITOR='"$(default_editor)"' -DDEFAULT_PAGER='"$(default_pager)"'
+             -DDEFAULT_EDITOR='"$(default_editor)"' -DDEFAULT_PAGER='"$(default_pager)"' \
+             -DSENDMAILPATH='"$(sendmailpath)"'
 
 COMPILE  = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
index 060334006f30018695c42057067fab401727523d..9d961bdb59954c71eecabf51e13d8f8eea2f173e 100644 (file)
@@ -331,6 +331,12 @@ char *whatnowproc = nmhbindir (/whatnow);
 
 char *whomproc = nmhbindir (/whom);
 
+/* 
+ * This is the sendmail interface to use for sending mail.
+ */
+
+char *sendmail = SENDMAILPATH;
+
 /*
  * This is the editor invoked by the various message
  * composition programs.  It SHOULD be a full screen
diff --git a/h/mh.h b/h/mh.h
index abcf445168ac656d015548c624879a28370c8673..7442071f855f87ee18e590bf1b9f3decb892791f 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -341,6 +341,7 @@ extern char *replcomps;
 extern char *replgroupcomps;
 extern char *rmfproc;
 extern char *rmmproc;
+extern char *sendmail;
 extern char *sendproc;
 extern char *showmimeproc;
 extern char *showproc;
diff --git a/h/mts.h b/h/mts.h
index c760618459b8f03c6fc463aa6624caa25b39f90d..07fa8a28d4d3731e90bf40622b9a7c780cf64b3c 100644 (file)
--- a/h/mts.h
+++ b/h/mts.h
@@ -39,11 +39,6 @@ extern char *mmdlm2;
  */
 void mts_init (char *);
 
-/*
- * MTS specific variables
- */
-extern char *sendmail;
-
 /*
  * Global MailDelivery File
  */
index cd47524654601dd16c5c48f830fc8b35abaef0d2..46c8424f7117172c6f9d6ff126c4ba932cd5f984 100644 (file)
@@ -526,6 +526,14 @@ to delete a message from a folder.
 Currently not used.
 .RE
 .PP
+.BR sendmail :
+%sendmailpath%
+.RS 5
+The path name to the
+.B sendmail
+program.
+.RE
+.PP
 .BR sendproc :
 %bindir%/send
 .RS 5
index 7623a7ed0fb6b809274fe88c9381be76fe976573..4f2d755f73cad24c1e9ddcd026aa63e00e8871b1 100644 (file)
@@ -168,13 +168,6 @@ If set, then each user-id greater than \*(lqeveryone\*(rq that has a
 login shell equivalent to the given value (e.g., \*(lq/bin/csh\*(rq)
 indicates that mail for \*(lqeveryone\*(rq should not be sent to them.
 This is useful for handling admin, dummy, and guest logins.
-.SS "SendMail"
-.BR sendmail :
-%sendmailpath%
-.RS 5
-The pathname to the
-.B sendmail
-program.
 .SS "File Locking"
 A few words on locking:
 .B nmh
index 3588fecdcd7b902434761cfbd3f94495c9676492..6418ef5e988d1ebbd6c067f80b49b990d6edc7a6 100644 (file)
--- a/sbr/mts.c
+++ b/sbr/mts.c
@@ -66,11 +66,6 @@ static boolean  mmailid_masquerading = FALSE;
        boolean  username_extension_masquerading = FALSE;  /* " from addrsbr.c */
 static char*    masquerade = "";
 
-/*
- * MTS specific variables
- */
-char *sendmail = SENDMAILPATH;
-
 /*
  * Global MailDelivery file
  */
@@ -102,7 +97,6 @@ static struct bind binds[] = {
     { "mmdelim1", &mmdlm1 },
     { "mmdelim2", &mmdlm2 },
     { "masquerade", &masquerade },
-    { "sendmail", &sendmail },
     { "maildelivery", &maildelivery },
     { "everyone", &everyone },
     { "noshell", &NoShell },
index 2a6801920be7e3c736a428570577c266fbc21877..09cb44dedb86c12a7ebb4784fe5d90a97199ce41 100644 (file)
@@ -33,6 +33,7 @@ static struct procstr procs[] = {
     { "postproc",      &postproc },
     { "rmfproc",       &rmfproc },
     { "rmmproc",       &rmmproc },
+    { "sendmail",      &sendmail },
     { "sendproc",      &sendproc },
     { "showmimeproc",  &showmimeproc },
     { "showproc",      &showproc },
index 8384544da2500d2e548f5a975b2bec0e5094b146..0d5b32c85e83b057afb33b3f0d4e6ad425a1a32a 100644 (file)
@@ -58,6 +58,7 @@ static struct proc procs [] = {
      { "postproc",      &postproc },
      { "rmfproc",       &rmfproc },
      { "rmmproc",       &rmmproc },
+     { "sendmail",      &sendmail },
      { "sendproc",      &sendproc },
      { "showmimeproc",  &showmimeproc },
      { "showproc",      &showproc },