diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-06-16 00:22:10 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-06-16 00:22:10 +0000 |
commit | 3fbf23455f182c757e22ceca4d438215b5929b26 (patch) | |
tree | 7092d75fb3084b5ddcbb69b05f2b2fef1efec0e0 /addrbook.c | |
parent | a07d9f79f6a533ec83d64dda1c824e3a81c2d493 (diff) |
Including Vikas' search code for the "attach message" menu.
Diffstat (limited to 'addrbook.c')
-rw-r--r-- | addrbook.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -68,17 +68,12 @@ alias_format_str (char *dest, size_t destlen, char op, const char *src, int alias_search (MUTTMENU *m, regex_t *re, int n) { - int i, match = 0; char s[LONG_STRING]; int slen = sizeof(s); - for (i=0; i < m->max; i++) - { - mutt_FormatString (s, slen, NONULL (AliasFmt), alias_format_str, - (unsigned long) ((ALIAS **) m->data)[n], 0); - if ((match = regexec (re, s, 0, NULL, 0))) return match; - } - return (0); + mutt_FormatString (s, slen, NONULL (AliasFmt), alias_format_str, + (unsigned long) ((ALIAS **) m->data)[n], 0); + return regexec (re, s, 0, NULL, 0); } |