aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/imap.c3
-rw-r--r--libsylph/mh.c6
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); \