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
James Hillyerd
97a2016177
Add customizable greeting to index page
...
Allow an organization to copy the greeting.html file out of the themes
directory, customize it, then point the greeting.file config option at
it so that it will survive Inbucket upgrades.
2013-10-10 14:04:22 -07:00
James Hillyerd
9354b9692f
First crack at single gob per mailbox, hardly works
2013-10-09 21:43:45 -07:00
James Hillyerd
dcc5d240cb
Add listener configuration details to status page
2013-10-09 16:20:13 -07:00
James Hillyerd
9c924d5659
Revise README
2013-10-01 15:07:14 -07:00
James Hillyerd
b073987da0
Update README w/ POP3 and github.io
2013-10-01 15:05:37 -07:00
James Hillyerd
e3e0e19fdc
Update README w/ POP3 and github.io
2013-10-01 14:56:51 -07:00
James Hillyerd
62b4abf26e
Fix broken MockMessage
2013-10-01 14:05:16 -07:00
James Hillyerd
c9392c7eb1
Wired character-set decoding into From and Subject
...
- Removed extra message object from ReadBody() return type
- We now use enmime's GetHeader() when building the GOB, this will get
us alternate character set decoding for the From and Subject headers.
- Added a swaks test with a utf-8 subject line
2013-10-01 14:01:08 -07:00
James Hillyerd
d9b728ef46
Added goxc config for cross compile builds
...
https://github.com/laher/goxc
2013-09-17 11:00:37 -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
f50061ac82
Handle space after "MAIL FROM:" for Outlook SMTP
2013-09-13 09:01:36 -07:00
James Hillyerd
edd65ff415
Merge pull request #13 from jhillyerd/pop3
...
Merge POP3 changes into master
2013-09-12 22:09:01 -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