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

index 23c4cc974b1fb1dfea75bf11ea573723946fe882..dda72574cb7a1c993bb2f02d89146ec08b51753f 100644 (file)
--- a/pop/pop.c
+++ b/pop/pop.c
@@ -1220,10 +1220,10 @@ enum MailboxType pop_path_probe(const char *path, const struct stat *st)
   if (!path)
     return MUTT_UNKNOWN;
 
-  if (mutt_str_strncasecmp(path, "pop://", 6) == 0)
+  if (mutt_str_startswith(path, "pop://", CASE_IGNORE))
     return MUTT_POP;
 
-  if (mutt_str_strncasecmp(path, "pops://", 7) == 0)
+  if (mutt_str_startswith(path, "pops://", CASE_IGNORE))
     return MUTT_POP;
 
   return MUTT_UNKNOWN;