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
28adcf0437 Graceful shutdown on error for httpd, smtpd, pop3d 2016-02-29 20:21:49 -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
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
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
834efefe46 Update travis golang to 1.4.2, run gofmt -s 2015-08-16 15:37:32 -07:00
James Hillyerd
88ae99abb0 Reformat *.go with goimports command 2014-05-19 19:40:33 -07:00
James Hillyerd
8f10e18fef Fix a couple defered Close() operations 2014-01-20 14:32:58 -08:00
James Hillyerd
6b606ebb9b SMTP, logging changes
- smtpd/handler uses ParseEmailAddress() when opening mailbox and
  checking domainNoStore
- Added host info to logging for both SMTP and POP3, closes #16
2013-11-05 15:18:19 -08: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
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
aa7b760385 POP3 is working
Added pop3.domain config option (for APOP greeting)
Implemented CAPA command
Implemented APOP "encrypted" authorization
Updated all sample config files to include [pop3] section
Closes #8
2013-09-12 22:07:24 -07:00
James Hillyerd
06ce860435 Impl deletes, update SMTP session tracing 2013-09-12 17:00:08 -07:00
James Hillyerd
5a44456db5 Most of RFC1939 implmented
Most of the stuff in RFC1939 is implemented, and I was able to download
messages with Thunderbird.  We do not yet purge deleted messages, and
probably need to implement some more auth modes.
2013-09-12 16:20:04 -07:00
James Hillyerd
01f6ad514b Started impl DELE 2013-09-12 15:55:45 -07:00
James Hillyerd
4649fd0b05 Started impl DELE 2013-09-11 23:12:22 -07:00
James Hillyerd
983b4f745a More basic POP3 implementation
Filestore/Datastore now supports a Size() method.
2013-09-10 17:56:04 -07:00
James Hillyerd
338698d461 Add empty shell of POP3 server 2013-09-09 15:51:26 -07:00