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

169 Commits

Author SHA1 Message Date
Hotei
7433e9ac36 Update inbucket.conf
Remove duped mailbox.message.cap= setting
2014-05-05 22:06:16 -04:00
James Hillyerd
c34549e783 1.0 release, no changes from rc4 1.0 2014-04-14 12:34:21 -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
1.0-rc4
2014-03-12 09:09:47 -07:00
James Hillyerd
8f10e18fef Fix a couple defered Close() operations 1.0-rc3 2014-01-20 14:32:58 -08:00
James Hillyerd
b105bbf87f Merge branch 'master' of https://github.com/jhillyerd/inbucket 2013-11-15 12:03:44 -08:00
James Hillyerd
ad85a1db93 Set content-type properly on MailboxHtml handler
- Changes to upstream go.enmime help with #20
- Setting content-type is required so that browsers correclty render
  docs that don't include an <html> element.
2013-11-15 12:03:27 -08:00
James Hillyerd
d418f4ba29 Update README and template for inbucket.org site 2013-11-14 20:28:29 -08:00
James Hillyerd
d98e6a2b58 Missing message is now 404 instead of 500
- Added smtpd.ErrNotExist to make detecting missing message easier
- Return 404 instead of 500 when requesting a non-extistant message
- More REST unit tests
2013-11-14 15:08:46 -08:00
James Hillyerd
8b7fbfda6a Unit test MailboxList JSON output 2013-11-13 15:22:03 -08:00
James Hillyerd
46fa714cc7 Add configurable mailbox message cap
- Add new configuration option [datastore]mailbox.message.cap
- Modify filestore to enforce message cap if value > 0
- Filestore unit tests for message cap when enabled & disabled
- Change to DataStore.Mailbox.NewMessage() interface to allow error
  return
2013-11-12 10:42:39 -08:00
James Hillyerd
414ed44882 Refactoring to support REST unit tests 2013-11-11 10:50:41 -08:00
James Hillyerd
2e1c937d23 Now adds a Recieved: header to raw message 2013-11-09 12:57:45 -08:00
James Hillyerd
df11575b3a Handle missing .raw better, closes #19
- Add filestore unit tests to exercise #19
- Move deferred file close under error check
- Handle error message from server gracefully on message click
- Scroll to top of page when message loads successfully
2013-11-09 08:47:20 -08:00
James Hillyerd
425a1349c6 Release 1.0-rc2 1.0-rc2 2013-11-07 11:00:54 -08:00
James Hillyerd
0f1e75b473 Make it possible to inject web DataStore for tests 2013-11-07 10:56:50 -08:00
James Hillyerd
d80521b24d Use MockDataStore for handler_test.go 2013-11-06 17:18:56 -08:00
James Hillyerd
ef48b9c2dd Extend ParseMailboxName()
- Checks for invalid characters, returns useful error if it finds them
- Extended unit tests for ParseMailboxName
- Closes #6
2013-11-06 15:36:46 -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
962e995268 Travis CI config 2013-11-05 14:18:58 -08:00
James Hillyerd
a0a5a9acb0 Wire address validation into MAIL & RCPT handlers 2013-11-05 12:12:25 -08:00
James Hillyerd
596b268380 Completed ParseEmailAddress() 2013-11-04 17:02:17 -08:00
James Hillyerd
193a5f6f13 Commit incomplete ParseEmailAddress() 2013-11-04 16:18:30 -08:00
James Hillyerd
21ad7a2452 Checkpoint before converting Validator->Parser 2013-11-04 14:00:23 -08:00
James Hillyerd
bd4db645bb ValidateLocalPart: Handle backslash quoted chars 2013-11-03 20:53:37 -08:00
James Hillyerd
ba943cb682 Initial version of ValidateLocalPart
Does not support any quoting yet, not RFC compliant
2013-11-03 10:25:34 -08:00
James Hillyerd
b2c3c4ce0f More testing
Test DATA on handler
Add a 2 second wait if the test fails so that all the logging data can
be collected.
2013-10-30 14:42:55 -07:00
James Hillyerd
038f4fafd3 Capture log output during unit tests 2013-10-30 11:43:35 -07:00
James Hillyerd
f34a73f8a6 Domain validator + tests (unwired) 2013-10-29 20:40:47 -07:00
James Hillyerd
e5b6ed2230 Add many more SMTP handler tests 2013-10-29 17:01:54 -07:00
James Hillyerd
38c124875e Prevent panic when submitting an empty message 2013-10-29 17:01:21 -07:00
James Hillyerd
00243a622f Framework for testing SMTP over Pipe() connection 2013-10-29 13:58:21 -07: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
ea6bb44969 Parse mailbox name before using/displaying it
Fixes #14
2013-10-27 14:52:24 -07:00
James Hillyerd
483ddc1c5e Track retained messages over time 2013-10-25 15:24:30 -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
ea7274e5dd Fix bad Fatalf's, release 1.0-rc1 1.0-rc1 2013-10-17 16:06:17 -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
6679ce9250 Replace panic() with t.Fatalf where possible 2013-10-14 15:50:07 -07:00
James Hillyerd
1e85699ccf Add REST call for purging an entire mailbox 2013-10-14 15:35:09 -07:00
James Hillyerd
46d4f7be1d Message size calculation changes
Message sizes are now calculated as the message is written out to disk,
and saved into the index.gob file
2013-10-13 21:03:51 -07:00
James Hillyerd
b7e1dbb418 goxc changes
Reorganize stuff in bin dir to other places, or delete it
Only build amd64 binaries to reduce bintray space usage
2013-10-13 20:32:59 -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
08f16db7ac More index.gob work
Use a global lock for reading/writing any index file.  Possible
bottleneck, but good enough for now.

Don't create a mailbox directory until a message is being written to it.
2013-10-11 20:06:33 -07:00
James Hillyerd
789105b9fd Merge in REST changes 2013-10-11 18:09:15 -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
27015b3c58 Update github link in integral templates 2013-10-10 15:26:33 -07:00