aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/filter.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libsylph/filter.c b/libsylph/filter.c
index b17cc77f..124f741c 100644
--- a/libsylph/filter.c
+++ b/libsylph/filter.c
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2009 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2010 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -85,6 +85,11 @@ gint filter_apply(GSList *fltlist, const gchar *file, FilterInfo *fltinfo)
if (!msginfo) return 0;
msginfo->file_path = g_strdup(file);
+ /* inherit MIME flag */
+ fltinfo->flags.tmp_flags =
+ (fltinfo->flags.tmp_flags & ~MSG_CACHED_FLAG_MASK) |
+ (msginfo->flags.tmp_flags & MSG_CACHED_FLAG_MASK);
+
ret = filter_apply_msginfo(fltlist, msginfo, fltinfo);
procmsg_msginfo_free(msginfo);