diff options
author | Jason Cox <me@jasoncarloscox.com> | 2024-02-23 11:40:15 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-04-02 22:22:14 +0200 |
commit | 3ee53c3012ea2a01bfce19c087c6ed0c8251a797 (patch) | |
tree | 81c4eee253e7b6336a44fb117822c95eb3164c0c /commands | |
parent | e4ad97a3f0c437381cf08e3c8bb008c8a9487d01 (diff) | |
download | aerc-3ee53c3012ea2a01bfce19c087c6ed0c8251a797.tar.gz |
notmuch: ignore duplicate msg ID error on delete
According to the comments in notmuch.h, removing a file returns
NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID when the "filename was removed but
the message persists in the database with at least one other filename."
Based on the fact that the db.DeleteMessage() function is used in a
context that explicitly recognizes the possibility of multiple files and
only attempts to delete one of them, I'm fairly certain that the
existing behavior of ignoring all errors *except* the deplicate message
ID error is the result of a typo. (It also doesn't make sense to ignore
other errors, such as NOTMUCH_STATUS_XAPIAN_EXCEPTION.)
Cc: Tim Culverhouse <tim@timculverhouse.com>
Signed-off-by: Jason Cox <me@jasoncarloscox.com>
Tested-by: Maarten Aertsen <maarten@nlnetlabs.nl>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions