Lines Matching defs:arg1
591 bool mail_search_arg_one_equals(const struct mail_search_arg *arg1,
594 if (arg1->type != arg2->type ||
595 arg1->match_not != arg2->match_not ||
596 arg1->fuzzy != arg2->fuzzy ||
597 arg1->value.search_flags != arg2->value.search_flags)
600 switch (arg1->type) {
603 return mail_search_arg_equals(arg1->value.subargs,
613 return array_cmp(&arg1->value.seqset, &arg2->value.seqset);
615 return array_cmp(&arg1->value.seqset, &arg2->value.seqset);
618 return arg1->value.flags == arg2->value.flags;
620 return strcasecmp(arg1->value.str, arg2->value.str) == 0;
625 return arg1->value.time == arg2->value.time &&
626 arg1->value.date_type == arg2->value.date_type;
630 return arg1->value.size == arg2->value.size;
635 if (strcasecmp(arg1->hdr_field_name, arg2->hdr_field_name) != 0)
648 return strcmp(arg1->value.str, arg2->value.str) == 0;
651 const struct mail_search_modseq *m1 = arg1->value.modseq;
658 if (arg1->value.thread_type != arg2->value.thread_type)
660 return mail_search_arg_equals(arg1->value.subargs,
663 return mail_search_mime_parts_equal(arg1->value.mime_part,
670 bool mail_search_arg_equals(const struct mail_search_arg *arg1,
673 while (arg1 != NULL && arg2 != NULL) {
674 if (!mail_search_arg_one_equals(arg1, arg2))
676 arg1 = arg1->next;
679 return arg1 == NULL && arg2 == NULL;