Some mails are sent without include a Message-ID header. When I try to tag
them using modify-labels mutt-kz says "Failed to modify labels, aborting."
It is possible to tag such messages using notmuch tag.
I ran mutt in gdb to find the problem. If the e-mail has no Message-ID then
h->env->message_id is empty. Here is the code.
static char *nm_header_get_id(HEADER *h)
{
size_t sz;
if (!h || !h->env || !h->env->message_id)
return NULL;
sz = strlen(h->env->message_id);
/* remove '<' and '>' from id */
return strndup(h->env->message_id + 1, sz - 2);
}
It would be useful if the error could give the reason why modify-labels
failed.
Notmuch generates messages IDs for mails that are missing the header:
id:notmuch-sha1-2e7a3e5ecbcb342c5860303815b6f910e10fcb0f
Maybe mutt-kz could use this value if the Message-ID is missing.
--
Edward.
Show replies by date