aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-11-12 13:54:07 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-11-12 13:54:07 +0800
commitd25f16e9ea91dc50cc8477576c6a7def086d34c7 (patch)
treeafd1003f6acc2573c505d25b74d3e1f3c8b1691c /mail/mail-ops.c
parent8e212824134c1740d05fb36799f78716c5059801 (diff)
downloadgsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.tar
gsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.tar.gz
gsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.tar.bz2
gsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.tar.lz
gsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.tar.xz
gsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.tar.zst
gsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.zip
** Merge in notzed-messageinfo-branch.
2004-11-12 Not Zed <NotZed@Ximian.com> ** Merge in notzed-messageinfo-branch. svn path=/trunk/; revision=27899
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index c4cb73e908..1d7c7b710d 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -527,8 +527,8 @@ mail_send_message (CamelMimeMessage *message, const char *destination,
}
/* post-process */
- info = camel_message_info_new ();
- info->flags = CAMEL_MESSAGE_SEEN;
+ info = camel_message_info_new(NULL);
+ camel_message_info_set_flags(info, CAMEL_MESSAGE_SEEN, ~0);
if (sent_folder_uri) {
folder = mail_tool_uri_to_folder (sent_folder_uri, 0, ex);
@@ -658,10 +658,11 @@ send_queue_send(struct _mail_msg *mm)
CamelMessageInfo *info;
info = camel_folder_get_message_info (m->queue, uids->pdata[i]);
- if (info && info->flags & CAMEL_MESSAGE_DELETED)
- continue;
-
- send_uids->pdata[j++] = uids->pdata[i];
+ if (info) {
+ if ((camel_message_info_flags(info) & CAMEL_MESSAGE_DELETED) == 0)
+ send_uids->pdata[j++] = uids->pdata[i];
+ camel_folder_free_message_info(m->queue, info);
+ }
}
send_uids->len = j;