#include "scoring.h"
#include "prefs_folder_item.h"
#include "filtering.h"
+#include "string_match.h"
#define STATUSBAR_PUSH(mainwin, str) \
{ \
GtkCTreeNode *node,
gpointer data);
+void summary_simplify_subject(SummaryView *summaryview, gchar * rexp,
+ GSList * mlist);
+
void summary_processing(SummaryView *summaryview, GSList * mlist);
static void summary_filter_func (GtkCTree *ctree,
GtkCTreeNode *node,
&forwardedxpm, &forwardedxpmmask);
stock_pixmap_gdk(summaryview->ctree, STOCK_PIXMAP_CLIP,
&clipxpm, &clipxpmmask);
+ stock_pixmap_gdk(summaryview->ctree, STOCK_PIXMAP_LOCKED,
+ &lockedxpm, &lockedxpmmask);
if (!small_style) {
small_style = gtk_style_copy
mlist = not_killed;
}
+ if (item->prefs->enable_simplify_subject
+ && item->prefs->simplify_subject_regexp != NULL
+ && strlen(item->prefs->simplify_subject_regexp) != 0) {
+ summary_simplify_subject(summaryview,
+ item->prefs->simplify_subject_regexp,
+ mlist);
+ }
+
STATUSBAR_POP(summaryview->mainwin);
/* set ctree and hash table from the msginfo list
}
}
+void summary_simplify_subject(SummaryView *summaryview, gchar * rexp,
+ GSList * mlist)
+{
+ GSList * cur;
+ for(cur = mlist ; cur != NULL ; cur = cur->next) {
+ MsgInfo * msginfo = (MsgInfo *) cur->data;
+ string_remove_all_matches(msginfo->subject, rexp, 0, 0);
+ }
+}
+
void summary_processing(SummaryView *summaryview, GSList * mlist)
{
GSList * processing_list;