Fix CLI option

This commit is contained in:
Sean Whalen
2018-03-14 21:47:08 -04:00
parent ae8c12732e
commit fc16bb8a2f
2 changed files with 3 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ https://github.com/domainaware/parsedmarc/issues
Installation
============
``parsedmarc`` works with Python 2 or 3, but Python 3 is preferred.
``parsedmarc`` works with Python 3 only.
On Debian or Ubuntu systems, run:

View File

@@ -1075,6 +1075,7 @@ def get_dmarc_reports_from_inbox(host, user, password,
server.add_flags(processed_messages, [imapclient.DELETED])
server.expunge()
else:
logging.warning("Moving ")
if len(aggregate_report_msg_uids) > 0:
server.move(aggregate_report_msg_uids,
aggregate_reports_folder)
@@ -1393,7 +1394,7 @@ def _main():
arg_parser.add_argument("-H", "--host", help="IMAP hostname or IP address")
arg_parser.add_argument("-u", "--user", help="IMAP user")
arg_parser.add_argument("-p", "--password", help="IMAP password")
arg_parser.add_argument("-r", "--report-folder", default="INBOX",
arg_parser.add_argument("-r", "--reports-folder", default="INBOX",
help="The IMAP folder containing the reports\n"
"Default: INBOX")
arg_parser.add_argument("-a", "--archive-folder",