Closed williamdes closed 1 year ago
It looks like a timestamp with milliseconds, what uses in JavaScript for instance. But RFC says it must be: "DIGIT seconds since 00:00:00 UTC January 1, 1970 indicating start of the time range contained in the report". When I drop the last three digits, I get August 2021. The report is clearly wrong. I don't think such a report should be accepted. But my code reacts inadequately, I agree with you. I will add handling for this error. Thank you.
They probably fixed it since then or stopped the service, strangely I can not find any other reports. I bet my client still has sfr emails as users.
Thank you in advance for handling this error
The fix works perfectly 🚀
Failed to get incoming report:
Error message:
- Failed to add an incoming report: wrong date value
Report ID: 5d724848-4dd4-4466-a614-71cd081442ed
Email message metadata:
- From: dmarc-reporting@sfr.fr
- Date: Wed, 4 Aug 2021 03:01:14 +0200 (CEST)
- Mailbox: DMARC (DMARC-SRG)
That said, the error would not help me a lot if I had to find the corresponding email :) Could you change the output ?
- Report ID: 5d724848-4dd4-4466-a614-71cd081442ed
+ Report ID: 5d724848-4dd4-4466-a614-71cd081442ed (2021-08-04-03-01-14-9329)
Or maybe including the email subject line is easier for you since fetching the report Id requires some parsing
Sorry for this feature request out of an issue
Edit: nevermind, the report Id is from the XML file.. 😄
That said, the error would not help me a lot if I had to find the corresponding email :)
Date: Wed, 4 Aug 2021 03:01:14 +0200 (CEST)
Isn't that not enough to find the corresponding email?
- Report ID: 5d724848-4dd4-4466-a614-71cd081442ed (2021-08-04-03-01-14-9329)
Where should the script take this date from if the report contains incorrect dates?
Maybe I didn't get your idea, sorry then.
Isn't that not enough to find the corresponding email?
Hmm, yes, Indeed 🤦🏻
Where should the script take this date from if the report contains incorrect dates? Maybe I didn't get your idea, sorry then.
My mistake, it's in the email header but I did not provide it until then: Report Domain: domain.tld Submitter: sfr.fr Report-ID: 2021-08-04-03-01-14-9329
Sent by a French operator (SFR) from the top 10 operators in France.
Did the code get it wrong or did they get the timestamp handing wrong ?
Report-ID: 2021-08-04-03-01-14-9329
Some years ago, but still we could handle this nicely ?