1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 18:17:03 +00:00
Commit Graph

32 Commits

Author SHA1 Message Date
James Hillyerd
ea6bb44969 Parse mailbox name before using/displaying it
Fixes #14
2013-10-27 14:52:24 -07:00
James Hillyerd
47cba08c33 Add a Link button to messages
Allows users to copy the URL for a specific message and send it to
another person.
2013-10-25 13:29:26 -07:00
James Hillyerd
41c10051fa Modify output of REST get message, add SMTP headers 2013-10-17 15:11:13 -07:00
James Hillyerd
3ddeb13a82 Add a REST response for MailboxShow 2013-10-16 17:09:54 -07:00
James Hillyerd
91c44304c3 Add size to mailbox listing JSON 2013-10-15 16:19:47 -07:00
James Hillyerd
1e85699ccf Add REST call for purging an entire mailbox 2013-10-14 15:35:09 -07:00
James Hillyerd
52771e19b6 Finishing up index.gob work
- Wrote more unit tests to make sure filestore behaves as expected
 - Renamed NewFileDataStore to DefaultFileDataStore, implemented a new
   NewFileDataStore for unit tests.
 - filestore now removes entire mailbox dir when last message is deleted
2013-10-13 11:46:20 -07:00
James Hillyerd
7b91a667a1 Reorganize URI routes to be more RESTful 2013-10-11 17:16:23 -07:00
James Hillyerd
d8ac1d78b0 Change format of json msg header 2013-10-11 16:40:06 -07:00
James Hillyerd
a12147930c Can now list mailbox contents via REST 2013-10-11 14:42:00 -07:00
James Hillyerd
97a2016177 Add customizable greeting to index page
Allow an organization to copy the greeting.html file out of the themes
directory, customize it, then point the greeting.file config option at
it so that it will survive Inbucket upgrades.
2013-10-10 14:04:22 -07:00
James Hillyerd
dcc5d240cb Add listener configuration details to status page 2013-10-09 16:20:13 -07:00
James Hillyerd
c9392c7eb1 Wired character-set decoding into From and Subject
- Removed extra message object from ReadBody() return type
 - We now use enmime's GetHeader() when building the GOB, this will get
   us alternate character set decoding for the From and Subject headers.
 - Added a swaks test with a utf-8 subject line
2013-10-01 14:01:08 -07:00
James Hillyerd
2e78e4e6f7 Logging and unit test changes
Logging methods were renamed so they don't trigger go-vet warnings for
error() and Error() formatting.

Unit tests were updated to use new github.com/stretchr repo (was renamed
from stretchrcom)

Missing methods were added to Message mock object.
2013-09-13 14:06:57 -07:00
James Hillyerd
7ccef7b977 Basic SIGTERM handling 2012-11-16 20:44:41 -08:00
James Hillyerd
afe14da506 Metrics improvements
- Label graphs by their duration, not update period
- Extend to 60 units so they are either 10 minutes or an hour of data
- Improvements to retention information
- Change javascript calculations, fixes #9 (I hope)
2012-11-14 17:22:25 -08:00
James Hillyerd
1da98a9f7e Attachment display & downloading! 2012-11-05 21:35:34 -08:00
James Hillyerd
12b8a079ac Add a script to generate a few test emails 2012-11-04 21:09:18 -08:00
James Hillyerd
69d0e6c341 Make links clickable in text view of emails 2012-10-27 15:24:29 -07:00
James Hillyerd
45e1995d17 Begin work on message retention
- Refactor datastore such that we have a FileDataStore that implements
  the DataStore interface.
- Add in missing SMTP configuration options: max recips, max idle, max
  message size
- Add retention options to config
2012-10-25 18:06:29 -07:00
James Hillyerd
81bb394755 More metrics, better logging 2012-10-24 12:40:17 -07:00
James Hillyerd
606fb124a6 Rename about page to status 2012-10-24 09:48:56 -07:00
James Hillyerd
30d7cbc2a4 Metrics on about page are working 2012-10-23 13:43:40 -07:00
James Hillyerd
5833bb0701 Add expvar JSON @ /debug/vars
Counters include:
 - Uptime
 - SMTP connections
 - SMTP connections (current)
 - SMTP messages delivered
2012-10-23 09:51:30 -07:00
James Hillyerd
3099777044 Update README
Switch to github.com for source of httpbuf, thegoods.biz is not firewall
friendly because it refers people to the git:// URL
2012-10-22 16:08:13 -07:00
James Hillyerd
7215c041dc Package reorganization part 2
End goal is to simplify build
2012-10-22 15:48:55 -07:00
James Hillyerd
4e5c0ce4d8 Reorganize packages pt 1
End goal: simplify build process
2012-10-22 15:20:33 -07:00
James Hillyerd
2c7419c661 Gorilla is fully operational
- All mailbox actions working: index, list, show, html, source and delete
 - Cleaned up extra files from Revel
 - Took a guess at install process for README.md

This closes #4
2012-10-21 13:42:34 -07:00
James Hillyerd
71bb52a64a Added partial templates
mailbox/list now renders
2012-10-21 12:42:54 -07:00
James Hillyerd
9c94bb2ab1 The main index template renders now! 2012-10-21 09:57:42 -07:00
James Hillyerd
442e8fbe14 Web server now starts
Can serve static content, no dynamic stuff yet
2012-10-20 23:03:59 -07:00
James Hillyerd
3dd0206b48 New directory layout - DOES NOT COMPILE 2012-10-20 16:40:25 -07:00