awdeorio / mailmerge

A simple, command line mail merge tool.
MIT License
140 stars 41 forks source link

Resume option #35

Closed awdeorio closed 4 years ago

awdeorio commented 5 years ago

It would be nice to have a mailmerge --resume option to resume sending emails in the event of a failure.

Along with this, it would makes sense to report the database row number of a sent message. It should correspond to row number when viewing the database CSV file in a spreadsheet program.

awdeorio commented 4 years ago

Another way to do this would be to render all templates first, storing base64 encoded messages in ~/.mailmerge.d/messages. Then log each sent message to ~/.mailmerge.d/sent.log, be sure to append to log and buffer to file system. When mailmerge starts up, check ~/.mailmerge.d/ for an incomplete log. Offer the user an option to resume with mailmerge --resume.

It might also be nice to store a detailed debug log in ~/.mailmerge.d/debug.log.

Testing