X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fdatabase.cc;h=294247e22cf938526abd041d9411509707ffa651;hp=726c5a98a02b1e153358c0daff820dac8cac3cc3;hb=52292c548512214fd3dd205edb4ca9cf7955f2b3;hpb=5d0a01dceb67e9bdcb95bcb2328baef5e7ea7d52 diff --git a/lib/database.cc b/lib/database.cc index 726c5a98..294247e2 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -908,7 +908,7 @@ notmuch_database_add_message (notmuch_database_t *notmuch, * is to find a message ID (or else create one ourselves). */ header = notmuch_message_file_get_header (message_file, "message-id"); - if (header) { + if (header && *header != '\0') { message_id = _parse_message_id (message_file, header, NULL); /* So the header value isn't RFC-compliant, but it's * better than no message-id at all. */