]> code.citadel.org Git - citadel.git/blobdiff - citadel/netmailer.c
* IMAP date strings. More stupidity.
[citadel.git] / citadel / netmailer.c
index 7de5c419f68b4bd57fb2d29055b7eca7481c8621..b0a28e200ffdcfa540e71897c882d3ec333a3cc6 100644 (file)
@@ -1,9 +1,7 @@
 /*
- * netmailer for Citadel/UX
- * see copyright.doc for copyright information
+ * $Id$
  *
  * netproc calls this to export Citadel mail to RFC822-compliant mailers.
- * $Id$
  */
 
 #include <stdlib.h>
@@ -208,7 +206,7 @@ int main(int argc, char **argv)
        openlog("netmailer", LOG_PID, LOG_USER);
        get_config();
        LoadInternetConfig();
-       sprintf(temp, tmpnam(NULL));    /* temp file name */
+       strcpy(temp, tmpnam(NULL));     /* temp file name */
 
        if ((argc < 2) || (argc > 3)) {
                fprintf(stderr, "netmailer: usage: "
@@ -288,7 +286,7 @@ int main(int argc, char **argv)
         */
        fprintf(rmail, "To: %s\n", rbuf);
        time(&now);
-       generate_rfc822_datestamp(datestamp, now);
+       datestring(datestamp, now, DATESTRING_RFC822);
        fprintf(rmail, "Date: %s\n", datestamp);
        fprintf(rmail, "Message-Id: <%ld@%s>\n", (long) mid_buf, nbuf);
        fprintf(rmail, "X-Mailer: %s\n", CITADEL);