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

11 Commits

Author SHA1 Message Date
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
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
9354b9692f First crack at single gob per mailbox, hardly works 2013-10-09 21:43:45 -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
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
01f6ad514b Started impl DELE 2013-09-12 15:55:45 -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
afe0d779cb Replace internal MIME with go.enmime 2012-11-04 13:25:24 -08:00
James Hillyerd
53bcb52e64 Implementing AllMailboxes 2012-10-25 22:54:17 -07:00
James Hillyerd
57d3b198b2 Refactore FileDataStore into its own file 2012-10-25 22:33:50 -07:00