summaryrefslogtreecommitdiffstats
path: root/mutt.h
diff options
context:
space:
mode:
authorDavid Champion <dgc@bikeshed.us>2017-01-23 19:01:36 -0800
committerDavid Champion <dgc@bikeshed.us>2017-01-23 19:01:36 -0800
commit149ed356ffaad6ebf3a0d2d55c96e3414398b9eb (patch)
tree6d73ae678bb8e4ef9ce5f82e47b55bf4b8650bc1 /mutt.h
parent5e3ac08d71a46c7056c7c480941df48b5c386b89 (diff)
Abstract the SPAM_LIST as a generic REPLACE_LIST
REPLACE_LIST can be used more generally as a list of pattern match-replace settings. SPAM_LIST was a special case of this, so spam handling has been been changed to use REPLACE_LIST instead, and SPAM_LIST was removed. A generic function for performing a REPLACE_LIST replacement has been added in mutt_apply_replace(). Commited by Kevin McCarthy with some buffer overflow fixes in mutt_apply_replace().
Diffstat (limited to 'mutt.h')
-rw-r--r--mutt.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/mutt.h b/mutt.h
index 23129ccb..035c8dfd 100644
--- a/mutt.h
+++ b/mutt.h
@@ -569,20 +569,20 @@ typedef struct rx_list_t
struct rx_list_t *next;
} RX_LIST;
-typedef struct spam_list_t
+typedef struct replace_list_t
{
REGEXP *rx;
int nmatch;
char *template;
- struct spam_list_t *next;
-} SPAM_LIST;
+ struct replace_list_t *next;
+} REPLACE_LIST;
#define mutt_new_list() safe_calloc (1, sizeof (LIST))
#define mutt_new_rx_list() safe_calloc (1, sizeof (RX_LIST))
-#define mutt_new_spam_list() safe_calloc (1, sizeof (SPAM_LIST))
+#define mutt_new_replace_list() safe_calloc (1, sizeof (REPLACE_LIST))
void mutt_free_list (LIST **);
void mutt_free_rx_list (RX_LIST **);
-void mutt_free_spam_list (SPAM_LIST **);
+void mutt_free_replace_list (REPLACE_LIST **);
LIST *mutt_copy_list (LIST *);
int mutt_matches_ignore (const char *, LIST *);