Skip to content
Permalink
Browse files

Attach files with the "basename" path as metadata, not the full absol…

…ute one.
  • Loading branch information...
lamby committed Oct 28, 2019
1 parent 910b1be commit 6af79f365f92d7fb0390122705c6025c066286b3
Showing with 1 addition and 1 deletion.
  1. +1 −1 tickle-me-email
@@ -699,7 +699,7 @@ class Command:
email.encoders.encode_base64(attachment)

attachment.add_header(
"Content-Disposition", "attachment", filename=filename
"Content-Disposition", "attachment", filename=basename
)

msg.attach(attachment)

0 comments on commit 6af79f3

Please sign in to comment.
You can’t perform that action at this time.