From a55624e61426750cf33f0c1c49213caf85c3b704 Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 12 Aug 2009 05:48:10 +0000 Subject: emit remove-msg signal after add-msg for speedup. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2209 ee746299-78ed-0310-b773-934348b2243d --- libsylph/mh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libsylph') 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); -- cgit v1.2.3