STAILQ_INIT(h);
}
+/**
+ * mutt_stailq_match - Is the string in the list
+ * @return true if the header contained in "s" is in list "h"
+ */
static inline bool mutt_stailq_match(const char *s, struct STailQHead *h)
{
struct STailQNode *np;
void mutt_free_rx_list(struct RxList **list);
void mutt_free_replace_list(struct ReplaceList **list);
int mutt_matches_ignore(const char *s);
-bool mutt_matches_list(const char *s, struct List *t);
/* add an element to a list */
struct List *mutt_add_list(struct List *head, const char *data);
FREE(h);
}
-/**
- * mutt_matches_list - Is the string in the list
- * @retval true if the header contained in "s" is in list "t"
- */
-bool mutt_matches_list(const char *s, struct List *t)
-{
- for (; t; t = t->next)
- {
- if ((mutt_strncasecmp(s, t->data, mutt_strlen(t->data)) == 0) || *t->data == '*')
- return true;
- }
- return false;
-}
-
/**
* mutt_matches_ignore - Does the string match the ignore list
*
- * checks Ignore and UnIgnore using mutt_matches_list
+ * checks Ignore and UnIgnore using mutt_stailq_match
*/
int mutt_matches_ignore(const char *s)
{