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 (2010-06-29)
parents b212da6385a8
children 1f0d63713a1c
files src/accept.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/accept.c	Fri Jun 25 12:05:38 2010 +0200
+++ b/src/accept.c	Tue Jun 29 10:20:09 2010 +0200
@@ -350,12 +350,8 @@
 			                );
 		}
 		if ((flags & ACC_HEAD_FROM_RCPT) && !has_rcpt) {
-			GList *node;
-			DEBUG(3) debugf("adding 'To' header(s)\n");
-			for (node = g_list_first(msg->rcpt_list); node; node = g_list_next(node)) {
-				msg->hdr_list = g_list_append(msg->hdr_list,
-				                              create_header(HEAD_TO, "To: %s\n", addr_string(msg-> return_path)));
-			}
+			DEBUG(3) debugf("no To: or Cc: header, hence adding `undisclosed recipients' header\n");
+			msg->hdr_list = g_list_append(msg->hdr_list, create_header(HEAD_TO, "To: undisclosed-recipients:;\n"));
 		}
 		if ((flags & ACC_DEL_BCC) && !has_to_or_cc) {
 			/* Bcc headers have been removed, and there are no remaining rcpt headers */