Skip to content

Commit

Permalink
Fixed message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Phillip Willmann committed Jan 11, 2024
1 parent 90eccf7 commit 637428d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/attachment-downloader
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def process_message(filename_template, options, message):

if options.filename_regex:
if not re.search(options.filename_regex, attachment_filename, flags=0):
logging.warning("Skipping message '%s' subject '%s' send to '%s' because '%s' was not found in filename '%s'",
uid, subject, message.sent_to[0]['email'], options.subject_regex, attachment_filename)
logging.warning("Skipping attachment '%s' because '%s' was not found in filename",
attachment_filename, options.filename_regex)
continue

download_filename = filename_template.render(attachment_name=attachment_filename,
Expand Down

0 comments on commit 637428d

Please sign in to comment.