[exim-dev] [Bug 1389] DMARC $dmarc_ar_header contains trash

Pàgina inicial
Delete this message
Reply to this message
Autor: Wolfgang Breyha
Data:  
A: exim-dev
Assumpte: [exim-dev] [Bug 1389] DMARC $dmarc_ar_header contains trash
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1389




--- Comment #3 from Wolfgang Breyha <wbreyha@???> 2013-10-03 15:07:36 ---
Another catch:

dmarc_has_been_checked is not reset if another mail is received on the same
connection. I remembered that case from my DCC code;-)

dmarc_process() is only called if dmarc_has_been_checked == FALSE and you'll
end up with empty variables for all mails received after the first one on the
some incoming connection since dmarc_init() is always called for new mail in
receive.c.
----------------
--- dmarc.c.orig        2013-09-24 17:37:29.000000000 +0200
+++ dmarc.c     2013-10-03 16:00:15.000000000 +0200
@@ -81,6 +81,8 @@
   dmarc_abort        = FALSE;
   dmarc_pass_fail    = US"skipped";
   dmarc_used_domain  = US"";
+  dmarc_ar_header    = NULL;
+  dmarc_has_been_checked = FALSE;
   header_from_sender = NULL;
   spf_sender_domain  = NULL;
   spf_human_readable = NULL;
----------------
should fix both.



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email