masqmail
changeset 105:47ee3fbcecd2
add `undisclosed recipients' header if no recipient headers available
the code still needs rework
author | meillo@marmaro.de |
---|---|
date | Tue, 29 Jun 2010 10:20:09 +0200 |
parents | b212da6385a8 |
children | 1f0d63713a1c |
files | src/accept.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line diff
1.1 --- a/src/accept.c Fri Jun 25 12:05:38 2010 +0200 1.2 +++ b/src/accept.c Tue Jun 29 10:20:09 2010 +0200 1.3 @@ -350,12 +350,8 @@ 1.4 ); 1.5 } 1.6 if ((flags & ACC_HEAD_FROM_RCPT) && !has_rcpt) { 1.7 - GList *node; 1.8 - DEBUG(3) debugf("adding 'To' header(s)\n"); 1.9 - for (node = g_list_first(msg->rcpt_list); node; node = g_list_next(node)) { 1.10 - msg->hdr_list = g_list_append(msg->hdr_list, 1.11 - create_header(HEAD_TO, "To: %s\n", addr_string(msg-> return_path))); 1.12 - } 1.13 + DEBUG(3) debugf("no To: or Cc: header, hence adding `undisclosed recipients' header\n"); 1.14 + msg->hdr_list = g_list_append(msg->hdr_list, create_header(HEAD_TO, "To: undisclosed-recipients:;\n")); 1.15 } 1.16 if ((flags & ACC_DEL_BCC) && !has_to_or_cc) { 1.17 /* Bcc headers have been removed, and there are no remaining rcpt headers */