Removed the UCI code to read the signatur (= name) from ~/.signature.
[mmh] / uip / send.c
index eb140c9..2092c37 100644 (file)
@@ -105,9 +105,6 @@ main(int argc, char **argv)
        char *msgs[MAXARGS], *vec[MAXARGS];
        struct msgs *mp;
        struct stat st;
-#ifdef UCI
-       FILE *fp;
-#endif /* UCI */
 
 #ifdef LOCALE
        setlocale(LC_ALL, "");
@@ -263,21 +260,9 @@ main(int argc, char **argv)
        mp->msgflags |= SEQMOD;
        seq_save(mp);
 
-       if ((cp = getenv("SIGNATURE")) == NULL || *cp == 0)
+       if (!(cp = getenv("SIGNATURE")) || !*cp)
                if ((cp = context_find("signature")) && *cp)
                        m_putenv("SIGNATURE", cp);
-#ifdef UCI
-               else {
-                       snprintf(buf, sizeof(buf), "%s/.signature", mypath);
-                       if ((fp = fopen(buf, "r")) != NULL &&
-                                       fgets(buf, sizeof buf, fp) != NULL) {
-                                       fclose(fp);
-                                       if (cp = strchr(buf, '\n'))
-                                               *cp = 0;
-                                       m_putenv("SIGNATURE", buf);
-                       }
-               }
-#endif /* UCI */
 
        for (msgnum = 0; msgnum < msgp; msgnum++)
                if (stat(msgs[msgnum], &st) == NOTOK)