diff options
Diffstat (limited to 'worker')
-rw-r--r-- | worker/notmuch/message.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/worker/notmuch/message.go b/worker/notmuch/message.go index 2a8b1730..09850d64 100644 --- a/worker/notmuch/message.go +++ b/worker/notmuch/message.go @@ -237,19 +237,10 @@ func (m *Message) Move(srcDir, destDir maildir.Dir) error { return fmt.Errorf("no matching message file found in %s", string(srcDir)) } - tags, err := m.Tags() - if err != nil { - return err - } - // Remove encoded UID information from the key to prevent sync issues name := lib.StripUIDFromMessageFilename(filepath.Base(src)) dest := filepath.Join(string(destDir), "cur", name) - if err := m.db.DeleteMessage(src); err != nil { - return err - } - if err := os.Rename(src, dest); err != nil { return err } @@ -258,7 +249,7 @@ func (m *Message) Move(srcDir, destDir maildir.Dir) error { return err } - if err := m.ModifyTags(tags, nil); err != nil { + if err := m.db.DeleteMessage(src); err != nil { return err } |