Changeset 2340
- Timestamp:
- 07/02/07 12:32:10
- Files:
-
- trunk/ChangeLog (modified) (2 diffs)
- trunk/libtinymail-camel/tny-camel-folder.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-transport-account.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r2339 r2340 2 2 3 3 * libtinymail-maemo/tny-maemo-conic-device.c: 4 (tny_maemo_conic_device_connect): When using scratchbox, show an OK/Cancel dialog5 and write a fake connection name to the text file, to simulate what libconic does on6 t he device.7 (on_dummy_connection_check): Interpret 'none' in the text file as meaning no connection.8 This leaves an empty file as defaulting to a meaning of connection debugid0.9 (tny_maemo_conic_device_get_current_iap_id): Return NULL if the iap is 'none', when in10 scratchbox.4 (tny_maemo_conic_device_connect): When using scratchbox, show an 5 OK/Cancel dialog and write a fake connection name to the text file, 6 to simulate what libconic does on the device. 7 (on_dummy_connection_check): Interpret 'none' in the text file as 8 meaning no connection. This leaves an empty file as defaulting to 9 a meaning of connection debugid0. (tny_maemo_conic_device_get_ 10 current_iap_id): Return NULL if the iap is 'none', when in scratchbox. 11 11 12 12 2007-07-02 Philip Van Hoof <pvanhoof@gnome.org> … … 14 14 * Fallback for BINARY 15 15 * Fallback for UIDPLUS 16 * Added a check for the session in TnyCamelTransportAccount 16 17 17 18 2007-07-01 Philip Van Hoof <pvanhoof@gnome.org> trunk/libtinymail-camel/tny-camel-folder.c
r2333 r2340 2562 2562 camel_folder_transfer_messages_to (cfol_src, uids, cfol_dst, 2563 2563 &transferred_uids, delete_originals, &ex); 2564 if (delete_originals && uids) { 2564 2565 if (uids) { 2565 2566 int i; 2566 for (i = 0; i < uids->len; i++) 2567 camel_folder_set_message_flags (cfol_src, uids->pdata[i], 2568 CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); 2567 for (i = 0; i < uids->len; i++) { 2568 2569 guint32 flgs = camel_folder_get_message_flags (cfol_src, 2570 camel_folder_set_message_flags (cfol_dst, uids->pdata[i], 2571 CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); 2572 2573 if (delete_originals) 2574 camel_folder_set_message_flags (cfol_src, uids->pdata[i], 2575 CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); 2576 } 2569 2577 } 2570 2578 camel_folder_thaw (cfol_src); trunk/libtinymail-camel/tny-camel-transport-account.c
r2311 r2340 67 67 g_static_rec_mutex_lock (apriv->service_lock); 68 68 69 if (!apriv->service && reservice && apriv->url_string) 70 { 71 if (apriv->service && CAMEL_IS_SERVICE (apriv->service)) 72 { 73 camel_object_unref (CAMEL_OBJECT (apriv->service)); 74 apriv->service = NULL; 75 } 76 77 if (camel_exception_is_set (apriv->ex)) 78 camel_exception_clear (apriv->ex); 79 80 apriv->service = camel_session_get_service 81 ((CamelSession*) apriv->session, apriv->url_string, 82 apriv->type, apriv->ex); 83 84 if (apriv->service && !camel_exception_is_set (apriv->ex)) 85 { 86 apriv->service->data = self; 87 apriv->service->connecting = (con_op) NULL; 88 apriv->service->disconnecting = (con_op) NULL; 89 apriv->service->reconnecter = (con_op) NULL; 90 apriv->service->reconnection = (con_op) NULL; 91 92 } else if (camel_exception_is_set (apriv->ex) && apriv->service) 93 { 94 g_warning ("Must cleanup service pointer\n"); 95 apriv->service = NULL; 69 if (!apriv->session && reservice && apriv->url_string) 70 { 71 if (!apriv->service && reservice && apriv->url_string) 72 { 73 if (apriv->service && CAMEL_IS_SERVICE (apriv->service)) 74 { 75 camel_object_unref (CAMEL_OBJECT (apriv->service)); 76 apriv->service = NULL; 77 } 78 79 if (camel_exception_is_set (apriv->ex)) 80 camel_exception_clear (apriv->ex); 81 82 apriv->service = camel_session_get_service 83 ((CamelSession*) apriv->session, apriv->url_string, 84 apriv->type, apriv->ex); 85 86 if (apriv->service && !camel_exception_is_set (apriv->ex)) 87 { 88 apriv->service->data = self; 89 apriv->service->connecting = (con_op) NULL; 90 apriv->service->disconnecting = (con_op) NULL; 91 apriv->service->reconnecter = (con_op) NULL; 92 apriv->service->reconnection = (con_op) NULL; 93 94 } else if (camel_exception_is_set (apriv->ex) && apriv->service) 95 { 96 g_warning ("Must cleanup service pointer\n"); 97 apriv->service = NULL; 98 } 96 99 } 97 98 100 } else { 99 101 camel_exception_set (apriv->ex, CAMEL_EXCEPTION_SYSTEM,
