Skip to content

Commit

Permalink
BUG: provide filename when reading a non-archived file from mail
Browse files Browse the repository at this point in the history
  • Loading branch information
kapalex authored Jul 25, 2021
1 parent b6f807e commit 5994d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intelmq/bots/collectors/mail/collector_mail_attach.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def process_message(self, uid, message):
raw_reports = unzip(attach['content'].read(), self.extract_files,
return_names=True, logger=self.logger)
else:
raw_reports = ((None, attach['content'].read()), )
raw_reports = ((attach_filename, attach['content'].read()), )

for file_name, raw_report in raw_reports:
report = self.new_report()
Expand Down

0 comments on commit 5994d26

Please sign in to comment.