X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mymail.git;a=blobdiff_plain;f=mymail.c;h=ffc562145f6ef7bf69bf4d8cdc4b50610987481b;hp=dd84dbe4e1bcde6506dda4ea17710cc3b7b9c94b;hb=c2a75b190fced9a626a70fb2886889ce0e231af7;hpb=875659a04836f530f81214fd16db6afbf6e16c1f diff --git a/mymail.c b/mymail.c index dd84dbe..ffc5621 100644 --- a/mymail.c +++ b/mymail.c @@ -117,7 +117,7 @@ static struct parsable_field fields_to_parse[] = { { ID_FROM, REG_ICASE, - "^\\(from:\\|reply-to:\\|sender:\\|return-path:\\)", + "^\\(from\\|reply-to\\|sender\\|return-path\\): ", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }, @@ -292,7 +292,9 @@ int mbox_line_match_search(struct search_condition *condition, (condition->field_id == ID_FROM && mbox_id == ID_LEADING_LINE) ) + && + regexec(&condition->regexp, mbox_value, 0, 0, 0) == 0; } }