Skip to content

Commit d3f9fd8

Browse files
committed
Don't print empty mailbox message if running silently
1 parent da438f2 commit d3f9fd8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "simple-dmarc-parser"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
description = "A Python script that processes DMARC reports from a mailbox and gives a basic summary."
55
authors = ["FrostTheFox <python@frostthefox.pw>"]
66
keywords = ["dmarc", "rua"]

simple_dmarc_parser/dmarc_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def main():
124124

125125
# If we didn't get anything from the IMAP server, exit.
126126
if not os.path.isdir(directory):
127-
print('No reports found, exiting.')
127+
if not silent:
128+
print('No reports found, exiting.')
128129
sys.exit()
129130

130131
for file in os.listdir(directory):

0 commit comments

Comments
 (0)