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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user