From 60b9cfd5abf4e2c68821b8435cc73ec3a7d1e058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 5 Jul 2003 10:49:22 +0000 Subject: Better documentation. Support for more sendmail options. Error verification for libESMTP calls. --- local.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'local.c') diff --git a/local.c b/local.c index a2545bf..29601d2 100644 --- a/local.c +++ b/local.c @@ -4,11 +4,11 @@ */ +#include #include #include #include #include -#include #include "local.h" #include "main.h" @@ -45,7 +45,6 @@ void local_init(message_t *message) struct idlist *idp; int length = 0, fromlen = 0, nameslen = 0; char *names = NULL, *before, *after, *from = NULL; - char *user = NULL; if (!mda) { @@ -70,8 +69,9 @@ void local_init(message_t *message) { recipient_t *recipient = list_entry(ptr, recipient_t, list); - if(recipient->address) - nameslen += (strlen(recipient->address) + 1); /* string + ' ' */ + assert(recipient->address); + + nameslen += (strlen(recipient->address) + 1); /* string + ' ' */ } names = (char *)xmalloc(nameslen + 1); /* account for '\0' */ @@ -80,13 +80,8 @@ void local_init(message_t *message) { recipient_t *recipient = list_entry(ptr, recipient_t, list); - if(recipient->address) - { - if(!user) - user = recipient->address; - strcat(names, recipient->address); - strcat(names, " "); - } + strcat(names, recipient->address); + strcat(names, " "); } names[--nameslen] = '\0'; /* chop trailing space */ -- cgit v1.2.3-2-g168b