server: workaround for broken message-id

We cannot really _search_ for the broken message-id, but we can still view it.

Should help for issue #2232.
This commit is contained in:
Dirk-Jan C. Binnema
2022-04-19 00:04:01 +03:00
parent 1ff161d91b
commit d0619b1db2
2 changed files with 10 additions and 5 deletions

View File

@ -1076,8 +1076,8 @@ Server::Private::maybe_mark_as_read(MuMsg* msg, Store::Id docid, bool rename)
}
bool
Server::Private::maybe_mark_msgid_as_read(const char* msgid, bool rename)
{
Server::Private::maybe_mark_msgid_as_read(const char* msgid, bool rename) try {
if (!msgid)
return false; // nothing to do.
@ -1095,6 +1095,9 @@ Server::Private::maybe_mark_msgid_as_read(const char* msgid, bool rename)
}
return true;
} catch (...) { /* not fatal */
g_warning("failed to mark <%s> as read", msgid);
return false;
}
void