Skip to content

Commit

Permalink
Merge pull request #51 from fishnux/patch-1
Browse files Browse the repository at this point in the history
Add from_email to template
  • Loading branch information
jamesridgway authored Feb 17, 2024
2 parents 16b46ef + 019f6b6 commit 33e137e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/attachment-downloader
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def process_message(filename_template, options, message):
subject=subject,
message_id=message.message_id,
date=parsed_message_date,
folder=folder)
folder=folder,
from_email=message.sent_from[0]['email'])

download_path = os.path.join(options.download_folder, download_filename)
os.makedirs(os.path.dirname(os.path.abspath(download_path)), exist_ok=True)
Expand Down

0 comments on commit 33e137e

Please sign in to comment.