diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/models.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go index d730229c..fb628f63 100644 --- a/models/models.go +++ b/models/models.go @@ -71,6 +71,7 @@ type MessageInfo struct { Labels []string InternalDate time.Time RFC822Headers *mail.Header + Refs []string Size uint32 Uid uint32 Error error @@ -110,6 +111,9 @@ func (mi *MessageInfo) References() ([]string, error) { if mi == nil { return []string{}, errors.New("msg is nil") } + if mi.Refs != nil { + return mi.Refs, nil + } if mi.RFC822Headers == nil { return []string{}, errors.New("header is nil") } |