aboutsummaryrefslogtreecommitdiffstats
path: root/worker
diff options
context:
space:
mode:
Diffstat (limited to 'worker')
-rw-r--r--worker/maildir/worker.go5
-rw-r--r--worker/notmuch/message.go4
2 files changed, 9 insertions, 0 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index f843d002..5ca648c4 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -883,6 +883,11 @@ func (w *Worker) msgInfoFromUid(uid uint32) (*models.MessageInfo, error) {
if err != nil {
return nil, err
}
+ name, err := m.dir.Filename(m.key)
+ if err != nil {
+ return nil, err
+ }
+ info.Filenames = []string{name}
if w.c.IsRecent(uid) {
info.Flags |= models.RecentFlag
}
diff --git a/worker/notmuch/message.go b/worker/notmuch/message.go
index 19011679..2beda4d6 100644
--- a/worker/notmuch/message.go
+++ b/worker/notmuch/message.go
@@ -48,6 +48,10 @@ func (m *Message) MessageInfo() (*models.MessageInfo, error) {
log.Errorf("failed to obtain file size: %v", err)
}
}
+ filenames, err := m.db.MsgFilenames(m.key)
+ if err == nil {
+ info.Filenames = filenames
+ }
return info, nil
}