]> granicus.if.org Git - neomutt/commitdiff
mutt_str_startswith - main.c
authorPietro Cerutti <gahr@gahr.ch>
Fri, 9 Nov 2018 15:12:15 +0000 (15:12 +0000)
committerRichard Russon <rich@flatcap.org>
Wed, 14 Nov 2018 15:10:31 +0000 (15:10 +0000)
main.c

diff --git a/main.c b/main.c
index 344794bab838ff6180dd9da5f2fa67eb4e85a82a..80a386a29cdd1edf263cc54e93a27e6e9660182f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -992,7 +992,7 @@ int main(int argc, char *argv[], char *envp[])
         struct ListNode *np, *tmp;
         STAILQ_FOREACH_SAFE(np, &msg->env->userhdrs, entries, tmp)
         {
-          if (mutt_str_strncasecmp("X-Mutt-Resume-Draft:", np->data, 20) == 0)
+          if (mutt_str_startswith(np->data, "X-Mutt-Resume-Draft:", CASE_IGNORE))
           {
             if (ResumeEditedDraftFiles)
               cs_str_native_set(Config, "resume_draft_files", true, NULL);