summaryrefslogtreecommitdiff
path: root/camel/camel-disco-folder.c
Commit message (Collapse)AuthorAgeFilesLines
* Prefer G_N_ELEMENTS over sizeof calculations.Matthew Barnes2009-10-261-1/+1
|
* Fix excessive whitespace.Matthew Barnes2009-07-121-3/+0
|
* Fix compiler warnings in camel.Matthew Barnes2009-06-011-2/+2
|
* Prefer GLib basic types over C types.Matthew Barnes2009-05-281-20/+20
|
* Remove trailing whitespace, again.Matthew Barnes2009-05-271-4/+4
|
* Fix guint/int issues.Srinivasa Ragavan2008-07-281-1/+2
| | | | | | | | | | | 2008-07-28 Srinivasa Ragavan <sragavan@novell.com> * camel/camel-disco-folder.c: Fix guint/int issues. * camel/camel-folder-summary.c: * camel/camel-folder-summary.h: * camel/providers/imap/camel-imap-folder.c: svn path=/trunk/; revision=9207
* fixed copyright noticesJeffrey Stedfast2008-06-201-1/+1
| | | | svn path=/trunk/; revision=9009
* ** Fixes part of bug #531591Matthew Barnes2008-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-19 Matthew Barnes <mbarnes@redhat.com> ** Fixes part of bug #531591 * camel/camel-disco-diary.c: * camel/camel-disco-folder.c: * camel/camel-disco-store.c: * camel/camel-folder-summary.c: * camel/camel-folder.c: * camel/camel-gpg-context.c: * camel/camel-object.c: * camel/camel-offline-journal.c: * camel/camel-provider.c: * camel/camel-sasl-kerberos4.c: * camel/camel-service.c: * camel/camel-session.c: * camel/camel-smime-context.c: * camel/camel-store.c: * camel/camel-url.c: * camel/camel-vee-folder.c: * camel/providers/groupwise/camel-groupwise-folder.c * camel/providers/groupwise/camel-groupwise-store.c: * camel/providers/groupwise/camel-groupwise-utils.c: * camel/providers/imap/camel-imap-folder.c: * camel/providers/imap/camel-imap-store.c: * camel/providers/imap4/camel-imap4-engine.c: * camel/providers/imap4/camel-imap4-folder.c: * camel/providers/imap4/camel-imap4-store.c: * camel/providers/imap4/camel-imap4-summary.c: * camel/providers/local/camel-local-provider.c: * camel/providers/local/camel-local-store.c: * camel/providers/local/camel-maildir-store.c: * camel/providers/local/camel-mbox-store.c: * camel/providers/local/camel-mh-store.c: * camel/providers/local/camel-spool-store.c: * camel/providers/local/camel-spool-summary.c: * camel/providers/pop3/camel-pop3-store.c: Don't use TeX-style quotes in user-visible messages. svn path=/trunk/; revision=8816
* reverted rev 8210 which just changed whitespace indentJeffrey Stedfast2008-05-071-4/+4
| | | | svn path=/trunk/; revision=8759
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-141-4/+4
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=8210
* Fix FSF address (Tobias Mueller, #470445)Ross Burton2007-08-281-1/+1
| | | | svn path=/trunk/; revision=7999
* ** Fixes bug #418852Matthew Barnes2007-04-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-04-27 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #418852 * Note, these changes touch almost every file in Camel. * Replace C++ declaration guards (extern "C" { ... }) with G_BEGIN_DECLS / G_END_DECLS, or add them to headers with no declaration guards at all. * Use GLib's i18n support instead of Camel's (now deprecated). * Use quotes and brackets consistently in #include directives. * Remove CAMEL_EXPLICIT_TRANSLATION_DOMAIN from Makefiles. * Resurrect Camel's API documentation. * Fix documentation warnings identified by Gtk-Doc. * camel.h: Expose Camel's entire "core" (non-provider) API. * camel-i18n.h: Deprecate this API. Use GLib's i18n support instead. * camel-folder.h (camel_folder_get_message_flags): * camel-folder.h (camel_folder_set_message_flags): * camel-folder.h (camel_folder_get_message_user_flag): * camel-folder.h (camel_folder_set_message_user_flag): * camel-folder.h (camel_folder_get_message_user_tag): * camel-folder.h (camel_folder_set_message_user_tag): * camel-folder.h (camel_folder_get_unread_message_count): * camel-folder.h (camel_folder_ref_message_info): Add deprecation guards around these function declarations. svn path=/trunk/; revision=7720
* Modify License to LGPLHarish Krishnaswamy2005-08-311-3/+3
|
* ** Merge in notzed-messageinfo-branch, fix some minor conflicts.Not Zed2004-11-121-2/+2
| | | | | | 2004-11-12 Not Zed <NotZed@Ximian.com> ** Merge in notzed-messageinfo-branch, fix some minor conflicts.
* Merged notzed-eplugin-2-branch to head.Michael Zucci2004-09-201-0/+1
|
* check for NULL implementation before calling it. (disco_sync): similar.Not Zed2004-05-181-6/+23
| | | | | | | | 2004-05-18 Not Zed <NotZed@Ximian.com> * camel-disco-folder.c (disco_expunge_uids): check for NULL implementation before calling it. (disco_sync): similar. Fixes crash #58278.
* implement dummy virtual method.Not Zed2004-04-211-0/+8
| | | | | | | | | | 2004-04-21 Not Zed <NotZed@Ximian.com> * camel-disco-folder.c (disco_refresh_info_online): implement dummy virtual method. * providers/nntp/camel-nntp-folder.c (nntp_folder_refresh_info_online): implement. Fixes #57280.
* fix removal of journal file, and remove the cmeta state file too.Not Zed2004-01-091-1/+91
| | | | | | | | | | | | | | | | | | | | | | | 2004-01-09 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (imap_forget_folder): fix removal of journal file, and remove the cmeta state file too. * providers/imap/camel-imap-folder.c (imap_getv): count up so we call parent class if we missed any, rather than only if we didn't miss any. (imap_rename): rename the object state file. (camel_imap_folder_new): set the object state file for persistent properties. * camel-disco-folder.c (disco_getv): support (PERSISTENT_)PROPERTIES & OFFLINE_SYNC. (disco_setv): implement OFFLINE_SYNC. (camel_disco_folder_get_type): setup disco properties list. (cdf_folder_changed): honour the offline_sync setting on the current folder. (disco_sync): save object state. (disco_setv): save object state if it changed.
* Added "offline_sync" option, which lets you synchronise all mail to localNot Zed2003-09-221-2/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-09-22 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-provider.c: Added "offline_sync" option, which lets you synchronise all mail to local storage automagically. * camel-disco-folder.c (cdf_folder_changed): hook onto the folder changed single, for all new messages, check that they are online using another thread, if the offline_sync option has been enabled for this store. 2003-09-21 Not Zed <NotZed@Ximian.com> * camel-session.c (session_thread_destroy): call proper entry point for freeing the message. 2003-09-18 Not Zed <NotZed@Ximian.com> * camel-folder.c (filter_filter): register the filtering process for progress, and do progress of the filtering process. 2003-09-17 Not Zed <NotZed@Ximian.com> * camel.c (camel_init): init camel operation. * camel-operation.c (camel_operation_reset): removed, not used, not worth it. (camel_operation_mute): new method to stop all status updates permanently. (*): Changed to use thread specific data and a list rather than a hashtable. (cancel_thread): removed. (camel_operation_register): return the previously registered op.
* removed. (imap_store_refresh_folders): Copy the folders first, thenNot Zed2002-05-151-1/+13
| | | | | | | | | | | | | | | | | 2002-05-15 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (refresh_folder_info): removed. (imap_store_refresh_folders): Copy the folders first, then refresh them, outside of the cache_lock, which could cause deadlocks because of a workaround for crappo exchange. (imap_disconnect_online): Dont pass an exception to LOGOUT command. The required response 'BYE' always sets an exception when we call LOGOUT. This also interfered with a lot of other processing causing partial failures and messed up offline/online state. * camel-disco-folder.c (disco_prepare_for_offline): Do progress reporting.
* Add a "char **appended_uid" argument, for the caller to optionally pass inDan Winship2002-05-131-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * camel-folder.c (camel_folder_append_message): Add a "char **appended_uid" argument, for the caller to optionally pass in a variable to receive the UID of the appended message (if the provider knows it). (camel_folder_transfer_messages_to): Likewise, add "GPtrArray **transferred_uids" (transfer_messages_to): Update default implementation to handle transferred_uids. * camel-disco-folder.c (disco_append_message, disco_transfer_messages_to): Update for API changes. * camel-disco-diary.c (camel_disco_diary_replay): Update the diary's temporary uid->real uid map when replaying appends and transfers. * providers/imap/camel-imap-folder.c (imap_append_offline, imap_append_online, imap_transfer_offline): Pass back the new UIDs, when requested and available. (imap_append_resyncing): Pass back the new UIDs when requested and available. Remove the diary uidmap managing code since CamelDiscoDiary can handle that itself now. (imap_transfer_online, imap_transfer_resyncing): Update for new APIs, but don't actually pass back the new UIDs yet. (It's tricky since the COPYUID response may not be in the same order as the input uids.) * providers/local/camel-maildir-folder.c (maildir_append_message): Pass back the new UID if requested. * providers/local/camel-mbox-folder.c (mbox_append_message): Likewise. * providers/local/camel-mh-folder.c (mh_append_message): Likewise. * providers/local/camel-spool-folder.c (spool_append_message): Likewise. * camel-digest-folder.c (digest_append_message, digest_transfer_messages_to): Update for API changes. * camel-filter-driver.c (camel_filter_driver_filter_message, do_copy, do_move): Update for API changes. * camel-vee-folder.c (vee_append_message, vee_transfer_messages_to): Likewise. * camel-vtrash-folder.c (vtrash_append_message, vtrash_transfer_messages_to): Likewise.
* Replace copy_messages_to and move_messages_to with a single function thatDan Winship2002-05-101-32/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * camel-folder.c (camel_folder_transfer_messages_to): Replace copy_messages_to and move_messages_to with a single function that just takes a "delete_originals" flag. Also, use the vtrash implementation if *either* folder is a vtrash. (transfer_messages_to): Make this use camel_operation_progress (previously move_messages_to did but copy_messages_to didn't), and freeze/thaw the folder(s) if doing multiple messages. * camel-vtrash-folder.c (vtrash_transfer_messages_to): Update for move/copy merge. Move the "move messages into vtrash" code here from mail-ops.c. Now all of the vtrash move/copy special casing is in camel instead of half of it being here and half in mail/. (This should also make it so that "Move to Trash" will work in filter rules.) * camel-vee-folder.c (vee_transfer_messages_to): Make this just return an exception, since it will only be called when trying to move/copy messages from one vfolder to another. (vee_append_message): Add this too so we get a nicer error message than the default "unimplemented" one in camel-folder.c. * camel-digest-folder.c: Replace copy_messages_to and move_messages_to with transfer_messages_to. * camel-disco-folder.c: Likewise * camel-disco-diary.c (camel_disco_diary_log, camel_disco_diary_replay): replace MOVE/COPY with TRANSFER. * providers/imap/camel-imap-folder.c (imap_transfer_offline, imap_transfer_online, imap_transfer_resyncing): Update for changes. (This ends up being a bit more complicated than it was before for now, but later disconnected operation changes should resimplify it.) * camel-filter-driver.c (camel_filter_driver_filter_message, do_copy, do_move): Use transfer_messages_to instead of copy.
* Fixing the license text.Ettore Perazzoli2001-10-271-1/+0
|
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | (instead of version 2 or any later version).
* Code for logging and replaying offline operations.Dan Winship2001-05-291-32/+22
| | | | | | | | | | | | | | | | | | | | | | * camel-disco-diary.c: Code for logging and replaying offline operations. * camel-disco-store.c (disco_construct): Set disco->status here (where we can base it on the session's offline status) rather than at init time. (disco_connect): If we connect online and have a non-empty diary, switch to RESYNCING mode and replay the diary to the server. (disco_get_folder, disco_get_folder_info): Add _resyncing variants. * camel-disco-folder.c (disco_sync, disco_expunge_uids, disco_append_message, disco_copy_messages_to, disco_move_messages_to): Add _resyncing variants to switches. (disco_expunge_uids, disco_append_message, disco_copy_messages_to, disco_move_messages_to): Remove #ifdef'ed out diary code: let the provider do it. (disco_append_message): Redo the append methods to no longer return the UID, since we're no longer doing the logging from here.
* Set the disconnected status. (camel_disco_store_can_work_offline): ReturnDan Winship2001-05-091-8/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * camel-disco-store.c (camel_disco_set_status): Set the disconnected status. (camel_disco_store_can_work_offline): Return whether or not a given CamelDiscoStore can work offline or not. * camel-disco-folder.c (camel_disco_folder_cache_message): Explicitly tell a folder to cache a message. (Better than using get_message, because for IMAP that doesn't guarantee you'll get all the message parts.) (camel_disco_folder_prepare_for_offline): Prepare a folder for offline use by caching all messages meeting given search criteria (and doing anything else the particular folder implementation needs). * camel-session.c (camel_session_set_online, camel_session_is_online): A session-wide online/offline toggle. (camel_session_init): Set online to TRUE. * providers/imap/camel-imap-store.c (can_work_offline): Implementation of CamelDiscoStore::can_work_offline. (Checks that the store has been used online at least once.) (imap_get_folder_online, imap_get_folder_offline): Deal with request for "inbox" properly. ("Don't you mean... 'INBOX'?"). * providers/imap/camel-imap-folder.c (imap_cache_message): Implementation of CamelDiscoFolder::cache_message. * camel.h: Add camel-disco-store.h and camel-disco-folder.h
* Fix up refcounting on current_folder.GNOME_MEDIA_1_2_2Dan Winship2001-05-041-1/+0
| | | | | | | | * providers/imap/camel-imap-store.c (get_folder_online): Fix up refcounting on current_folder. * camel-disco-folder.c, camel-disco-store.h: Remove CamelDiscoDiary refs that weren't supposed to escape yet.
* new abstract class for disconnectable remote storesDan Winship2001-05-031-0/+243
* camel-disco-store.c: new abstract class for disconnectable remote stores * camel-disco-folder.c: new abstract class for folders on disconnectable stores. * Makefile.am: Add camel-disco-folder.[ch] and camel-disco-store.[ch]. * providers/imap/camel-imap-store.c: Make this a subclass of CamelDiscoStore, and fix up the offline interfaces for the changes since they were first written (particularly the fact that some IMAP stores don't just use subscribed folders). * providers/imap/camel-imap-folder.c: Make this a subclass of CamelDiscoFolder, although most ops still fail in disconnected mode. * camel-store.c (camel_store_get_folder_info): Change gboolean, gboolean, gboolean to guint32 in the prototype for this function. * providers/local/camel-local-store.c (get_folder_info): Update for prototype change.