diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-05-21 07:05:45 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-05-21 07:05:45 +0000 |
commit | 4ed5b83f1b75ca2c006f9c61eaea1693db1d00be (patch) | |
tree | f10930e8b5dfdc73feb99dd0107bdb7c6e7212ba /libsylph | |
parent | c343158710432a88b53a747f1af1872ad2770483 (diff) |
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
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/filter.c | 7 |
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); |