1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 01:57:02 +00:00

doc: Add doc/config.md to document config for #86

- Increase default max message size to 10MB.
This commit is contained in:
James Hillyerd
2018-03-25 10:06:03 -07:00
parent 04bb842549
commit 69a0d355f9
3 changed files with 352 additions and 3 deletions

View File

@@ -7,8 +7,8 @@ type msgDone struct {
done chan struct{}
}
// enforceMaxSize will delete the oldest message until the entire mail store is equal to or less
// than Store.maxSize bytes.
// maxSizeEnforcer will delete the oldest message until the entire mail store is equal to or less
// than maxSize bytes.
func (s *Store) maxSizeEnforcer(maxSize int64) {
all := &list.List{}
curSize := int64(0)