Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lsiden/mail-single_file_delivery
Deliver all mail to a single file for testing.
https://github.com/lsiden/mail-single_file_delivery
Last synced: about 2 months ago
JSON representation
Deliver all mail to a single file for testing.
- Host: GitHub
- URL: https://github.com/lsiden/mail-single_file_delivery
- Owner: lsiden
- Created: 2011-12-30T02:47:59.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-01T19:59:49.000Z (about 13 years ago)
- Last Synced: 2024-10-19T03:43:55.373Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
Awesome Lists containing this project
README
# Single File Delivery Method for Mail gem
## Summary
This gem is a delivery-method plug-in for [mail](https://github.com/mikel/mail)
that delivers all mail to a single file for testing.The Mail gem already provides a file delivery-method that appends a copy of each message
to a file named after each message recipient,
but I want them to all go to a single file
so that I can monitor them from another window with `tail -f my-file`,
or `cat my-named-pipe` while I hand-test the web interface from a browser.Of course this is _in addition to_ running automated tests with Rspec and Cucumber.
At some point in development, I want to actually see the pages and enter my own inputs
and perhaps display the mail messages in an HTML reader.## Synopsis
Mail.defaults do
delivery_method SingleFileDelivery => '/tmp/my-file.txt'
end## See Also
* https://github.com/mikel/mail
* https://github.com/lsiden/mail-store-agent