]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Avoid bogus error messages when logging re To: and CC: headers.
authorBen Schmidt <none@none>
Mon, 23 Jan 2012 05:28:05 +0000 (16:28 +1100)
committerBen Schmidt <none@none>
Mon, 23 Jan 2012 05:28:05 +0000 (16:28 +1100)
This is still not ideal and error reporting still needs an overhaul, but at
least no red herring message is logged now.

ChangeLog
src/mlmmj-process.c

index b2c83a574864fd5d0859e6a4edc1a7125e94dbb3..6b926686b719c8d55160a9222a5766e01bd079de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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).
index 3b1c745a2bdec8e1ac1ba6a1c81391b99440f827..5a45ece69793b07b9b24c2b0e186adc3f7ba1739 100644 (file)
@@ -820,6 +820,7 @@ int main(int argc, char **argv)
        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 @@ int main(int argc, char **argv)
                        }
                }
                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++) {