aboutsummaryrefslogtreecommitdiff
path: root/libsylph/mh.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-02-06 04:21:48 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-02-06 04:21:48 +0000
commit6e9b0a7553815ae4520d034613043c88047c03fc (patch)
treef1b272d39b78ef99f8fbeca043cc44be23a8c66d /libsylph/mh.c
parent4c9e3d272356fbf9777115f25eabd01932e7dbc6 (diff)
don't reset unread flag when moving/copying messages into trash.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@978 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/mh.c')
-rw-r--r--libsylph/mh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libsylph/mh.c b/libsylph/mh.c
index c66fd541..aff7c2ee 100644
--- a/libsylph/mh.c
+++ b/libsylph/mh.c
@@ -356,10 +356,12 @@ static gchar *mh_get_new_msg_filename(FolderItem *dest)
newmsginfo.flags = fl; \
if (dest->stype == F_OUTBOX || \
dest->stype == F_QUEUE || \
- dest->stype == F_DRAFT || \
- dest->stype == F_TRASH) \
+ dest->stype == F_DRAFT) { \
MSG_UNSET_PERM_FLAGS(newmsginfo.flags, \
MSG_NEW|MSG_UNREAD|MSG_DELETED); \
+ } else if (dest->stype == F_TRASH) { \
+ MSG_UNSET_PERM_FLAGS(newmsginfo.flags, MSG_DELETED); \
+ } \
\
if (fp) \
procmsg_write_flags(&newmsginfo, fp); \