ryanb / letter_opener

Preview mail in the browser instead of sending.
MIT License
3.73k stars 237 forks source link

Add rake tmp:clear hook #160

Closed listrophy closed 5 years ago

listrophy commented 5 years ago

Tested on a local Rails app.

Copied general structure from the rails repo.

nashby commented 5 years ago

Hey @listrophy! Thanks for the pull request! One thing to consider is that user can specify any location where mails are saved. In that case this rake task won't work. Not sure if it's possible to use that config in your rake task though.

nashby commented 5 years ago

@listrophy Hey! I'm closing this for now since this won't work for all the cases. Feel free to ping me with a your thoughts on how to make it work and I'll reopen it.