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

storage: Add Seen flag, tests for #58

This commit is contained in:
James Hillyerd
2018-03-31 21:46:10 -07:00
parent e3be5362dc
commit cc5cd7f9c3
8 changed files with 100 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ type Message struct {
Fto []*mail.Address
Fsubject string
Fsize int64
Fseen bool
}
// newMessage creates a new FileMessage object and sets the Date and ID fields.
@@ -96,3 +97,8 @@ func (m *Message) Source() (reader io.ReadCloser, err error) {
}
return file, nil
}
// Seen returns the seen flag value.
func (m *Message) Seen() bool {
return m.Fseen
}