]> diplodocus.org Git - nmh/blobdiff - uip/post.c
Since our last caller of getlocaladdr() was removed, garbage-collect this
[nmh] / uip / post.c
index 69f5b82103f1a7109bacdb9793ca8f5ce767477b..cfec7b9611edac22fe48fc7301b2b932fd7b8854 100644 (file)
@@ -223,7 +223,6 @@ static char from[BUFSIZ];   /* my network address            */
 static char sender[BUFSIZ];    /* my Sender: header             */
 static char efrom[BUFSIZ];     /* my Envelope-From: header      */
 static char fullfrom[BUFSIZ];  /* full contents of From header  */
-static char signature[BUFSIZ]; /* my signature                  */
 static char *filter = NULL;    /* the filter for BCC'ing        */
 static char *subject = NULL;   /* the subject field for BCC'ing */
 static char *fccfold[FCCS];    /* foldernames for FCC'ing       */
@@ -496,17 +495,9 @@ main (int argc, char **argv)
                    continue;
 
                case CREDENTIALSSW: {
-                   /* post doesn't read the profile, so insert credentials
-                      entry the hard way. */
-                   struct node *np = (struct node *) mh_xmalloc (sizeof *np);
-
                    if (!(cp = *argp++) || *cp == '-')
                        adios (NULL, "missing argument to %s", argp[-2]);
-                   np->n_name = "credentials";
-                   np->n_field = cp;
-                   np->n_context = 0;
-                   np->n_next = m_defs;
-                   m_defs = np;
+                   add_profile_entry ("credentials", cp);
                    continue;
                }
 
@@ -938,9 +929,6 @@ putfmt (char *name, char *str, FILE *out)
 static void
 start_headers (void)
 {
-    char  *cp, sigbuf[BUFSIZ];
-    struct mailname *mp;
-
     time (&tclock);
 
     /*
@@ -951,21 +939,6 @@ start_headers (void)
     efrom[0] = '\0';
     sender[0] = '\0';
     fullfrom[0] = '\0';
-
-    if ((cp = getfullname ()) && *cp) {
-       strncpy (sigbuf, cp, sizeof(sigbuf));
-       snprintf (signature, sizeof(signature), "%s <%s>",
-               sigbuf, getlocaladdr());
-       if ((cp = getname (signature)) == NULL)
-           adios (NULL, "getname () failed -- you lose extraordinarily big");
-       if ((mp = getm (cp, NULL, 0, AD_HOST, NULL)) == NULL)
-           adios (NULL, "bad signature '%s'", sigbuf);
-       mnfree (mp);
-       while (getname (""))
-           continue;
-    } else {
-       strncpy (signature, getlocaladdr(), sizeof(signature));
-    }
 }