From 637428d603cd4344aa0f8ac90763014407e701c3 Mon Sep 17 00:00:00 2001 From: Jan Phillip Willmann Date: Thu, 11 Jan 2024 21:32:40 +0100 Subject: [PATCH] Fixed message --- bin/attachment-downloader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/attachment-downloader b/bin/attachment-downloader index 2a2fcbd..fd70b05 100755 --- a/bin/attachment-downloader +++ b/bin/attachment-downloader @@ -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,