-#if 0
- item = priv->current;
- g_assert(item != NULL);
- info = priv->current->data;
-#else
- /* TODO: Why do we get the msg and its header separately? The docs
- * don't really tell. */
- g_assert(header == tny_msg_get_header (msg)); // ????
- item = modest_tny_send_queue_lookup_info (MODEST_TNY_SEND_QUEUE (self), tny_header_get_message_id (header));
+/* #if 0 */
+/* item = priv->current; */
+/* g_assert(item != NULL); */
+/* info = priv->current->data; */
+/* #else */
+/* /\* TODO: Why do we get the msg and its header separately? The docs */
+/* * don't really tell. *\/ */
+/* g_assert(header == tny_msg_get_header (msg)); // ???? */
+ msg_header = tny_msg_get_header (msg);
+ item = modest_tny_send_queue_lookup_info (MODEST_TNY_SEND_QUEUE (self),
+ tny_header_get_message_id (msg_header));
+ g_object_unref (msg_header);