#include "util.h"
#include "clists.h"
+#include "rfc2047.h"
static int check_interval = 30;
static int force_refresh;
}
static void
-add_snippet(char **ppos, char *term, unsigned char *add)
+do_add_snippet(char **ppos, char *term, unsigned char *add)
{
char *pos = *ppos;
int space = 1;
*pos = 0;
}
+static void
+add_snippet(char **ppos, char *term, unsigned char *add)
+{
+#if 1
+ char *buf = xmalloc(strlen(add) + 1);
+ strcpy(buf, add);
+ rfc2047_decode(&buf);
+ do_add_snippet(ppos, term, buf);
+ free(buf);
+#else
+ do_add_snippet(ppos, term, add);
+#endif
+}
+
static void
prepare_snippet(struct mbox *b, char *sender, char *subject)
{
while (optind < argc)
add_pattern(argv[optind++]);
+ rfc2047_init();
term_init();
scan_and_redraw();
next_active(0, 1);