From 4ed5b83f1b75ca2c006f9c61eaea1693db1d00be Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 21 May 2010 07:05:45 +0000 Subject: fixed a bug that MIME flag was not set to filtered sent messages. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2544 ee746299-78ed-0310-b773-934348b2243d --- libsylph/filter.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libsylph') 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); -- cgit v1.2.3