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

10 Commits

Author SHA1 Message Date
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