]> git.notmuchmail.org Git - notmuch/blobdiff - lib/add-message.cc
Merge remote-tracking branch 'origin/debian/bullseye' into release
[notmuch] / lib / add-message.cc
index b47aa501639238f26fdf473b2623e0bb7e030822..d6e5e73d35f4b4c3183df5642ac251c95ad48641 100644 (file)
@@ -532,7 +532,9 @@ notmuch_database_index_file (notmuch_database_t *notmuch,
            goto DONE;
        }
 
-       _notmuch_message_add_filename (message, filename);
+       ret = _notmuch_message_add_filename (message, filename);
+       if (ret)
+           goto DONE;
 
        if (is_new || is_ghost) {
            _notmuch_message_add_term (message, "type", "mail");