/*
- * 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>
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: "
*/
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);