"x-uuencoded",
};
+rx_t *SpamList = NULL, *NoSpamList = NULL;
+
@package Mime {
/*
** .pp
** separator.
*/
string_t spam_separator = m_strdup(",");
+
+ void spam(rx_t rx, const string_t tpl) {
+ rx_set_template(rx, tpl);
+ rx_list_add2(&SpamList, &rx);
+ rx_list_remove(&NoSpamList, rx);
+ RETURN();
+ };
+
+ void nospam(rx_t rx) {
+ if (!m_strcmp(rx->pattern, "*")) {
+ rx_list_wipe(&SpamList);
+ rx_list_wipe(&NoSpamList);
+ rx_delete(&rx);
+ } else {
+ rx_list_remove(&SpamList, rx);
+ rx_list_add2(&NoSpamList, &rx);
+ }
+ RETURN();
+ };
};
/****************************************************************************/