James Hillyerd
6431b71cfe
Refactor filestore into a dedicated pkg, closes #67
2017-12-26 23:04:39 -08:00
James Hillyerd
cc47895d71
Pass cfg and ds as params, helps #26 #67
2017-12-26 13:57:04 -08:00
James Hillyerd
890d8e0202
Rename link variables, setup travis tag releases
2017-12-17 19:32:05 -08:00
James Hillyerd
1efe2ba48f
Prepare release 1.2.0-rc2
2017-12-15 20:34:27 -08:00
James Hillyerd
5147865e55
rc1 prep
2017-01-29 13:14:27 -08:00
James Hillyerd
62b77dfe5e
Refactor configuration parser to use tables
2017-01-22 18:57:03 -08:00
James Hillyerd
cf7bdee925
Add goroutine count to metrics
2017-01-22 12:45:53 -08:00
James Hillyerd
9ae428ca44
Make monitor configurable for #44
2017-01-21 20:23:04 -08:00
James Hillyerd
63a76696bf
Add user interface for monitor, #44
2017-01-16 21:30:40 -08:00
James Hillyerd
e5aad9f5d0
Implement server side of message monitor for #44
2017-01-16 18:12:27 -08:00
James Hillyerd
b3db619db9
Broadcast deliveries into msghub for #44
2017-01-16 13:09:50 -08:00
James Hillyerd
a222b7c428
Make use of pkg context
...
- Use context inside of servers for shutdown
- Remove unnecessary localShutdown related code
2017-01-15 22:00:58 -08:00
James Hillyerd
6d2c2c8dad
Prep for 1.1.0
2016-09-03 11:23:09 -07:00
James Hillyerd
470ef9b496
Prep for 1.1.0-rc2
2016-03-06 16:47:19 -08:00
James Hillyerd
22eb793f61
Release 1.1.0-rc1
2016-03-03 21:40:25 -08:00
James Hillyerd
4b4121bb3a
Use channels to communicate shutdown request
...
- httpd now uses shutdown channel
- smtpd now uses shutdown channel
- pop3d now uses shutdown channel
- timedExit now removes PID file
- tidy up some struct instantiations, var blocks
2016-02-28 23:48:09 -08:00
James Hillyerd
3a7be7d89c
Reorganize logging
...
- Move the opening/closing of logs to the log package
- Use conditional compilation for redirecting stdout/err to logfile,
Unix allows a superior method to Windows
- Panic output will now to go log file on Unix platforms
2016-02-28 19:45:27 -08:00
James Hillyerd
e4d12e60aa
Add SIGINT to traps, triggers clean shutdown
2016-02-28 16:25:35 -08:00
James Hillyerd
982ad857e8
Take care of more TODO flagged code
...
- Improve TODO comments, mention related issues
- Export ErrNotWritable, move it to datastore.go
- Improve logging of corrupt mailbox GOB file
2016-02-28 16:14:37 -08:00
James Hillyerd
075aa0dd38
Remove PID file during shutdown
2016-02-28 14:41:15 -08:00
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