changeset 831:f7295507141c

Avoid bogus error messages when logging re To: and CC: headers. This is still not ideal and error reporting still needs an overhaul, but at least no red herring message is logged now.
author Ben Schmidt
date Mon, 23 Jan 2012 16:28:05 +1100
parents 28f313a329ed
children dc8136010a35
files ChangeLog src/mlmmj-process.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jan 23 13:06:45 2012 +1100
+++ b/ChangeLog	Mon Jan 23 16:28:05 2012 +1100
@@ -1,3 +1,5 @@
+ o Avoid bogus error messages when logging that the list address has been
+   found in To: or CC: headers.
  o Escape dashes in man pages.
  o Remove 'bashisms' from mlmmj-make-ml script (patch from Dan forwarded by
    Thomas Goirand).
--- a/src/mlmmj-process.c	Mon Jan 23 13:06:45 2012 +1100
+++ b/src/mlmmj-process.c	Mon Jan 23 16:28:05 2012 +1100
@@ -820,6 +820,7 @@
 	addrtocc = !(statctrl(listdir, "tocc"));
 	if(addrtocc) {
 		for(i = 0; i < toemails.emailcount; i++) {
+			errno = 0;
 			log_error(LOG_ARGS, "Found To: %s",
 				toemails.emaillist[i]);
 			for(j = 0; j < alternates->count; j++) {
@@ -830,6 +831,7 @@
 			}
 		}
 		for(i = 0; i < ccemails.emailcount; i++) {
+			errno = 0;
 			log_error(LOG_ARGS, "Found Cc: %s",
 				ccemails.emaillist[i]);
 			for(j = 0; j < alternates->count; j++) {