Changeset 3828
- Timestamp:
- 11/26/08 15:53:00
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
releases/modest/diablo-pe2/ChangeLog
r3813 r3828 1 2008-11-25 Jose Dapena Paz <jdapena@igalia.com> 2 3 * (Backported from trunk) Bugfix when fetching parts and messages 4 1 5 2008-11-19 Sergio Villar Senin <svillar@igalia.com> 2 6 releases/modest/diablo-pe2/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c
r3827 r3828 4563 4563 } 4564 4564 4565 static GStatic Mutex gmsgstore_lock = G_STATIC_MUTEX_INIT;4565 static GStaticRecMutex gmsgstore_lock = G_STATIC_REC_MUTEX_INIT; 4566 4566 4567 4567 static gboolean … … 4571 4571 gboolean retval = TRUE; 4572 4572 4573 if (g_static_ mutex_trylock (&gmsgstore_lock))4573 if (g_static_rec_mutex_trylock (&gmsgstore_lock)) 4574 4574 { 4575 4575 imap_folder->gmsgstore_ticks--; … … 4588 4588 retval = FALSE; 4589 4589 } 4590 g_static_ mutex_unlock (&gmsgstore_lock);4590 g_static_rec_mutex_unlock (&gmsgstore_lock); 4591 4591 } else 4592 4592 retval = TRUE; … … 4603 4603 4604 4604 4605 g_static_ mutex_lock (&gmsgstore_lock); /* A */4605 g_static_rec_mutex_lock (&gmsgstore_lock); /* A */ 4606 4606 4607 4607 if (imap_folder->gmsgstore) { … … 4621 4621 " and can't go online to fetch it: %s"), 4622 4622 camel_exception_get_description (&tex)); 4623 g_static_ mutex_unlock (&gmsgstore_lock);4623 g_static_rec_mutex_unlock (&gmsgstore_lock); 4624 4624 camel_exception_clear (&tex); 4625 4625 return NULL; … … 4640 4640 g_critical ("Severe interal error while trying to construct a new connection\n"); 4641 4641 camel_object_unref (store); 4642 g_static_ mutex_unlock (&gmsgstore_lock);4642 g_static_rec_mutex_unlock (&gmsgstore_lock); 4643 4643 return NULL; 4644 4644 } … … 4662 4662 4663 4663 CAMEL_IMAP_FOLDER_REC_UNLOCK (imap_folder, cache_lock); 4664 g_static_ mutex_unlock (&gmsgstore_lock);4664 g_static_rec_mutex_unlock (&gmsgstore_lock); 4665 4665 return NULL; 4666 4666 } … … 4696 4696 } 4697 4697 4698 g_static_ mutex_unlock (&gmsgstore_lock); /* A */4698 g_static_rec_mutex_unlock (&gmsgstore_lock); /* A */ 4699 4699 } 4700 4700 … … 4703 4703 stop_gmsgstore_from_idle (CamelImapFolder *imap_folder) 4704 4704 { 4705 g_static_ mutex_lock (&gmsgstore_lock); /* A */4705 g_static_rec_mutex_lock (&gmsgstore_lock); /* A */ 4706 4706 if (imap_folder->gmsgstore) { 4707 4707 imap_folder->gmsgstore->clean_exit = FALSE; … … 4711 4711 check_gmsgstore_die, imap_folder); 4712 4712 } 4713 g_static_ mutex_unlock (&gmsgstore_lock); /* A */4713 g_static_rec_mutex_unlock (&gmsgstore_lock); /* A */ 4714 4714 } 4715 4715 … … 4784 4784 if (noop_response) 4785 4785 camel_imap_response_free (store, noop_response); 4786 else 4786 else { 4787 stop_gmsgstore (imap_folder, ctchecker, FALSE); 4787 4788 return NULL; 4788 4789 } 4790 4789 4791 camel_operation_start (NULL, _("Retrieving converted message part")); 4790 4792 … … 5042 5044 if (noop_response) 5043 5045 camel_imap_response_free (store, noop_response); 5044 else 5046 else { 5047 stop_gmsgstore (imap_folder, ctchecker, FALSE); 5045 5048 return NULL; 5049 } 5046 5050 5047 5051 camel_operation_start (NULL, _("Retrieving message part")); … … 5475 5479 if (noop_response) 5476 5480 camel_imap_response_free (store, noop_response); 5477 else 5481 else { 5482 stop_gmsgstore (imap_folder, ctchecker, FALSE); 5478 5483 return NULL; 5479 5484 } 5480 5485 5481 5486 camel_operation_start (NULL, _("Retrieving message bodystructure")); … … 5594 5599 else { 5595 5600 g_message ("%s: NO NOOP RESPONSE -> EXIT", __FUNCTION__); 5601 stop_gmsgstore (imap_folder, ctchecker, FALSE); 5596 5602 return NULL; 5597 5603 } 5598 5604 g_message ("%s: END NOOP IMAP COMMAND", __FUNCTION__); 5599 5600 5605 5601 5606 camel_operation_start (NULL, _("Retrieving message"));
