domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
981 stars 212 forks source link

Use "check_timeout" duration in case of error on imap connection #377

Closed AnaelMobilia closed 1 year ago

AnaelMobilia commented 1 year ago

In case of timeout or exception, wait "check_timeout" before to try a new connection (documentation : "or the number of seconds until the next mail check"). Else in case of a mail server issue, we try to connect again each 5 seconds.

codecov[bot] commented 1 year ago

Codecov Report

Base: 59.23% // Head: 58.93% // Decreases project coverage by -0.30% :warning:

Coverage data is based on head (a1167d9) compared to base (49f9d75). Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #377 +/- ## ========================================== - Coverage 59.23% 58.93% -0.31% ========================================== Files 10 10 Lines 1332 1332 ========================================== - Hits 789 785 -4 - Misses 543 547 +4 ``` | [Impacted Files](https://codecov.io/gh/domainaware/parsedmarc/pull/377?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domainaware) | Coverage Δ | | |---|---|---| | [parsedmarc/mail/imap.py](https://codecov.io/gh/domainaware/parsedmarc/pull/377/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domainaware#diff-cGFyc2VkbWFyYy9tYWlsL2ltYXAucHk=) | `40.54% <0.00%> (ø)` | | | [parsedmarc/utils.py](https://codecov.io/gh/domainaware/parsedmarc/pull/377/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domainaware#diff-cGFyc2VkbWFyYy91dGlscy5weQ==) | `69.81% <0.00%> (-1.51%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domainaware). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=domainaware)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.