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

17 Commits

Author SHA1 Message Date
James Hillyerd
b9535c126c Implement REST API v1
- Add rest package with REST-only controller, tests
- Remove individual shell scripts in favor of rest-apivh1.sh
2016-02-25 14:42:10 -08:00
James Hillyerd
8e084b5697 Refactor web package into two packages: httpd and webui 2016-02-24 22:38:14 -08:00
James Hillyerd
e6b7e335cb Follow meta-linter recommendations for all of Inbucket
- Rename BUILD_DATE to BUILDDATE in goxc
- Update travis config
- Follow linter recommendations for inbucket.go
- Follow linter recommendations for config package
- Follow linter recommendations for log package
- Follow linter recommendations for pop3d package
- Follow linter recommendations for smtpd package
- Follow linter recommendations for web package
- Fix Id -> ID in templates
- Add shebang to REST demo scripts
- Add or refine many comments
2016-02-22 00:16:45 -08:00
James Hillyerd
e72c5c4b92 Version going to 1.1.0-snapshot, Go 1.5 2015-08-25 22:14:54 -07:00
James Hillyerd
88ae99abb0 Reformat *.go with goimports command 2014-05-19 19:40:33 -07:00
James Hillyerd
13868d85d4 HTML view encoding fix
- HTML popup now specifies UTF8 encoding
- Version and build date are captured from goxc
- Version is displayed on status page, and initial log entry
2014-03-12 09:09:47 -07:00
James Hillyerd
414ed44882 Refactoring to support REST unit tests 2013-11-11 10:50:41 -08:00
James Hillyerd
5ccd6b2044 Inversion of Control for smtpd.Server
Allow more control over how Server is instaniated so that it can be unit
tested.
2013-10-29 10:27:55 -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
338698d461 Add empty shell of POP3 server 2013-09-09 15:51:26 -07:00
James Hillyerd
9ee9afe5cc More shutdown work, closes #11
- Drain SMTP connections
- Force exit after 15 seconds of draining
2012-11-16 21:29:53 -08:00
James Hillyerd
7ccef7b977 Basic SIGTERM handling 2012-11-16 20:44:41 -08:00
James Hillyerd
ac807ed0b0 Cycle logfiles on SIGHUP for logrotated 2012-11-05 12:50:16 -08:00
James Hillyerd
9a09be2382 Make easier for daemonization
- Create pidfile if requested
- Create logfile and close std* streams if requested
2012-10-31 16:29:38 -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
16a68000d3 Make log level configurable 2012-10-22 18:07:16 -07:00
James Hillyerd
db0d553f5d Package reorg part 3
- binary "inbucketd" is now "inbucket"
 - renamed "conf" to "etc" so it doesn't get confused with "config" pacakge dir
2012-10-22 15:57:05 -07:00