exit SPAM_LIST, just extend rx_t with the needed informations.
[apps/madmutt.git] / lib-lib / rx.h
index 14709d1..a827b82 100644 (file)
@@ -43,9 +43,13 @@ typedef struct rx_t {
     char *pattern;                /* printable version */
     regex_t *rx;                  /* compiled expression */
     int not;                      /* do not match */
+
+    int nmatch;                   /* nb matches */
+    char *template;               /* out template */
 } rx_t;
 
-rx_t* rx_compile (const char*, int);
+rx_t* rx_compile(const char*, int);
+void rx_set_template(rx_t *, const char*);
 void rx_delete(rx_t **);
 DO_SLIST(rx_t, rx, rx_delete);