aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-12 04:18:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-12 04:18:56 +0800
commit21ab38160098c3e35c54667ed8fe86903cc059e0 (patch)
tree37bea4d1ab1da6b7cb3d44c33ba100e7c6c11b44 /mail/mail-ops.c
parentec3ec5b6933aaee3691b27afef85f1ce6538fe70 (diff)
downloadgsoc2013-evolution-21ab38160098c3e35c54667ed8fe86903cc059e0.tar
gsoc2013-evolution-21ab38160098c3e35c54667ed8fe86903cc059e0.tar.gz
gsoc2013-evolution-21ab38160098c3e35c54667ed8fe86903cc059e0.tar.bz2
gsoc2013-evolution-21ab38160098c3e35c54667ed8fe86903cc059e0.tar.lz
gsoc2013-evolution-21ab38160098c3e35c54667ed8fe86903cc059e0.tar.xz
gsoc2013-evolution-21ab38160098c3e35c54667ed8fe86903cc059e0.tar.zst
gsoc2013-evolution-21ab38160098c3e35c54667ed8fe86903cc059e0.zip
Remove our X-Evolution header before we send. Also don't send messages
2001-03-10 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (send_queue_send): Remove our X-Evolution header before we send. Also don't send messages that are marked for deletion. svn path=/trunk/; revision=8630
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 8766339c6d..49f39e6b0b 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -633,6 +633,10 @@ send_queue_send(struct _mail_msg *mm)
report_status (m, CAMEL_FILTER_STATUS_START, pc, "Sending message %d of %d", i+1, uids->len);
+ info = camel_folder_get_message_info (m->queue, uids->pdata[i]);
+ if (info && info->flags & CAMEL_MESSAGE_DELETED)
+ continue;
+
message = camel_folder_get_message (m->queue, uids->pdata[i], &mm->ex);
if (camel_exception_is_set (&mm->ex))
break;