diff src/accept.c @ 303:3e3c280ca5b2

replaced header_fold() with a better implementation
author markus schnalke <meillo@marmaro.de>
date Thu, 09 Dec 2010 18:01:46 -0300
parents ca2d11aec2a3
children d5ce2ba71e7b
line wrap: on
line diff
--- a/src/accept.c	Thu Dec 09 17:50:25 2010 -0300
+++ b/src/accept.c	Thu Dec 09 18:01:46 2010 -0300
@@ -362,7 +362,7 @@
 
 	if (g_list_length(msg->rcpt_list) == 1) {
 		address *addr = (address *) (g_list_first(msg->rcpt_list)->data);
-		for_string = g_strdup_printf("\n\tfor %s", addr_string(addr));
+		for_string = g_strdup_printf(" for %s", addr_string(addr));
 	}
 
 	if (!msg->received_host) {
@@ -390,7 +390,7 @@
 		    msg->uid, for_string ? for_string : "", rec_timestamp());
 #endif
 	}
-	header_fold(hdr);
+	header_fold(hdr, 78);
 	msg->hdr_list = g_list_prepend(msg->hdr_list, hdr);
 
 	if (for_string)