X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsend.c;h=62bf60ae3fbd2cf6a90e1cffd73caec261310bc6;hb=2c3d90ed127ab47e695350367ca3c34d4324bcc4;hp=9d634ed1de100d5403e5848815300c8585e3b90f;hpb=edc8d4615f73003ef06c644373763c345f1872c6;p=mmh diff --git a/uip/send.c b/uip/send.c index 9d634ed..62bf60a 100644 --- a/uip/send.c +++ b/uip/send.c @@ -153,9 +153,6 @@ main (int argc, char **argv) struct stat st; char *attach = (char *)0; /* header field name for attachments */ int attachformat = 0; /* mhbuild format specifier for attachments */ -#ifdef UCI - FILE *fp; -#endif /* UCI */ #ifdef LOCALE setlocale(LC_ALL, ""); @@ -411,18 +408,6 @@ go_to_it: if ((cp = getenv ("SIGNATURE")) == NULL || *cp == 0) 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) @@ -441,6 +426,7 @@ go_to_it: && altmsg) { vec[vecp++] = "-dist"; distfile = getcpy (m_mktemp2 (altmsg, invo_name, NULL, NULL)); + unlink(distfile); if (link (altmsg, distfile) == NOTOK) { if (errno != EXDEV #ifdef EISREMOTE