aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-03-15 05:44:32 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-03-15 05:44:32 +0000
commitfeca1768884d6656a41bbc5b88a813b165db7b87 (patch)
treea3345b6f0891b5461ee95b8a740c35198c24992b /libsylph
parent590fb309cf9e7f617e829c48eba0a85e65187753 (diff)
apply flag changes in IMAP automatic filtering.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1569 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/filter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsylph/filter.c b/libsylph/filter.c
index c7f60f29..47b60aab 100644
--- a/libsylph/filter.c
+++ b/libsylph/filter.c
@@ -216,8 +216,13 @@ gint filter_action_exec(FilterRule *rule, MsgInfo *msginfo, const gchar *file,
copy_to_self = TRUE;
else {
if (action->type == FLT_ACTION_COPY) {
+ MsgFlags save_flags;
+
+ save_flags = msginfo->flags;
+ msginfo->flags = fltinfo->flags;
val = folder_item_copy_msg
(dest_folder, msginfo);
+ msginfo->flags = save_flags;
if (val == -1)
return -1;
}