int mutt_date_check_month(const char *s)
{
for (int i = 0; i < mutt_array_size(Months); i++)
- if (mutt_str_strncasecmp(s, Months[i], 3) == 0)
+ if (mutt_str_startswith(s, Months[i], CASE_IGNORE))
return i;
return -1; /* error */
return false;
for (int i = 0; i < mutt_array_size(Weekdays); i++)
- if (mutt_str_strncasecmp(s, Weekdays[i], 3) == 0)
+ if (mutt_str_startswith(s, Weekdays[i], CASE_IGNORE))
return true;
return false;