diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-02-06 04:21:48 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-02-06 04:21:48 +0000 |
commit | 6e9b0a7553815ae4520d034613043c88047c03fc (patch) | |
tree | f1b272d39b78ef99f8fbeca043cc44be23a8c66d /libsylph | |
parent | 4c9e3d272356fbf9777115f25eabd01932e7dbc6 (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')
-rw-r--r-- | libsylph/imap.c | 3 | ||||
-rw-r--r-- | libsylph/mh.c | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c index fd79454a..2d395044 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -1221,8 +1221,7 @@ static gint imap_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list, if (dest->stype == F_OUTBOX || dest->stype == F_QUEUE || - dest->stype == F_DRAFT || - dest->stype == F_TRASH) + dest->stype == F_DRAFT) iflags |= IMAP_FLAG_SEEN; g_get_current_time(&tv_cur); 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); \ |