projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a1b5c8
)
* Fixes NB#105808, properly wakeup suspended messages when clicking on send&receive
author
Sergio Villar Senin
<svillar@igalia.com>
Fri, 13 Mar 2009 11:48:45 +0000
(11:48 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Fri, 13 Mar 2009 11:48:45 +0000
(11:48 +0000)
pmo-trunk-r8008
src/modest-mail-operation.c
patch
|
blob
|
history
diff --git
a/src/modest-mail-operation.c
b/src/modest-mail-operation.c
index
cd899a5
..
c0e721c
100644
(file)
--- a/
src/modest-mail-operation.c
+++ b/
src/modest-mail-operation.c
@@
-1433,7
+1433,7
@@
update_account_send_mail (UpdateAccountInfo *info)
g_warning ("%s: could not get outbox", __FUNCTION__);
num_messages = 0;
}
g_warning ("%s: could not get outbox", __FUNCTION__);
num_messages = 0;
}
-
+
if (num_messages != 0) {
ModestMailOperation *mail_op;
/* Reenable suspended items */
if (num_messages != 0) {
ModestMailOperation *mail_op;
/* Reenable suspended items */
@@
-1441,9
+1441,8
@@
update_account_send_mail (UpdateAccountInfo *info)
modest_mail_operation_queue_add (modest_runtime_get_mail_operation_queue (),
mail_op);
modest_mail_operation_queue_wakeup (mail_op, MODEST_TNY_SEND_QUEUE (send_queue));
modest_mail_operation_queue_add (modest_runtime_get_mail_operation_queue (),
mail_op);
modest_mail_operation_queue_wakeup (mail_op, MODEST_TNY_SEND_QUEUE (send_queue));
-
+
/* Try to send */
/* Try to send */
- tny_camel_send_queue_flush (TNY_CAMEL_SEND_QUEUE (send_queue));
modest_tny_send_queue_set_requested_send_receive (MODEST_TNY_SEND_QUEUE (send_queue),
info->interactive);
}
modest_tny_send_queue_set_requested_send_receive (MODEST_TNY_SEND_QUEUE (send_queue),
info->interactive);
}
@@
-3438,6
+3437,7
@@
queue_wakeup_callback (ModestTnySendQueue *queue,
priv = MODEST_MAIL_OPERATION_GET_PRIVATE (mail_op);
priv->status = MODEST_MAIL_OPERATION_STATUS_SUCCESS;
priv = MODEST_MAIL_OPERATION_GET_PRIVATE (mail_op);
priv->status = MODEST_MAIL_OPERATION_STATUS_SUCCESS;
+ tny_camel_send_queue_flush (TNY_CAMEL_SEND_QUEUE (queue));
/* Notify end */
modest_mail_operation_notify_end (mail_op);
/* Notify end */
modest_mail_operation_notify_end (mail_op);