#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
+#include "mutt_regex.h"
#include "mapping.h"
#include "remailer.h"
static REMAILER **mix_type2_list (size_t *l);
static REMAILER *mix_new_remailer (void);
static const char *mix_format_caps (REMAILER *r);
+static int mix_chain_add (MIXCHAIN *chain, const char *s, REMAILER **type2_list);
static int mix_get_caps (const char *capstr);
+static int mix_search (MUTTMENU *, regex_t *, int);
static void mix_add_entry (REMAILER ***, REMAILER *, size_t *, size_t *);
-static int mix_chain_add (MIXCHAIN *chain, const char *s, REMAILER **type2_list);
static void mix_entry (char *b, size_t blen, MUTTMENU *menu, int num);
static void mix_free_remailer (REMAILER **r);
static void mix_free_type2_list (REMAILER ***ttlp);
NONULL (type2_list[num]->addr));
}
+static int mix_search (MUTTMENU *m, regex_t *re, int n)
+{
+ char buf[LONG_STRING];
+
+ mix_entry (buf, sizeof (buf), m, n);
+ return (regexec (re, buf, 0, NULL, 0));
+}
+
static int mix_chain_add (MIXCHAIN *chain, const char *s,
REMAILER **type2_list)
{
menu->menu = MENU_MIX;
menu->max = ttll;
menu->make_entry = mix_entry;
+ menu->search = mix_search;
menu->tag = NULL;
menu->title = _("Select a remailer chain.");
menu->data = type2_list;