-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/Attachments #32
Conversation
- Added an option to __main__ - Added sample attachment list template - Updated main driver to attach files to multipart email
Ah, just saw that there's an issue for this: #20 |
This is great! What do you do you think about using an pseudo-header to specify attachments? See discussion here #20 (comment) |
Thanks! The pseudo-header is possible. My thoughts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're getting close!
Another question: what happens if a file has a space in it?
What if I use an absolute path? Possibly relevant: https://docs.python.org/2/library/os.path.html#os.path.abspath
What if I use a path that has a backslash, e.g., on Windows?
Regarding your other comments:
Thanks for bringing these points up! Will push a new iteration soon. |
I scratched a few itches, editing the README directly. Take a second look if you think it's OK. |
The README looks much cleaner now. Thanks for the input! |
This is looking great! Once the (newly added CI) tests pass, it'll be ready to merge! |
Used a hack to work around a bug in the backports email module's Message.set_boundary method. See the comments in this commit for details about the workaround.
The original changes failed on (Edit: I've created an issue in the I've implemented a work-around to avoid the |
Looks great! I'm going to merge, then create an issue to remove the |
Added an option to send attachments with each email. This can be configured using an "attachment list" text file, which must be supplied as an option to
mailmerge
. The updated README explains the details of how it can be used. A functional test using attachments has also been added.I verified that attachments were correctly identified by Gmail-based clients. I am open to suggestions on how to improve the functionality or style of code in this PR. Thanks!