]> git.marmaro.de Git - mmh/blobdiff - sbr/mts.c
Fixed abort of e.g. comp when draft folder is empty.
[mmh] / sbr / mts.c
index 9638f5684716f37ac66ab18b4ecb6145efcc00e7..ced0cf73e4d4a4ade5d5838077fcfb1f735a6a69 100644 (file)
--- a/sbr/mts.c
+++ b/sbr/mts.c
@@ -31,26 +31,11 @@ static const char *get_mtsconf_pathname(void);
 static const char *get_mtsuserconf_pathname(void);
 static void mts_read_conf_file(FILE *fp);
 
-/*
-** *mmdfldir and *uucpldir are the maildrop directories.  If maildrops
-** are kept in the user's home directory, then these should be empty
-** strings.  In this case, the appropriate ...lfil array should contain
-** the name of the file in the user's home directory.  Usually, this is
-** something like ".mail".
-*/
-
 /*
 ** nmh mail transport interface customization file
 */
 static char *mtsconf = NMHETCDIR"/mts.conf";
 
-char *mmdfldir = MAILSPOOL;
-char *mmdflfil = "";
-char *uucpldir = "/usr/spool/mail";
-char *uucplfil = "";
-
-char *mmdlm1 = "\001\001\001\001\n";
-char *mmdlm2 = "\001\001\001\001\n";
 
 /* Cache the username and fullname of the user */
 static char username[BUFSIZ];
@@ -67,14 +52,6 @@ static char* masquerade = "";
 */
 char *maildelivery = NMHETCDIR"/maildelivery";
 
-
-/*
-** Aliasing Facility (doesn't belong here)
-*/
-int Everyone = NOTOK;
-static char *everyone = "-1";
-char *NoShell = "";
-
 /*
 ** Customize the MTS settings for nmh by adjusting
 ** the file mts.conf in the nmh etc directory.
@@ -86,16 +63,8 @@ struct bind {
 };
 
 static struct bind binds[] = {
-       { "mmdfldir", &mmdfldir },
-       { "mmdflfil", &mmdflfil },
-       { "uucpldir", &uucpldir },
-       { "uucplfil", &uucplfil },
-       { "mmdelim1", &mmdlm1 },
-       { "mmdelim2", &mmdlm2 },
        { "masquerade", &masquerade },
        { "maildelivery", &maildelivery },
-       { "everyone", &everyone },
-       { "noshell", &NoShell },
        { NULL, NULL }
 };
 
@@ -124,8 +93,6 @@ mts_init(char *name)
                fclose(fp);
        }
 
-       Everyone = atoi(everyone);
-
        if (strstr(masquerade, "draft_from") != NULL)
                draft_from_masquerading = TRUE;
 
@@ -463,7 +430,7 @@ mts_read_conf_file(FILE *fp)
                        *bp++ = 0;
 
                for (b = binds; b->keyword; b++)
-                       if (!strcmp(buffer, b->keyword))
+                       if (strcmp(buffer, b->keyword)==0)
                                break;
                if (b->keyword && (cp = tailor_value(bp)))
                        *b->value = cp;