aboutsummaryrefslogtreecommitdiff
path: root/libsylph/mh.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-08-12 05:48:10 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-08-12 05:48:10 +0000
commita55624e61426750cf33f0c1c49213caf85c3b704 (patch)
tree2bad0185684145040609ede87490a1f6ee2572bb /libsylph/mh.c
parent793ed5f674f642944b5c5f862e690f72999ca085 (diff)
emit remove-msg signal after add-msg for speedup.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2209 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/mh.c')
-rw-r--r--libsylph/mh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsylph/mh.c b/libsylph/mh.c
index ae5475ac..11099f76 100644
--- a/libsylph/mh.c
+++ b/libsylph/mh.c
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2009 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -554,7 +554,7 @@ static gint mh_do_move_msgs(Folder *folder, FolderItem *dest, GSList *msglist)
if (!destfile) break;
srcfile = procmsg_get_message_file(msginfo);
- g_signal_emit_by_name(syl_app_get(), "remove-msg", src, srcfile, msginfo->msgnum);
+ /* g_signal_emit_by_name(syl_app_get(), "remove-msg", src, srcfile, msginfo->msgnum); */
if (move_file(srcfile, destfile, FALSE) < 0) {
g_free(srcfile);
@@ -563,6 +563,7 @@ static gint mh_do_move_msgs(Folder *folder, FolderItem *dest, GSList *msglist)
}
g_signal_emit_by_name(syl_app_get(), "add-msg", dest, destfile, dest->last_num + 1);
+ g_signal_emit_by_name(syl_app_get(), "remove-msg", src, srcfile, msginfo->msgnum);
g_free(srcfile);
g_free(destfile);