Patch for 1.0.4
--- ../libesmtp-1.0.4/headers.c 2005-12-15 20:52:01.000000000 +0000
+++ ./headers.c 2006-03-06 09:58:58.000000000 +0000
@@ -167,7 +167,7 @@
if (message_id == NULL)
{
#ifdef HAVE_GETTIMEOFDAY
- if (gettimeofday (&tv, NULL) == -1) /* This shouldn't fail ... */
+ if (gettimeofday (&tv, NULL) != -1) /* This shouldn't fail ... */
snprintf (buf, sizeof buf, "[EMAIL PROTECTED]", tv.tv_sec, tv.tv_usec,
getpid (), message->session->localhost);
else /* ... but if it does fall back to using time() */
@@ -477,7 +477,7 @@
*/
{ "Date", REQUIRE,
set_date, print_date, NULL, },
- { "From", REQUIRE,
+ { "From", REQUIRE | LISTVALUE,
set_from, print_from, destroy_mbox_list, },
/* Certain headers are added when a message is delivered and
should not be present in a message being posted or which
@@ -506,13 +506,13 @@
string values. */
{ "Sender", OPTIONAL,
set_sender, print_sender, destroy_mbox_list, },
- { "To", OPTIONAL,
+ { "To", OPTIONAL | LISTVALUE,
set_to, print_to, destroy_mbox_list, },
- { "Cc", OPTIONAL,
+ { "Cc", OPTIONAL | LISTVALUE,
set_cc, print_cc, destroy_mbox_list, },
- { "Bcc", OPTIONAL,
+ { "Bcc", OPTIONAL | LISTVALUE,
set_cc, print_cc, destroy_mbox_list, },
- { "Reply-To", OPTIONAL,
+ { "Reply-To", OPTIONAL | LISTVALUE,
set_cc, print_cc, destroy_mbox_list, },
/* RFC 2298 - MDN request. Syntax is the same as the From: header and
default when set to NULL is the same as From: */