Changeset 595:e0e773876fd4 for alias.c

Show
Ignore:
Timestamp:
1998-11-23 02:13:31 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

From Byrial:

I don't think that the match-all pattern modifier works as can be
expected from a logical point of view.

The attached patch will make it work as I expect it to work:

  • It works on all patterns which explicit or implicit use address lists: ~c, ~C, ~e, ~f, ~l, ~L, ~p, ~P, and ~t. (It didn't work with ~l before).
  • It works such that a modified pattern always match, unless there is at least one address in at least one of the referenced lists that it doesn't match.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • alias.c

    r557 r595  
    411411  return 0; 
    412412} 
    413  
    414 /* returns 1 if the list of address contains a known mailing list */ 
    415 int mutt_is_list_recipient (ADDRESS *a) 
    416 { 
    417   for (; a; a = a->next) 
    418     if (mutt_is_mail_list (a)) 
    419       return 1; 
    420   return 0; 
    421 }