+
+
+ /* TODO: note that item=NULL must not happen, but I found that
+ tinymail is issuing the message-sent signal twice, because
+ tny_camel_send_queue_update is called twice for each
+ message sent. This must be fixed in tinymail. Sergio */
+ if (item) {
+ /* Remove status info */
+ modest_tny_send_queue_info_free (item->data);
+ g_queue_delete_link (priv->queue, item);
+ priv->current = NULL;