aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
Commit message (Collapse)AuthorAgeFilesLines
* ** See bug #64023.Not Zed2004-08-301-1/+4
| | | | | | | | | | | 2004-08-27 Not Zed <NotZed@Ximian.com> ** See bug #64023. * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate): forget the password if it was wrong. svn path=/trunk/; revision=27071
* change the "CheckList" to "Tasks" as there is another foder calledSivaiah Nallagatla2004-08-261-1/+1
| | | | | | | | | | | | 2004-08-26 Sivaiah Nallagatla <snallagatla@novell.com> * provoders/groupwise/camel-gw-listner.c (add_calendar_tasks_sources) : change the "CheckList" to "Tasks" as there is another foder called chekclist in groupwise not related to tasks Fixes #64092 svn path=/trunk/; revision=27032
* Check for an exception from get_folders_online() here so that we don'tJeffrey Stedfast2004-08-241-3/+7
| | | | | | | | | | | 2004-08-23 Jeffrey Stedfast <fejj@novell.com> * providers/imap/camel-imap-store.c (get_folders): Check for an exception from get_folders_online() here so that we don't send commands to an IMAP server after a disconnect for example. See bug #63504 for an example. svn path=/trunk/; revision=27005
* ** See bug #63189.Not Zed2004-08-241-4/+29
| | | | | | | | | | | | | 2004-08-23 Not Zed <NotZed@Ximian.com> ** See bug #63189. * providers/imap/camel-imap-store.c (get_subscribed_folders): only LSUB folders we're interested in, and check full name of each path element. (imap_is_subfolder): helper for above. svn path=/trunk/; revision=27001
* if any of the settings required for soap interaction changes trySivaiah Nallagatla2004-08-212-37/+46
| | | | | | | | | | | | | 2004-08-21 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (account_changed) : if any of the settings required for soap interaction changes try connecting to server and resetup the ESources * providers/groupwise/camel-groupwise-provider.c ": don't check soap ssl setting by default to be in consistent with IMAP svn path=/trunk/; revision=26982
* pass an exception handle to camel_provider_get.Not Zed2004-08-161-1/+4
| | | | | | | | | | 2004-08-16 Not Zed <NotZed@Ximian.com> * providers/groupwise/camel-groupwise-provider.c (camel_provider_module_init): pass an exception handle to camel_provider_get. svn path=/trunk/; revision=26944
* Use g_ptr_array_sized_new() rather than using set_size() after creating aJeffrey Stedfast2004-08-141-8/+8
| | | | | | | | | | | 2004-08-13 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all): Use g_ptr_array_sized_new() rather than using set_size() after creating a GPtrArray so that array->len starts out at 0. (imap4_summary_fetch_flags): Same. svn path=/trunk/; revision=26923
* remove the cal/taksks sources when account is disbaled. Also do not try toSivaiah Nallagatla2004-08-141-3/+13
| | | | | | | | | | | | | 2004-08-13 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (account_changed): remove the cal/taksks sources when account is disbaled. Also do not try to to create sources when a disabled account is changed to Novell Groupwise (camel_gw_listener_construct) : do not add the disbaled accounts to exitsting groupwise accounts list svn path=/trunk/; revision=26920
* update ssl setting label and title of the soap settings section FixesSivaiah Nallagatla2004-08-141-2/+2
| | | | | | | | | | 2004-08-13 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-groupwise-provider.c : update ssl setting label and title of the soap settings section Fixes #62747 svn path=/trunk/; revision=26918
* use g_string_append_len when appending a subset of a string rather than ↵Jeffrey Stedfast2004-08-131-7/+7
| | | | | | g_string_append, duh. svn path=/trunk/; revision=26890
* fix for e_passwords api change, and handle reprompting as well.Not Zed2004-08-121-2/+4
| | | | | | | | | | 2004-08-10 Not Zed <NotZed@Ximian.com> * providers/groupwise/camel-gw-listener.c (get_addressbook_names_from_server): fix for e_passwords api change, and handle reprompting as well. svn path=/trunk/; revision=26879
* Call camel_operation_progress(). (imap4_summary_fetch_all): Setup info weJeffrey Stedfast2004-08-071-0/+21
| | | | | | | | | | | | 2004-08-06 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-summary.c (untagged_fetch_all): Call camel_operation_progress(). (imap4_summary_fetch_all): Setup info we need for progress reporting. (imap4_summary_fetch_flags): Same. svn path=/trunk/; revision=26846
* Pass a reconnect func.Jeffrey Stedfast2004-08-043-3/+29
| | | | | | | | | | | | | 2004-08-03 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_construct): Pass a reconnect func. * providers/imap4/camel-imap4-engine.c (camel_imap4_engine_iterate): Reconnect if needed. (camel_imap4_engine_new): Now takes a reconnect func. svn path=/trunk/; revision=26813
* This needs to prequeue the CAPABILITY command rather than queue itJeffrey Stedfast2004-07-312-4/+4
| | | | | | | | | | | | 2004-07-30 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-engine.c (camel_imap4_engine_capability): This needs to prequeue the CAPABILITY command rather than queue it normally for the case of reconnecting. (camel_imap4_engine_namespace): Same. svn path=/trunk/; revision=26781
* fixed sed-o's (s/IMAP44/IMAP4/g)Jeffrey Stedfast2004-07-312-10/+10
| | | | svn path=/trunk/; revision=26780
* blehJeffrey Stedfast2004-07-311-0/+1
| | | | svn path=/trunk/; revision=26779
* Add an entry to specify POA address and a check box to say whehter ssl hasSivaiah Nallagatla2004-07-292-60/+136
| | | | | | | | | | | | | | | | | | | | | | | | 2004-07-29 Sivaiah Nallagatla <snallagatla@novell.com> * proivders/groupwise/camel-groupwise-provider.c : Add an entry to specify POA address and a check box to say whehter ssl has to be used for SOAP or not (groupwise_auto_detect_cb) : new function to automatically fill POA address with host specified in receiving mail page (camel_provider_module_init) : use the new auto_detect funcntion * providers/groupwise/camel-gw-listener.c (modify_esource) (account_changed) (add_calendar_tasks_sources) (remove_calendar_tasks_sources) (get_addressbook_names_from_server) (add_addressbook_sources) (modify_addressbook_sources) (remove_addressbook_sources) : while forming the uri, use the value from new poa_address setting instead of url->host. Also use ssl setting from the new check box provider instaed of imap one (get_addressbook_names_from_server) : display an error to user when connection cpuld not be established with server during account setup svn path=/trunk/; revision=26765
* ** See bug #61841.Not Zed2004-07-281-1/+4
| | | | | | | | | | 2004-07-27 Not Zed <NotZed@Ximian.com> ** See bug #61841. * providers/groupwise/camel-groupwise-provider.c: added junk settings. svn path=/trunk/; revision=26752
* Changed to be the same prototype as engine_queue().Jeffrey Stedfast2004-07-283-35/+48
| | | | | | | | | | | | | | | | | | 2004-07-27 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-engine.c (camel_imap4_engine_prequeue): Changed to be the same prototype as engine_queue(). (engine_prequeue_folder_select): Updated. * providers/imap4/camel-imap4-store.c (connect_to_server): Use engine_prequeue() for STARTTLS in case we are reconnecting and already have a command queue. (imap4_try_authenticate): Use prequeue() here too. (imap4_reconnect): Moved all the connect logic in here. (imap4_connect): just lock and call reconnect(). svn path=/trunk/; revision=26748
* do not set transport object for groupwise provider. We want user to useSivaiah Nallagatla2004-07-271-6/+1
| | | | | | | | | | | | | 2004-07-27 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-groupwise-provider.c (camel_provider_module_init) : do not set transport object for groupwise provider. We want user to use SMTP itself instead of "Novell Groupwise" Fixes #61454 svn path=/trunk/; revision=26744
* Don't instantiate an engine here. Instead, take an engine as an argumentJeffrey Stedfast2004-07-273-85/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-07-26 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (connect_to_server): Don't instantiate an engine here. Instead, take an engine as an argument (it has a service pointer) and connect using that. Also, if connect fails, don't unref the engine. (connect_to_server_wrapper): Now also takes an engine argument rather than a service argument. (imap4_try_authenticate): Now also takes an engine argument. (imap4_connect): Pass the engine to connect/auth functions rather than the store. (imap4_query_auth_types): Updated. (imap4_disconnect): Don't unref the engine here. (camel_imap4_store_init): Create the engine here. (imap4_get_folder_info): Can't check engine == NULL to know to connect (that was a broken check anyway). * providers/imap4/camel-imap4-engine.c (camel_imap4_engine_new): Now simply takes a service argument rather than a session and url. (camel_imap4_engine_next_token): Set the state to DISCONNECTED. (camel_imap4_engine_eat_line): Same. (camel_imap4_engine_line): Same. (camel_imap4_engine_literal): Same. svn path=/trunk/; revision=26740
* ** See bug #61761.Not Zed2004-07-231-2/+21
| | | | | | | | | | | | 2004-07-22 Not Zed <NotZed@Ximian.com> ** See bug #61761. * providers/pop3/camel-pop3-engine.c (camel_pop3_engine_iterate): if we get an io error, move every current/active and queued command to the done queue and mark as failed. svn path=/trunk/; revision=26709
* Free result after parsing it. Fixes a leak.Jeffrey Stedfast2004-07-211-0/+1
| | | | | | | | | 2004-07-19 Jeffrey Stedfast <fejj@novell.com> * providers/imap/camel-imap-store.c (get_subscribed_folders): Free result after parsing it. Fixes a leak. svn path=/trunk/; revision=26689
* Don't grab the connect_lock before calling refresh_info so that we avoidJeffrey Stedfast2004-07-171-2/+0
| | | | | | | | | | 2004-07-15 Jeffrey Stedfast <fejj@novell.com> * providers/imap/camel-imap-folder.c (imap_transfer_online): Don't grab the connect_lock before calling refresh_info so that we avoid the deadlock in bug #61551. svn path=/trunk/; revision=26668
* : pass "use_ssl" value to these functions and set it on e-sourceSivaiah Nallagatla2004-07-131-20/+57
| | | | | | | | | | | | | | | | | | 2004-07-12 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c : (add_esource) (modify_esource) (add_addressbook_source) (modify_addressbook_sources) : pass "use_ssl" value to these functions and set it on e-source (add_calendar_tasks_source) : read the "use_ssl" param from camel url and pass it to add_esource) calls (get_addressbook_names_from_server) : use "https" or http depending upon whther ssl is enabled or not (account_changed) : compare urls from account instead of uris formed to know wheter somehting in the account changed svn path=/trunk/; revision=26631
* use CAMEL_GROUPWISE_CFLAGS. (libcamelgroupwise_la_LIBADD): useChris Toshok2004-07-091-2/+2
| | | | | | | | | | 2004-07-07 Chris Toshok <toshok@ximian.com> * providers/groupwise/Makefile.am (INCLUDES): use CAMEL_GROUPWISE_CFLAGS. (libcamelgroupwise_la_LIBADD): use CAMEL_GROUPWISE_LIBS. svn path=/trunk/; revision=26598
* Set the size of the ptrarray to prevent potentially realloc'ing severalJeffrey Stedfast2004-07-011-6/+10
| | | | | | | | | | 2004-06-30 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-search.c (imap4_body_contains): Set the size of the ptrarray to prevent potentially realloc'ing several times. svn path=/trunk/; revision=26555
* Aded a new %formatter 'V' which takes a string vector (needed for SEARCH).Jeffrey Stedfast2004-06-308-166/+628
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-29 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-command.c (camel_imap4_command_newv): Aded a new %formatter 'V' which takes a string vector (needed for SEARCH). * providers/imap4/camel-imap4-search.[c,h]: New source files implementing search functionality. * providers/imap4/camel-imap4-folder.c (imap4_sync_flag): Use the new public version of imap4_get_uid_set(). (imap4_transfer_messages_to): Same. (camel_imap4_folder_new): Create a search context. (camel_imap4_folder_finalize): Unref the search context. (camel_imap4_folder_class_init): Override the search methods. (imap4_search_by_expression): New. (imap4_search_by_uids): New. (imap4_search_free): New. * providers/imap4/camel-imap4-utils.c (camel_imap4_get_uid_set): Moved here from camel-imap4-folder.c svn path=/trunk/; revision=26551
* override CAMEL_FOLDER_NAME arg so we can translate "." into "Inbox".Not Zed2004-06-282-2/+33
| | | | | | | | | | 2004-06-28 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-folder.c (maildir_folder_getv): override CAMEL_FOLDER_NAME arg so we can translate "." into "Inbox". svn path=/trunk/; revision=26538
* take url argument directly, fixes a memleak. (camel_folder_info_new): makeNot Zed2004-06-281-7/+22
| | | | | | | | | | | | 2004-06-28 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-store.c (camel_folder_info_new): take url argument directly, fixes a memleak. (camel_folder_info_new): make the toplevel "." into "Inbox" always. (maildir_rename_folder): dont let users rename inbox. svn path=/trunk/; revision=26537
* Error out and set an exception if camel_pop3_engine_new() returns NULLJeffrey Stedfast2004-06-252-30/+53
| | | | | | | | | | | | | | | | 2004-06-24 Jeffrey Stedfast <fejj@novell.com> * providers/pop3/camel-pop3-store.c (connect_to_server): Error out and set an exception if camel_pop3_engine_new() returns NULL (which it can do now). * providers/pop3/camel-pop3-engine.c (get_capabilities): No longer reads the greeting. (camel_pop3_engine_new): Reads the greeting itself and returns NULL if an error occurs (like stupid braindamaged piece of shit POP servers that spew debug prinfs). svn path=/trunk/; revision=26504
* If we fail to lock the folder, close the lockfd and reset it to -1. FixesJeffrey Stedfast2004-06-251-1/+4
| | | | | | | | | | 2004-06-24 Jeffrey Stedfast <fejj@novell.com> * providers/local/camel-spool-folder.c (spool_lock): If we fail to lock the folder, close the lockfd and reset it to -1. Fixes bug #54680. svn path=/trunk/; revision=26499
* First LIST/LSUB the toplevel folder, and then LIST/LSUB the subfolders (itJeffrey Stedfast2004-06-241-6/+57
| | | | | | | | | | | | 2004-06-23 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_get_folder_info): First LIST/LSUB the toplevel folder, and then LIST/LSUB the subfolders (it needs to be 2 commands to work properly). (imap4_delete_folder): CLOSE the folder we are about to DELETE if it is currently SELECTED. svn path=/trunk/; revision=26489
* Same.Jeffrey Stedfast2004-06-243-10/+13
| | | | | | | | | | | 2004-06-23 Jeffrey Stedfast <fejj@novell.com> * providers/imap/camel-imap-provider.c (imap_url_equal): Same. * providers/imap4/camel-imap4-provider.c (imap4_url_equal): Check the protocol. svn path=/trunk/; revision=26488
* Hide password, etc info in the fi->uri's. (imap4_create_folder): Don'tJeffrey Stedfast2004-06-241-20/+73
| | | | | | | | | | | | | | | | | | 2004-06-23 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): Hide password, etc info in the fi->uri's. (imap4_create_folder): Don't bother to use imap4_get_folder_info(), we can construct the fi ourselves. (imap4_delete_folder): Emit the folder_deleted signal and construct an fi ourselves. (imap4_subscribe_folder): Same. (imap4_unsubscribe_folder): Same. * providers/imap4/camel-imap4-provider.c: Specify that the fragment is the path. svn path=/trunk/; revision=26483
* Hide password, etc info in the fi->uri's.Jeffrey Stedfast2004-06-242-2/+2
| | | | | | | | | | | | 2004-06-23 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): Hide password, etc info in the fi->uri's. * providers/imap4/camel-imap4-provider.c: Specify that the fragment is the path. svn path=/trunk/; revision=26482
* make 'colon' a const char *Jeffrey Stedfast2004-06-181-2/+2
| | | | svn path=/trunk/; revision=26406
* init tail->last to (guint32) -1, so that index = tail->last + 1 will startJeffrey Stedfast2004-06-181-2/+3
| | | | | | | | | | 2004-06-17 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (uidset_init): init tail->last to (guint32) -1, so that index = tail->last + 1 will start at 0 :-) svn path=/trunk/; revision=26405
* Make sure we have elements in the array, if not then we're done (return aJeffrey Stedfast2004-06-181-0/+6
| | | | | | | | | | 2004-06-15 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): Make sure we have elements in the array, if not then we're done (return a NULL fi). svn path=/trunk/; revision=26394
* Fixed to work properly. It was getting ranges wrong before sometimes whichJeffrey Stedfast2004-06-181-62/+144
| | | | | | | | | | 2004-06-17 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (imap4_get_uid_set): Fixed to work properly. It was getting ranges wrong before sometimes which was making me lose mail! Ugh. svn path=/trunk/; revision=26393
* simplified furtherJeffrey Stedfast2004-06-171-4/+0
| | | | svn path=/trunk/; revision=26388
* Only ignore if (tag & CAMEL_ARG_TAG) == CAMEL_ARG_IGNORE, not if (tag &Jeffrey Stedfast2004-06-171-1/+1
| | | | | | | | | | 2004-06-17 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (imap_setv): Only ignore if (tag & CAMEL_ARG_TAG) == CAMEL_ARG_IGNORE, not if (tag & CAMEL_ARG_IGNORE) is true. svn path=/trunk/; revision=26387
* Only force a re-update of all FLAGS if this folder wasn't in the SELECTEDJeffrey Stedfast2004-06-171-3/+17
| | | | | | | | | | 2004-06-16 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (imap4_refresh_info): Only force a re-update of all FLAGS if this folder wasn't in the SELECTED state. Otherwise, simply send a NOOP. svn path=/trunk/; revision=26372
* Added a 'first' member to the imap_fetch_all_t struct so we can use thatJeffrey Stedfast2004-06-171-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-16 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-summary.c: Added a 'first' member to the imap_fetch_all_t struct so we can use that as a base offset in our GPtrArray, allowing us to limit resource consumption which could otherwise get quite large. Also added a ChangeInfo member that was needed for changes to untagged_fetch_all(). (imap4_fetch_all_add): Use fetch->first as a base offset and change int i to guint32 i. Also updated to sue the fetch->changes. (imap4_fetch_all_update): Same. (untagged_fetch_all): Same - this is where it is really valuable, since we can avoid adding elements to the GPtrArray that we won't even use. Also needed to change code a big in case index < fetch->first (which could happen if a server notified us of a FLAGS change for a message we didn't request info about). (imap4_fetch_all_free): Free the ChangeInfo. (imap4_summary_fetch_all): Init fetch->changes and fetch->first. (imap4_summary_fetch_flags): Same. (camel_imap4_summary_flush_updates): Only request envelope info if first <= summary->exists. Avoids needless queries. (info_uid_sort): #if 0'd (camel_imap4_summary_flush_updates): No need to sort the summary - this should never have been needed. I can't remember why I did this... svn path=/trunk/; revision=26371
* Added a 'first' member to the imap_fetch_all_t struct so we can use thatJeffrey Stedfast2004-06-171-37/+101
| | | | | | | | | | | | | | | | | | | | | | | 2004-06-16 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-summary.c: Added a 'first' member to the imap_fetch_all_t struct so we can use that as a base offset in our GPtrArray, allowing us to limit resource consumption which could otherwise get quite large. Also added a ChangeInfo member that was needed for changes to untagged_fetch_all(). (imap4_fetch_all_add): Use fetch->first as a base offset and change int i to guint32 i. Also updated to sue the fetch->changes. (imap4_fetch_all_update): Same. (untagged_fetch_all): Same - this is where it is really valuable, since we can avoid adding elements to the GPtrArray that we won't even use. Also needed to change code a big in case index < fetch->first (which could happen if a server notified us of a FLAGS change for a message we didn't request info about). (imap4_fetch_all_free): Free the ChangeInfo. (imap4_summary_fetch_all): Init fetch->changes and fetch->first. (imap4_summary_fetch_flags): Same. svn path=/trunk/; revision=26370
* Init have_unget to FALSE. Don't set unget to NULL, it's no longer aJeffrey Stedfast2004-06-152-13/+9
| | | | | | | | | | | | | | | 2004-06-15 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_init): Init have_unget to FALSE. Don't set unget to NULL, it's no longer a pointer. (camel_imap4_stream_finalize): No need to g_free() unget anymore. (camel_imap4_stream_next_token): Check have_unget rather than unget != NULL. Set have_unget to FALSE if we get an unget'd token. (camel_imap4_stream_unget_token): Don't malloc space for an unget token. The unget token is no longer a pointer. svn path=/trunk/; revision=26346
* use g_ascii_strcasecmp. (smtp_connect): do not re-helo after we'veNot Zed2004-06-141-10/+1
| | | | | | | | | | | | 2004-06-14 Not Zed <NotZed@Ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_data): use g_ascii_strcasecmp. (smtp_connect): do not re-helo after we've authenticated. This was a misreading of the spec. We must only re-helo after a transport layer negotiation. svn path=/trunk/; revision=26329
* Flush summary updates for the currently selected folder. (imap4_noop):Jeffrey Stedfast2004-06-131-2/+11
| | | | | | | | | | | 2004-06-12 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c (imap4_noop): Flush summary updates for the currently selected folder. (imap4_noop): Sync the currently selected folder before sending NOOP. svn path=/trunk/; revision=26324
* Flush summary updates for the currently selected folder.Jeffrey Stedfast2004-06-122-1/+4
| | | | | | | | | 2004-06-12 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c (imap4_noop): Flush summary updates for the currently selected folder. svn path=/trunk/; revision=26323
* Don't bother with exists_changed. We don't need it afterall.Jeffrey Stedfast2004-06-122-9/+4
| | | | | | | | | | | | | | | 2004-06-12 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-summary.c (camel_imap4_summary_set_exists): Don't bother with exists_changed. We don't need it afterall. (camel_imap4_summary_flush_updates): Instead of updating flags if update_flags or exists_changed is set, only bother if update_flags is set or if exists is smaller than the summary count (since updating flags is also sueful for determining which messages have been removed). svn path=/trunk/; revision=26322
* Force updating of the emsage flags (normally this only happens ifJeffrey Stedfast2004-06-121-0/+1
| | | | | | | | | | 2004-06-11 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-folder.c (imap4_refresh_info): Force updating of the emsage flags (normally this only happens if something has changed that warrants rescanning them). svn path=/trunk/; revision=26317
* Handle getting FLAGS even though we didn't request it (server can send usJeffrey Stedfast2004-06-113-30/+75
| | | | | | | | | | | | | | | | | | | 2004-06-11 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (untagged_fetch): Handle getting FLAGS even though we didn't request it (server can send us FLAGS info if another client changed them recently, for example). Also fixed to handle the fact that not every bit of info has to be in a single untagged FETCH response - it may come in several untagged responses. * providers/imap4/camel-imap4-summary.c (envelope_decode_address): Decode the email address name token. (envelope_decode_nstring): rfc2047 decode strings if requested. (decode_envelope): Request that the subject string be rfc2047 decoded. svn path=/trunk/; revision=26310
* if we scan from "" or top == NULL, then we really want to scan from "."Not Zed2004-06-111-1/+1
| | | | | | | | | | | | | | | 2004-06-11 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-store.c (get_folder_info): if we scan from "" or top == NULL, then we really want to scan from "." instead. * camel-url.c (camel_url_new_with_base): don't check the for a character after the # before extracting the fragment. An empty fragment is still allowed and # should never be added to the path. See Rfc1808 2.4.1. svn path=/trunk/; revision=26304
* some test codeMichael Zucci2004-06-111-0/+172
| | | | svn path=/trunk/; revision=26303
* (camel_imap4_summary_flush_updates): Added some logic toJeffrey Stedfast2004-06-112-0/+8
| | | | | | | distinguish between EXISTS value changing because it changed and because messages got expunged. svn path=/trunk/; revision=26302
* Don't bother scanning summary info if EXISTS was 0.Jeffrey Stedfast2004-06-111-3/+29
| | | | | | | | | | | | | | | | | | | | | | 2004-06-11 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-summary.c (camel_imap4_summary_flush_updates): Don't bother scanning summary info if EXISTS was 0. (camel_imap4_summary_set_uidvalidity): Emit the folder_changed event after clearing the summary. (camel_imap4_summary_expunge): Emit the folder_changed event after removing the message from the summary. (camel_imap4_summary_set_exists): Only set exists_changed if the new and old exists values are different. (imap4_fetch_all_add): Emit a folder_changed signal if any new info's were added. (imap4_fetch_all_update): Emit a folder_changed event if any uids were removed or otherwise updated. (camel_imap4_summary_expunge): Use seqid-1 to determine the actual summary index. svn path=/trunk/; revision=26301
* Don't bother scanning summary info if EXISTS was 0.Jeffrey Stedfast2004-06-112-9/+51
| | | | | | | | | | | | | | | | | | | 2004-06-11 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-summary.c (camel_imap4_summary_flush_updates): Don't bother scanning summary info if EXISTS was 0. (camel_imap4_summary_set_uidvalidity): Emit the folder_changed event after clearing the summary. (camel_imap4_summary_expunge): Emit the folder_changed event after removing the message from the summary. * providers/imap4/camel-imap4-folder.c (imap4_sync): Flush updates after an EXPUNGE and don't unset expunge if we didn't delete anything (the logic was wrong anyway). (imap4_refresh_info): Implemented. svn path=/trunk/; revision=26300
* Don't always try and parse a RESP-CODE in the BYE case as the RESP-CODE isJeffrey Stedfast2004-06-111-1/+9
| | | | | | | | | | 2004-06-10 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-engine.c (camel_imap4_engine_handle_untagged_1): Don't always try and parse a RESP-CODE in the BYE case as the RESP-CODE is optional. svn path=/trunk/; revision=26297
* replace strcasecmp with g_ascii_strcasecmpJeffrey Stedfast2004-06-111-2/+2
| | | | svn path=/trunk/; revision=26296
* some code cleanupJeffrey Stedfast2004-06-112-4/+7
| | | | svn path=/trunk/; revision=26295
* If flags does not include FOLDER_INFO_FAST, get the total/unread countsJeffrey Stedfast2004-06-114-168/+249
| | | | | | | | | | | | | | | | | | | | 2004-06-10 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): If flags does not include FOLDER_INFO_FAST, get the total/unread counts for the folder-info. * providers/imap4/camel-imap4-engine.c (engine_parse_status): Removed. (camel_imap4_engine_handle_untagged_1): Don't handle untagged STATUS responses anymore. Let the STATUS requestor handle them instead. * providers/imap4/camel-imap4-utils.c (camel_imap4_untagged_status): New function to parse untagged status events. svn path=/trunk/; revision=26291
* move the stream based checking into the loop, after we connect. Fixes aNot Zed2004-06-101-8/+8
| | | | | | | | | | 2004-06-10 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-store.c (camel_nntp_command): move the stream based checking into the loop, after we connect. Fixes a crash. svn path=/trunk/; revision=26272
* Load the entire summary, not just the summary header. This way when theJeffrey Stedfast2004-06-082-2/+4
| | | | | | | | | | | | | | 2004-06-07 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new): Load the entire summary, not just the summary header. This way when the user opens the folder, we don't do a complete re-sync with the server unnecessarily. * providers/imap4/camel-imap4-summary.c (untagged_fetch_all): New info's always have a uid of "", so don't checkagainst NULL. svn path=/trunk/; revision=26239
* Implemented, mostly. Still need to update state on the renamed folderJeffrey Stedfast2004-06-073-1/+138
| | | | | | | | | | | | | | | | | | | | 2004-06-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c (imap4_rename_folder): Implemented, mostly. Still need to update state on the renamed folder object if instantiated and rename the on-disk cache directory. * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_finalize): Free the cachedir. (camel_imap4_folder_new): Init the cachedir and load the saved summary before updating it against the server summary. * providers/imap4/camel-imap4-store.c (camel_imap4_store_finalize): Free the storage_path. (imap4_construct): Init the storage_path. svn path=/trunk/; revision=26233
* removed debug printfsJeffrey Stedfast2004-06-051-3/+0
| | | | svn path=/trunk/; revision=26222
* Initialise the folder->summary and force an update of the message infoJeffrey Stedfast2004-06-052-7/+22
| | | | | | | | | | | | | | | | | | | 2004-06-04 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new): Initialise the folder->summary and force an update of the message info cache by selecting the folder and flushing the updates to the imap4 summary object. * providers/imap4/camel-imap4-store.c (imap4_get_folder_info): Lock the connect_lock before we check if the engine is NULL and after we connect (assuming we need to), initialise the engine pointer again. (imap4_get_folder_info): Doh. Need to escape the "'s in the LIST command string. (imap4_get_folder): Same. svn path=/trunk/; revision=26221
* Duh. If the user doesn't care about SSL/TLS - use USE_SSL_NEVER, notJeffrey Stedfast2004-06-051-1/+1
| | | | | | | | | | 2004-06-04 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper): Duh. If the user doesn't care about SSL/TLS - use USE_SSL_NEVER, not USE_SSL_ALWAYS. svn path=/trunk/; revision=26218
* Always just return 0, don't try to PR_Sync() - fsync on a socket causes anJeffrey Stedfast2004-06-053-8/+22
| | | | | | | | | | | | | | | | | | | | | | 2004-06-04 Jeffrey Stedfast <fejj@novell.com> * camel-tcp-stream-ssl.c (stream_flush): Always just return 0, don't try to PR_Sync() - fsync on a socket causes an error. * providers/imap4/camel-imap4-command.c (camel_imap4_command_step): Set exceptions when write/flush fail. * providers/imap4/camel-imap4-engine.c (camel_imap4_engine_take_stream): Set an exception in the case where we get an unexpected greeting from the server. * providers/imap4/camel-imap4-store.c (imap4_create_folder): store->dir_sep no longer exists, so query the engine for the directory separator for the parent_folder. (imap4_build_folder_info): CamelFolderInfo no longer has a path component. svn path=/trunk/; revision=26217
* reset current folder. (connect_to_server): and here too just to make sure.Not Zed2004-06-031-1/+6
| | | | | | | | | | 2004-06-03 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-store.c (nntp_disconnect_online): reset current folder. (connect_to_server): and here too just to make sure. svn path=/trunk/; revision=26167
* disconnect if we get an io error or user cancellation.Not Zed2004-06-031-0/+1
| | | | | | | | | 2004-06-03 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-store.c (camel_nntp_command): disconnect if we get an io error or user cancellation. svn path=/trunk/; revision=26166
* only save the summary, don't update from server, thats what refresh infoNot Zed2004-06-039-631/+603
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-03 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-folder.c (nntp_folder_sync_online): only save the summary, don't update from server, thats what refresh info does. (nntp_folder_download_message): fix exception handling. (nntp_folder_cache_message): same. (nntp_folder_get_message): ditto, plus major cleanup. (nntp_folder_download_message): take combined uid so it can cache and lookup properly. duh. * providers/nntp/camel-nntp-store.c (nntp_store_get_subscribed_folder_info): if not fast, then open the folder, and update it. Yeah i've given up trying to worry about performance vs usability. * providers/nntp/camel-nntp-summary.c (camel_nntp_summary_check): update the storesummary if we update the folder summary. Hmm, isn't duplicated data meant to be a bad thing? :P * providers/nntp/camel-nntp-store.c (camel_nntp_store_set_folder): removed, now handled by nntp_command. (nntp_connected): removed, now handled by nntp_command. * camel-string-utils.c (camel_tolower): added ascii to-lower function. (camel_toupper): and upper, for completeness. * camel-store-summary.c (CAMEL_STORE_SUMMARY_VERSION): bumped file version by 1. This is a mess, version 1 files treated the bitfield 'flags' with bit number values not bits. Messy. * providers/nntp/camel-nntp-store-summary.c (store_info_save): write last/first count. (CAMEL_NNTP_STORE_SUMMARY_VERSION): bump version to 1. (store_info_load): if we're loading >= version 1, then load last/first counts. * providers/nntp/camel-nntp-store.c (nntp_store_get_folder_info_all): pass the whole line to store_info_from_line, dont strip last/first info. (nntp_store_info_update): renamed from info_new_from_line. only add if not present. handle updates, try and handle unread counts and readonly status. 2004-06-02 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-store.c: setup xover once we've started. * providers/nntp/camel-nntp-summary.c: (xover_setup): moved to nntp store. * providers/nntp/camel-nntp-folder.c (folder_check) (folder_check_free, camel_nntp_folder_new): remove async summary stuff. * providers/nntp/camel-nntp-store.c (camel_nntp_command): take exception argument again, and folder argument. do retry logic and auth logic differently. (camel_nntp_raw_command): raw command interface, dont try reconnect or anything fancy. pass i/o errors straight out, etc. (camel_nntp_try_authenticate): change to return return codes & take exception. * providers/nntp/camel-nntp-summary.c (camel_nntp_summary_new): just take path argument. (camel_nntp_summary_check): take a store, and a folder name. (add_range_head, add_range_xover): remove the time based update events, they never had any effect anyway. Take store argument. (xover_setup): take store argument. * camel-folder-search.c (search_match_threads): remove debug. svn path=/trunk/; revision=26164
* Fixes bug #59191.Jeffrey Stedfast2004-05-281-4/+1
| | | | | | | | | | | | | 2004-05-27 Jeffrey Stedfast <fejj@novell.com> Fixes bug #59191. * providers/imap/camel-imap-store.c (camel_imap_store_readline): Don't override the exception with g_strerror() since presumably camel_imap_store_is_connected() will have set that for us (and will have a much more accurate exception anyway). svn path=/trunk/; revision=26113
* set port property on e-sourceSivaiah nallagatla2004-05-261-0/+2
| | | | | | | | 2004-05-25 Sivaiah nallagatla <snallagatla@novell.com> * providers/groupwise/came;-gw-listener.c (add_addressbook_sources): set port property on e-source svn path=/trunk/; revision=26101
* return NULL when there is no existing gw account with same uidSivaiah Nallagatla2004-05-261-9/+12
| | | | | | | | | 2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (lookup_account_info): return NULL when there is no existing gw account with same uid svn path=/trunk/; revision=26099
* remove /soap part from uri. make port as a e-source property instead ofSivaiah Nallagatla2004-05-261-44/+76
| | | | | | | | | | | 2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (add_addressbook_sources) (add_calendar_tasks_sources) : remove /soap part from uri. make port as a e-source property instead of putting it in uri to amek the uris same as that of mail for password sharing svn path=/trunk/; revision=26092
* removed.Not Zed2004-05-269-48/+27
| | | | | | | | | | | | 2004-05-25 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_folder_info_build_path): removed. * camel-store.h (CamelFolderInfo): removed 'path', fixed all callers. (struct _CamelStore): removed 'dir_sep' fixed all uses. svn path=/trunk/; revision=26089
* added CAMEL_PROVIDER_CONF_HIDDEN to conf item type enum. This is used bySivaiah Nallagatla2004-05-242-3/+8
| | | | | | | | | | | | | 2004-05-24 Sivaiah Nallagatla <snallagatla@novell.com> * camel-provider.h : added CAMEL_PROVIDER_CONF_HIDDEN to conf item type enum. This is used by groupwise provider * providers/groupwise/camel-groupwise-provider.c : Added CAMEL_PROVIDER_CONF_HIDDEN to groupwise_conf_entries to pass the auth-domain value * providers/imap/camel-imap-store.c (imap_auth_loop) : read the auth-domain property from imap url and pass it camel sesstion apis svn path=/trunk/; revision=26057
* Added a workaround for broken IMAP. Hopefully by forcing only the IMAP4Jeffrey Stedfast2004-05-221-1/+32
| | | | | | | | | | 2004-05-21 Jeffrey Stedfast <fejj@novell.com> * providers/imap/camel-imap-store.c (connect_to_server): Added a workaround for broken IMAP. Hopefully by forcing only the IMAP4 command subst, we can work around their suckage. svn path=/trunk/; revision=26034
* added a 'domain' argument, and rearragned arguments to be prettier andNot Zed2004-05-216-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-21 Not Zed <NotZed@Ximian.com> * camel-session.c (camel_session_get_password): added a 'domain' argument, and rearragned arguments to be prettier and more consistent. Fixed all callers. (camel_session_forget_password): added a domain argument. Fixed all callers. ** See #58376. * camel-folder.c (set_message_flags): if system flags change, then don't trigger a folder changed event. * camel-folder-summary.h (CAMEL_MESSAGE_SYSTEM_MASK): added this to indicate which flags are internal/apps not interested in. * camel-folder.c (filter_free): rearrange and use some helpers. (folder_changed): if we're frozen, dont go firing off threads to do any processing on each change, wait until we're called unfrozen. Slight code rearragnement. (filter_filter): add progress to junk learn/unlearn, and separate them. svn path=/trunk/; revision=26029
* re-arrange the code so exception debug will print the expandedNot Zed2004-05-214-20/+25
| | | | | | | | | | | | | | | | | | 2004-05-20 Not Zed <NotZed@Ximian.com> * camel-exception.c (camel_exception_setv): re-arrange the code so exception debug will print the expanded description. (camel_exception_set): print exception debug. * providers/pop3/camel-pop3-folder.c (pop3_get_message): same. * providers/local/camel-mh-folder.c (mh_get_message) * providers/local/camel-mbox-folder.c (mbox_get_message): * providers/local/camel-maildir-folder.c (maildir_get_message): Don't use INVALID_UID for errors which are more system related. And sync up all the error messages. svn path=/trunk/; revision=26028
* Fixes bug #42295 and the infinite loop part of bug #58766 (these 2 bugsJeffrey Stedfast2004-05-211-22/+23
| | | | | | | | | | | | | | | | | | | | | | 2004-05-20 Jeffrey Stedfast <fejj@novell.com> Fixes bug #42295 and the infinite loop part of bug #58766 (these 2 bugs are almost identical, except the server responses are broken in different ways). * providers/imap/camel-imap-folder.c (imap_update_summary): Remove the kludge to re-SELECT the folder to force a re-FETCH of message-info's. This 1) doesn't do what it was meant to do and 2) has a tendency to cause infinite loops with broken servers such as Courier-IMAP. (imap_update_summary): Rework the loop that adds messages to the summary such that if we encounetr an error, we break out and set an exception (we can keep the messages up to the point of failure, but none after that because otherwise our uid-to-seqid mapping would be inconsistant with that of the server and could potentially cause data loss). svn path=/trunk/; revision=26019
* oops, poke the right uid to get the article number.Not Zed2004-05-201-2/+2
| | | | | | | | | | | 2004-05-20 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-folder.c (nntp_folder_get_message): oops, poke the right uid to get the article number. (nntp_folder_cache_message): & here too. Somehow fixes #58700, but i don't know why. svn path=/trunk/; revision=26004
* use the article number instead of the messageid. Some servers are justNot Zed2004-05-191-11/+16
| | | | | | | | | | | | | | | 2004-05-19 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-folder.c (nntp_folder_get_message): use the article number instead of the messageid. Some servers are just broken. (nntp_folder_cache_message): same. See #58655. * camel-smime-context.c (sm_verify_cmsg): import the certs as UsageEmailRecipient as well as signer, and also save the certs always. svn path=/trunk/; revision=25975
* do the same load of mailbox if we're in slow mode as we did for maildir.Not Zed2004-05-181-0/+5
| | | | | | | | | | 2004-05-18 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-store.c (fill_fi): do the same load of mailbox if we're in slow mode as we did for maildir. #58294. svn path=/trunk/; revision=25948
* ** Bug #56050.Not Zed2004-05-172-3/+80
| | | | | | | | | | | | | | | 2004-05-17 Not Zed <NotZed@Ximian.com> ** Bug #56050. * providers/imap/camel-imap-store.c (imap_get_trash) (imap_get_junk): similar to below. * providers/local/camel-local-store.c (local_get_trash) (local_get_junk): set state file on trash/junk to something we know about. svn path=/trunk/; revision=25918
* if we have no folder in-memory, load it if we're not doing it fast to getNot Zed2004-05-171-0/+5
| | | | | | | | | | 2004-05-17 Not Zed <NotZed@Ximian.com> * providers/local/camel-mh-store.c (fill_fi): if we have no folder in-memory, load it if we're not doing it fast to get really up to date unread counts. #57616. svn path=/trunk/; revision=25917
* type-o fix for bug #58404Jeffrey Stedfast2004-05-131-1/+1
| | | | svn path=/trunk/; revision=25892
* eliminate the need for another variableJeffrey Stedfast2004-05-131-5/+2
| | | | svn path=/trunk/; revision=25891
* oops, tiny fixJeffrey Stedfast2004-05-131-0/+2
| | | | svn path=/trunk/; revision=25890
* Ignore PERMANENTFLAGS if it gives us an empty set. Works around brokenJeffrey Stedfast2004-05-131-3/+8
| | | | | | | | | | 2004-05-12 Jeffrey Stedfast <fejj@novell.com> * providers/imap/camel-imap-folder.c (camel_imap_folder_selected): Ignore PERMANENTFLAGS if it gives us an empty set. Works around broken IMAP servers like the one in bug #58355. svn path=/trunk/; revision=25889
* changed to match_threads. (camel_folder_search_search): remove threadNot Zed2004-05-123-95/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-12 Not Zed <NotZed@Ximian.com> * camel-folder-search.c (search_threads): changed to match_threads. (camel_folder_search_search): remove thread matching stuff from here. 2004-05-06 Not Zed <NotZed@Ximian.com> * camel-digest-folder.c (digest_search_by_expression) (digest_search_by_uids): * providers/nntp/camel-nntp-folder.c (nntp_folder_search_by_expression) (nntp_folder_search_by_uids): * providers/imap/camel-imap-folder.c (imap_search_by_expression) (imap_search_by_uids): * providers/local/camel-local-folder.c (local_search_by_expression) (local_search_by_uids): use camel_folder_search_search & some minor cleanups. * camel-folder-search.c (search_threads): keep track of the match threads option for this search. (camel_folder_search_match_expression): Removed, not used anymore. (camel_folder_search_search): new api entry point for searching, a bit easier to use and needed for thread matching. * camel-folder-search.c (camel_folder_search_search): new search api entry point, take a full summary and optionally a subset of uids to match against. (search_match_all): use the uids' passed in to only search a subset of uid's. svn path=/trunk/; revision=25876
* New class for zipping/unzipping gzip streams.Jeffrey Stedfast2004-05-111-0/+5
| | | | | | | | | | | | 2004-05-10 Jeffrey Stedfast <fejj@novell.com> * camel-mime-filter-gzip.[c,h]: New class for zipping/unzipping gzip streams. * camel-mime-filter-yenc.[c,h]: New class for encoding/decoding the crack known as YEncode. svn path=/trunk/; revision=25847
* set nodelay and keepalive on the socket.Not Zed2004-05-061-1/+12
| | | | | | | | | | | | | | | | | | | | 2004-05-06 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (connect_to_server): set nodelay and keepalive on the socket. * camel-file-utils.c (camel_read): put a timeout on the select. Logic shuffle to match the ssl stuff. (camel_write): Similar. * camel-tcp-stream-ssl.c (stream_connect): remove timeout, use CONNECT_TIMEOUT directly. (stream_read): put a timeout on the poll. IO_TIMEOUT. And a little logic shuffle. (stream_write): similar. (CONNECT_TIMEOUT): make this 4 minutes === tcp-raw timeout. svn path=/trunk/; revision=25812
* dont set X-Evolution-Source here anymore, set in caller.Not Zed2004-05-051-17/+15
| | | | | | | | | | | 2004-05-05 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (get_message_simple): dont set X-Evolution-Source here anymore, set in caller. (imap_get_message): move the busted server get into the retry loop. only leave the simple cache test outside of it. svn path=/trunk/; revision=25805
* Fixed typo.Christian Kellner2004-05-041-1/+1
| | | | | | * providers/groupwise/camel-gw-listener.h: Fixed typo. svn path=/trunk/; revision=25785
* ** See #57979.Not Zed2004-05-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | 2004-05-04 Not Zed <NotZed@Ximian.com> ** See #57979. * camel-vee-folder.c (subfolder_renamed_update): when the subfolder gets renamed, remove all the old uid's and add the new ones (since the uid is based on the subordinate folder name). (subfolder_renamed): listen to renamed folder events. * providers/local/camel-mbox-store.c (get_folder_info): if we're getting a single folder with no children, make sure we fill the counts out. Fixes some rename strangeness. * camel-vee-folder.c (camel_vee_folder_add_folder): hook onto the folder renamed signal. (camel_vee_folder_finalise): unhook folder_renamed signal. (camel_vee_folder_remove_folder): same. svn path=/trunk/; revision=25776
* Fix typo. #53466.Priit Laes2004-05-011-1/+1
| | | | | | | | 2004-04-30 Priit Laes <amd@tt.ee> * providers/nntp/camel-nntp-summary.c: Fix typo. #53466. svn path=/trunk/; revision=25722
* Change the UID_SET_LIMIT to 768 (something <1000 octets as suggested byJeffrey Stedfast2004-04-281-2/+5
| | | | | | | | | | 2004-04-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c: Change the UID_SET_LIMIT to 768 (something <1000 octets as suggested by rfc2683). Fixes bug #57389. svn path=/trunk/; revision=25665
* Send a flag list rather than \Deleted by itself. See #57381.Not Zed2004-04-221-4/+4
| | | | | | | | | | 2004-04-22 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (imap_expunge_uids_online) (imap_expunge_uids_resyncing): Send a flag list rather than \Deleted by itself. See #57381. svn path=/trunk/; revision=25574
* Don't bother doing any work if perm_flags is 0.Jeffrey Stedfast2004-04-221-0/+3
| | | | | | | | | 2004-04-21 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (imap4_sync_changes): Don't bother doing any work if perm_flags is 0. svn path=/trunk/; revision=25572
* added CAMEL_LIBS to LIBADD added new function to get addres book namesSivaiah Nallagatla2004-04-212-68/+167
| | | | | | | | | | | | 2004-04-21 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/Makefile.am : added CAMEL_LIBS to LIBADD * providers/groupwise/camel-gw-listener.c (get_addressbook_names_from_server): added new function to get addres book names from server. (add_addressbook_sources) (modify_addressbook_sources) : changed the implementation to use address book returned form above call while creating e-sources svn path=/trunk/; revision=25559
* set the meta data file on nntp folders.Not Zed2004-04-211-0/+5
| | | | | | | | | 2004-04-21 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): set the meta data file on nntp folders. svn path=/trunk/; revision=25553
* implement dummy virtual method.Not Zed2004-04-211-0/+29
| | | | | | | | | | | | 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. svn path=/trunk/; revision=25552
* Fixed to not expect ]'s as part of the BODY atom token.Jeffrey Stedfast2004-04-201-1/+7
| | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (untagged_fetch): Fixed to not expect ]'s as part of the BODY atom token. svn path=/trunk/; revision=25520
* Changed imap_atom_specials[] to not treat ']' as an atom char (as perJeffrey Stedfast2004-04-161-2/+4
| | | | | | | | | | 2004-04-15 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-utils.c: Changed imap_atom_specials[] to not treat ']' as an atom char (as per rfc3501). Fixes bug #50985. svn path=/trunk/; revision=25485
* Use %F instead of %S so that the folder name gets properly converted fromJeffrey Stedfast2004-04-151-1/+1
| | | | | | | | | | | | 2004-04-14 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (imap_check_folder_still_extant): Use %F instead of %S so that the folder name gets properly converted from using '/' path delimeters to whatever the native character the server uses. Should fix bug #56715. svn path=/trunk/; revision=25465
* Rearranged some error checking code to fix bug #56405.Jeffrey Stedfast2004-04-141-10/+11
| | | | | | | | | 2004-04-13 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): Rearranged some error checking code to fix bug #56405. svn path=/trunk/; revision=25448
* change the auth type string from Password to plain/passwordSivaiah Nallagatla2004-04-131-1/+1
| | | | | | | | | | 2004-04-13 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (add_addressbook_sources) : change the auth type string from Password to plain/password svn path=/trunk/; revision=25426
* add bookname to uriSivaiah Nallagatla2004-04-111-6/+5
| | | | | | | | | | 2004-04-11 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (add_addressbook_sources) (modify_addressbook_sources) : add bookname to uri svn path=/trunk/; revision=25412
* Fix capitalisation of the "mailcheck" section title and move it to the topJeffrey Stedfast2004-04-102-7/+7
| | | | | | | | | | | | | | 2004-04-09 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-provider.c: Fix capitalisation of the "mailcheck" section title and move it to the top (so it matches with the UI). * providers/imap/camel-imap-folder.c (imap_get_message): Fetch the entire message in one fell swoop even if the message size is larger than 5k *if* the message is a single part. Fixes bug #56686. svn path=/trunk/; revision=25387
* Changed (!flags & _CREATE) to (!(flags & _CREATE)) (get_folder_online): DoJeffrey Stedfast2004-04-081-4/+99
| | | | | | | | | | | | | 2004-04-08 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): Changed (!flags & _CREATE) to (!(flags & _CREATE)) (get_folder_online): Do what create_folder() does and if the parent folder has \NoInferiors set but contains no messages, delete the parent folder and recreate it before creating the child folder. Fixes bug #56651. svn path=/trunk/; revision=25374
* include camel-debug.hNot Zed2004-04-081-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-08 Not Zed <NotZed@Ximian.com> * camel-folder.c: include camel-debug.h * providers/local/camel-mbox-folder.c (mbox_set_message_user_flag): message changed to folder_changed. (mbox_set_message_user_tag): ditto. * camel-vee-folder.c (camel_vee_folder_finalise): dont hook onto message_changed. (camel_vee_folder_add_folder): or unhook. (camel_vee_folder_remove_folder): " (message_changed): or proxy. * camel-folder.c (camel_folder_class_init): removed the message_changed event - its redundant, and covered by folder_changed, and just makes life difficult for everything using message_changed/folder_changed (and nothing uses it anyway). (message_changed): removed. (set_message_user_flag): emit a folder_changed event instead of message changed. (set_message_user_tag): " (set_message_flags): " * camel-object.h: revered the CAMEL_OBJECT_TYPE change, it should be a global variable access. svn path=/trunk/; revision=25367
* Added mutex locking where appropriate.Jeffrey Stedfast2004-04-071-2/+24
| | | | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c: Added mutex locking where appropriate. svn path=/trunk/; revision=25348
* Added mutex locking where appropriate.Jeffrey Stedfast2004-04-071-11/+54
| | | | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c: Added mutex locking where appropriate. svn path=/trunk/; revision=25346
* Defined.Jeffrey Stedfast2004-04-075-7/+12
| | | | | | | | | | | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * camel-folder-summary.h (CAMEL_FOLDER_SUMMARY_TYPE): Defined. * camel-object.h (CAMEL_OBJECT_TYPE): Fixed. * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_utf7_name): Implemented. * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): Use camel_folder_info_build() to build the folder-info tree. svn path=/trunk/; revision=25345
* ** See bug #56110.Not Zed2004-04-061-10/+52
| | | | | | | | | | | | | | | | | | | | | 2004-04-06 Not Zed <NotZed@Ximian.com> ** See bug #56110. * providers/imap/camel-imap-folder.c (get_content): more debug! (get_content): if we have no content-type header set on a sub-part of a multipart/digest, then we need to set it to message/rfc822 as in the multipart/digest rfc (2046 or so?). * camel-folder.c (camel_folder_get_message): output this stuff as folder debug. * providers/imap/camel-imap-folder.c (imap_get_message): add some imap:folder debug. (get_content): get xx.TEXT rather than xx if we're from a message parent part. svn path=/trunk/; revision=25333
* dont add folders to folders_out here, only in get_folders_add_folders.Not Zed2004-04-051-5/+3
| | | | | | | | | | | | | | | | | | 2004-04-05 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folders): dont add folders to folders_out here, only in get_folders_add_folders. * camel-store.c (camel_folder_info_build): simplify 'list append' since we have next pointer at the head of the struct. * providers/imap/camel-imap-store.c (create_folder): fixed "containes" spelling count. (get_folder_online): " (get_folders_add_folders): duh, add the folder info to the folders_out array. svn path=/trunk/; revision=25310
* Partially implemented. (imap4_get_folder): Implemented.Jeffrey Stedfast2004-03-312-19/+298
| | | | | | | | | | 2004-03-30 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c (imap4_get_folder_info): Partially implemented. (imap4_get_folder): Implemented. svn path=/trunk/; revision=25254
* added some debug to dump the whole folderinfo tree if store:folder_info isNot Zed2004-03-302-22/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-30 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_get_folder_info): added some debug to dump the whole folderinfo tree if store:folder_info is set. * providers/imapp/camel-imapp-driver.c: #if 0 out some code, to kill warnings. * camel-url-scanner.c: include ctype.h for isspace (wonder if it should use utf8 funcs?). 2004-03-29 Not Zed <NotZed@Ximian.com> ** See #56146. * providers/imap/camel-imap-store.c (get_folders): check the top-level folders list for duplicates as well. (get_folders_add_folders): split out the folder return merging code from get_folders. Absolute mess of crap to deal with more busted servers. * camel-debug.c (camel_debug_start, camel_debug_end): some helpers to wrap debug output for atomicicity. svn path=/trunk/; revision=25238
* Implemented.Jeffrey Stedfast2004-03-3025-1997/+2103
| | | | | | | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new): Implemented. * providers/imap4/camel-imap4-engine.c (engine_parse_namespace): If the namespace begins with "INBOX", canonicalise the INBOX portion (ie, make it all caps). * providers/imap4/camel-imap4-store.c (imap4_noop): Implemented. svn path=/trunk/; revision=25237
* Updated to actually parse the STATUS response into a list of item/valueJeffrey Stedfast2004-03-301-23/+120
| | | | | | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_status): Updated to actually parse the STATUS response into a list of item/value pairs. (create_folder): Updated for above change. (get_folder_counts): Only call get_folder_status() once (we can get both values with a single call now). Fixes a FIXME and might also fix bug #55784. svn path=/trunk/; revision=25232
* Removed debugging printfs.Jeffrey Stedfast2004-03-302-4/+1
| | | | | | | | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder_info): Removed debugging printfs. * providers/local/camel-local-folder.c (camel_local_folder_construct): Since the folder was *just* created, it shouldn't have any subfolders so set the CAMEL_FOLDER_NOCHILDREN flag (altho, ideally, we wouldn't be guessing these flags at all - rather we'd call get_folder_info() or some such). Fixes bug #56010. svn path=/trunk/; revision=25231
* use object_bag_peek instead of _get, since we dont want to clash/wait forNot Zed2004-03-291-23/+9
| | | | | | | | | | | | | | | 2004-03-29 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folder_counts): use object_bag_peek instead of _get, since we dont want to clash/wait for reservations. More #56045 related fixes. (get_folder_counts): revert the lookup/hashtable stuff for the folder, and use object_bag_peek. * camel-object.c (camel_object_bag_peek): new method to get an object bag entry without worrying about if its reserved or not. svn path=/trunk/; revision=25220
* remove locking here, we're locked whne we enter. (fill_fi): callNot Zed2004-03-291-4/+3
| | | | | | | | | | 2004-03-29 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folder_counts): remove locking here, we're locked whne we enter. (fill_fi): call refresh_info unlocked. More for #56045. svn path=/trunk/; revision=25217
* New source files implementing the CamelFolder class for the new IMAP4Jeffrey Stedfast2004-03-293-0/+836
| | | | | | | | | | 2004-03-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-folder.[c,h]: New source files implementing the CamelFolder class for the new IMAP4 implementation. svn path=/trunk/; revision=25215
* added .cvsignoreJeffrey Stedfast2004-03-291-0/+7
| | | | svn path=/trunk/; revision=25214
* added camel-imap-store.[c,h] to the buildJeffrey Stedfast2004-03-292-20/+47
| | | | svn path=/trunk/; revision=25213
* added camel-imap-provider.cJeffrey Stedfast2004-03-293-1/+141
| | | | svn path=/trunk/; revision=25211
* build fixesJeffrey Stedfast2004-03-292-6/+7
| | | | svn path=/trunk/; revision=25210
* New source files implementing the CamelFolderSummary class for the newJeffrey Stedfast2004-03-293-0/+1200
| | | | | | | | | | 2004-03-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-summary.[c,h]: New source files implementing the CamelFolderSummary class for the new IMAP4 implementation. svn path=/trunk/; revision=25209
* Reverted imap.web.de fix.Jeffrey Stedfast2004-03-271-6/+3
| | | | | | | | | 2004-03-26 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_update_summary): Reverted imap.web.de fix. svn path=/trunk/; revision=25199
* Added new maildir flags D for draft and commented P for forwarded.Not Zed2004-03-262-4/+20
| | | | | | | | | | | | | | 2004-03-26 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-summary.c (flagbits[]): Added new maildir flags D for draft and commented P for forwarded. * providers/imap/camel-imap-store.c (get_folder_counts): Instead of looking up the folder in the object bag which will handle reservations and perhaps deadlock, just get the list of opened folders and use them if they're available. Should fix #56045. svn path=/trunk/; revision=25195
* No longer need to split ']' tokens from atom tokens due to a fixup in theJeffrey Stedfast2004-03-264-27/+892
| | | | | | | | | | | | | | | | | 2004-03-25 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-engine.c (camel_imap_engine_parse_resp_code): No longer need to split ']' tokens from atom tokens due to a fixup in the ABNF grammar in rfc3501. * providers/imap4/camel-imap-specials.c: Changed ATOM_SPECIALS to include ']' (this is an addition in rfc3501). * providers/imap4/camel-imap-store.[c,h]: New Store class for IMAP. Implemnted a bunch of but still got a ways to go. svn path=/trunk/; revision=25192
* If the server is imap.web.de, just ask for all the headers rather thanJeffrey Stedfast2004-03-263-7/+16
| | | | | | | | | | | | | | | | | | | 2004-03-25 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_update_summary): If the server is imap.web.de, just ask for all the headers rather than "HEADER.FIELDS.NOT (RECEIVED)". Actually, maybe we should always just query for the entire header block? (imap_get_message): If the server is brain-damaged (that's a technical term), always fetch the message in whole, never bother to try and fetch partial messages (Courier-IMAP gives us the wrong BODY responses fairly often). * providers/imap/camel-imap-store.c (connect_to_server): Set store->braindamaged to TRUE if we find the string "Courier-IMAP" in the greeting. svn path=/trunk/; revision=25190
* Fix for bug #55018.Jeffrey Stedfast2004-03-261-4/+23
| | | | | | | | | | | | | | | | 2004-03-25 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55018. * providers/imap/camel-imap-store.c (create_folder): Don't allow the suer to create folders with #, %, * or the directory separator in the folder name (added the checks for %, * and #). (get_folder_online): Add a check to make sure the folder name is sane before sending a CREATE (ie. we want to allow getting of folders with discouraged characters in them if they exist, but we don't want to allow the user to create them). svn path=/trunk/; revision=25186
* Removed newline character from the provider descriptionMartyn Russell2004-03-251-1/+1
| | | | | | | | | 2004-03-25 Martyn Russell <ginxd@btopenworld.com> * providers/smtp/camel-smtp-provider.c: Removed newline character from the provider description svn path=/trunk/; revision=25182
* removed ldap seetings and added a settng for SOAP port read port numberSivaiah Nallagatla2004-03-252-93/+70
| | | | | | | | | | | | | | 2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-groupwise-provider.c : removed ldap seetings and added a settng for SOAP port * providers/groupwise/camel-gw-listner.h (add_calendar_tasks_sources) (remove_calendar_tasks_sources), (modify_calendar_tasks_sources) : read port number from url instead of hardcoding Also removed code for adding e-sources for ldap address book and adding now e-sources for groupwise address book svn path=/trunk/; revision=25180
* New convenience wrapper function. (engine_parse_status): Fixed to handleJeffrey Stedfast2004-03-253-9/+67
| | | | | | | | | | | | | | | | 2004-03-24 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-engine.c (camel_imap_engine_literal): New convenience wrapper function. (engine_parse_status): Fixed to handle literal mailbox strings. * providers/imap4/camel-imap-command.c (camel_imap_command_newv): Changed how %L works - create the CamelIMAPLiteral for our caller instead of expecting them to create it for us. We can autodetect what type of object (stream vs data-wrapper) the literal is, so it's trivial to do. svn path=/trunk/; revision=25179
* #include <stdlib.h> for strtoul()Jeffrey Stedfast2004-03-251-0/+1
| | | | svn path=/trunk/; revision=25178
* The beginnings of a new IMAP provider moduleJeffrey Stedfast2004-03-2512-0/+4071
| | | | svn path=/trunk/; revision=25176
* Reworked the else bit to fix a bug where if we had the BODY structure, weJeffrey Stedfast2004-03-241-51/+50
| | | | | | | | | | 2004-03-23 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_get_message): Reworked the else bit to fix a bug where if we had the BODY structure, we simply wouldn't try fetching the actual message. svn path=/trunk/; revision=25161
* use camel debug to add some debug here.Not Zed2004-03-231-62/+73
| | | | | | | | | | | | | | | | | | | 2004-03-23 Not Zed <NotZed@Ximian.com> * camel-exception.c (camel_exception_setv): use camel debug to add some debug here. * camel.c (camel_init): call camel_debug_init(). * camel-debug.c (camel_debug_init, camel_debug): new util stuff for extended debug options. * providers/imap/camel-imap-folder.c (imap_get_message): if we're supposed to be online, check we are online before proceeding. Actually major restructure so we re-try the fetch a couple of times first before failing. i.e. silent reconnect. See #55381. svn path=/trunk/; revision=25153
* connect lock around this. was getting a race with mem corruptionNot Zed2004-03-231-2/+6
| | | | | | | | | | 2004-03-23 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folder_info_online): connect lock around this. was getting a race with mem corruption otherwise. svn path=/trunk/; revision=25151
* decode newsgroups header into a list of newsgroups.Not Zed2004-03-222-2/+11
| | | | | | | | | | | | | | | | | | 2004-03-22 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (camel_header_newsgroups_decode) (camel_header_newsgroups_free): decode newsgroups header into a list of newsgroups. ** See #55887. * providers/nntp/camel-nntp-summary.c (camel_nntp_summary_check): NOOP if we're offline. * providers/nntp/camel-nntp-store.c (nntp_connected): spit a warning if we try to do stuff whilst offline, rather than crash. svn path=/trunk/; revision=25142
* remove async_thread thing.Not Zed2004-03-192-58/+0
| | | | | | | | 2004-03-19 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.h: remove async_thread thing. svn path=/trunk/; revision=25125
* Checking that mi->content->type != NULL is no longer good enough to tellJeffrey Stedfast2004-03-181-4/+21
| | | | | | | | | | | | | 2004-03-17 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_get_message): Checking that mi->content->type != NULL is no longer good enough to tell if a ContentInfo is complete (ie. contains the parsed BODY response). We need to check that th ContentInfo has children if the part is a multipart of message/rfc822 part. Apparently Zucchi didn't test his camel-folder-summary changes using IMAP. svn path=/trunk/; revision=25105
* Reverted jeff's fix for #55018, since it wasn't tested, and doesn't work.Not Zed2004-03-171-75/+29
| | | | | | | | | | | | 2004-03-17 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-store.c: Reverted jeff's fix for #55018, since it wasn't tested, and doesn't work. Wrote an alternate implementation, and tested it at least once. Turns out it was a one line error, it still wasn't tested. Oh well, its rewritten now. svn path=/trunk/; revision=25100
* See bug #55618.Not Zed2004-03-171-0/+2
| | | | | | | | | | | | | | | | | | | | 2004-03-17 Not Zed <NotZed@Ximian.com> * See bug #55618. * camel-disco-diary.c (camel_disco_diary_new): seek to the end of the file after we open it. c99 apparently says the file merely adds to the end of the file when you write, not that it is opened and positioned at the end of the file (linux's man pages are out of date). * camel-folder-summary.c (content_info_new): setup the content type as well, from the headers. * providers/imap/camel-imap-summary.c (camel_imap_summary_add_offline): copy size from the source info. svn path=/trunk/; revision=25096
* If the initial SELECT fails and CREATE is specified, clear the exceptionJeffrey Stedfast2004-03-161-1/+3
| | | | | | | | | | | 2004-03-15 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): If the initial SELECT fails and CREATE is specified, clear the exception before attempting to CREATE, this way we don't have an exception set even if the CREATE passes. Fixes bug #55607. svn path=/trunk/; revision=25078
* same as below for path.Not Zed2004-03-152-2/+4
| | | | | | | | | | | | | | | | | | 2004-03-15 Not Zed <NotZed@Ximian.com> * providers/local/camel-mbox-store.c (delete_folder): same as below for path. * providers/local/camel-local-store.c (delete_folder): NULL out str before looking up the state file using it. Otherwise we double-free str. * camel-mime-parser.c (folder_scan_skip_line): we want to scan till in-end-1. If we've been called we're either at the end of data, or we know we have an end of line character within memory. Another case in Bug #53355. svn path=/trunk/; revision=25068
* set the mime-type field on the content the same way asNot Zed2004-03-151-3/+10
| | | | | | | | | | | | | | | | | 2004-03-15 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (get_content, get_message): set the mime-type field on the content the same way as construct_from_stream does. Bug #55472. * camel-mime-message.c (camel_mime_message_dump): utility function to dump message content to stdout. (camel_mime_message_init): default mime type to message/rfc822. * camel.c (camel_init): change camel verbose debug to be an int, a bitmask of debug options. svn path=/trunk/; revision=25064
* Now takes an argument to specify whether disconnecting when respbuf isJeffrey Stedfast2004-03-131-15/+16
| | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_set_exception): Now takes an argument to specify whether disconnecting when respbuf is NULL is safe (to prevent us from recursively disconnecting or disconnecting during a connect). svn path=/trunk/; revision=25054
* Fix for bug #53497.Jeffrey Stedfast2004-03-131-37/+19
| | | | | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #53497. * providers/smtp/camel-smtp-transport.c (smtp_helo): Instead of unreffing the streams, call camel_service_disconnect(). (smtp_mail): Same. (smtp_rcpt): Same. (smtp_data): Same. (smtp_send_to): Ignore exceptions for smtp_rset(). Also, check that we are connected before we try to send (in Evolution's current usage scenario, this isn't a problem but in the future if we ever try to fire off several messages via the same smtp connection, it may be - especially if RSET failed during the previous send). svn path=/trunk/; revision=25053
* Fixes for bug #55018.Jeffrey Stedfast2004-03-134-59/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #55018. * providers/local/camel-local-folder.c (camel_local_folder_construct): Use camel_url_to_string() here too, so we properly encode the fragment. * providers/local/camel-mbox-store.c (get_folder_info): Use CamelURL to properly encode the fi->uri. Pass the CamelURL into scan_dir() so that scan_dir() can re-use it (rather than having to malloc/parse/free for each file/dir) (scan_dir): Use camel_url_to_string(). * providers/local/camel-maildir-store.c (get_folder_info): Same as mbox. (scan_dir): Same as mbox. We also need to set the CAMEL_FOLDER_NOSELECT flag if appropriate. * providers/local/camel-mh-store.c (get_folder_info): Same as mbox and maildir. (folders_scan): Now takes a url argument which we pass off to folder_info_new(). (recursive_scan): Same. (folder_info_new): Use camel_url_to_string(). svn path=/trunk/; revision=25050
* If errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE orJeffrey Stedfast2004-03-131-37/+28
| | | | | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (connect_to_server): If errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE or whatever. (smtp_helo): Same. (smtp_auth): Same. (smtp_mail): Same. (smtp_rcpt): Same. (smtp_data): Same. (smtp_rset): Same. (smtp_quit): Same. (smtp_set_exception): Here too. (smtp_auth): If the AUTH response code is not 334, then use smtp_set_exception() to get the most accurate error report we can. svn path=/trunk/; revision=25044
* removed this. not sure what it was doing there, a 1 line funciton usedNot Zed2004-03-111-16/+14
| | | | | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (no_such_folder): removed this. not sure what it was doing there, a 1 line funciton used once. (get_folder_online): pass exception to camel_imap_command. if we got a user cancel, pass it up. (hash_folder_name, compare_folder_name): more g_ascii_strcasecmp stuff. svn path=/trunk/; revision=25026
* (imap_store_refresh_folders): check we're updating an imap folder,Michael Zucci2004-03-111-0/+6
| | | | | | we could also have trash folders in the store too. svn path=/trunk/; revision=25021
* turn off NOINFERIORS always, translate to nochildren.Not Zed2004-03-1111-126/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_one_folder_offline): (parse_list_response_as_folder_info): turn off NOINFERIORS always, translate to nochildren. 2004-03-08 Not Zed <NotZed@Ximian.com> * camel-vee-store.c (vee_get_folder_info): setup virtual/system flags as appropriate. (change_folder): setup flags properly. * providers/nntp/camel-nntp-store.c (nntp_store_get_subscribed_folder_info): mark all folders as system folders. * providers/local/camel-mh-store.c (fill_fi): add this to setup folderinfo. (folder_info_new): call fill_fi to fill unread/total. (recursive_scan, folders_scan): ahh yeah, so wtf was i thinking, store->flags != get_folder_info flags!!!! * providers/local/camel-maildir-store.c (camel_folder_info_new): remove unread count arg & setup total. (fill_fi): setup total field. (scan_dir): remove the code that checked the directory directly - use fill_fi instead. It will more accurately reflect what you get when you visit the folder. (camel_folder_info_new): mark "." as a system folder. (scan_dir): try to setup children/no children flags properly. * providers/local/camel-mbox-store.c (fill_fi): setup total field. (scan_dir): init total. (get_folder_info): " 2004-03-05 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (parse_list_response_as_folder_info): mark INBOX as a system folder. Can't be renamed/deleted. (fill_fi): setup total field. (get_folder_counts): ditto. * camel-store.c (add_special_info): set the system folder flag. * camel-store.h: time to fix up the camelfolderinfo mess. fix some member names, and add some type fields. Fixed all uses. svn path=/trunk/; revision=25019
* fix all the warningsMichael Zucci2004-03-045-8/+10
| | | | svn path=/trunk/; revision=24962
* ** See bug #53355.Not Zed2004-03-041-3/+7
| | | | | | | | | | | | 2004-03-04 Not Zed <NotZed@Ximian.com> ** See bug #53355. * providers/imap/camel-imap-folder.c (get_content): if the parent isn't a message/rfc822 type, we don't want to get the section.TEXT for multipart/signed, we just want to get section. svn path=/trunk/; revision=24955
* use "Calendar" and "Checklist" for the folder names, instead of "Default".Rodrigo Moya2004-03-031-8/+7
| | | | | | | | | | | 2004-03-03 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-gw-listener.c (add_calendar_tasks_sources): use "Calendar" and "Checklist" for the folder names, instead of "Default". (remove_calendar_tasks_sources): remove the correct folder. svn path=/trunk/; revision=24949
* fun dun diddley un fun. Since we're writing a const buffer, we need toNot Zed2004-03-034-22/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-03 Not Zed <NotZed@Ximian.com> * camel-stream-filter.c (do_write, do_write): fun dun diddley un fun. Since we're writing a const buffer, we need to copy it first. See #54937. 2004-02-27 Not Zed <NotZed@Ximian.com> ** See bug #54755. * camel-vtrash-folder.c (vtrash_append_message) (vtrash_transfer_messages_to): error/fail out if the user tries to copy messages to the trash. (vtrash_transfer_messages_to): use the destination bit not the source bit for moving messages to a vtrash folder. * camel-gpg-context.c (gpg_ctx_parse_status): ignore NODATA response, otherwise we abort in a meaningless way. See #52939. * providers/imap/camel-imap-utils.c: use g_ascii_str[n]casecmp everywhere. * providers/imap/camel-imap-utils.c (imap_body_decode): fix the sense of the nil check for the subtype of a mutlipart. See #53355. 2004-02-26 Not Zed <NotZed@Ximian.com> * camel-session.c (camel_session_check_junk_for_imap) (camel_session_set_check_junk_for_imap): removed. * providers/imap/camel-imap-provider.c: Add filter_junk and filter_junk_inbox options to the receive option page. * providers/imap/camel-imap-store.c (imap_setv, imap_getv): handle FILTER_JUNK and FILTER_JUNK_INBOX parameters. (imap_setv): conver to switch rather than if statement. (construct): handle url args for filter_junk and filter_junk_inbox. * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Set the folder's flags based on the stores junk settings. (imap_update_summary): remove the test for session_check_junk_for_imap, its handled per-store now. * camel-folder.c (folder_changed): only check for FILTER_RECENT or FILTER_JUNK to see if we need to do filtering. * camel-folder.h (CAMEL_FOLDER_FILTER_JUNK): renamed from CAMEL_FOLDER_SUPRESS_JUNK_TEST (and obviously inverted logic). svn path=/trunk/; revision=24942
* Overrides the parent method. We don't want to encode user flags/tags orJeffrey Stedfast2004-03-031-1/+22
| | | | | | | | | | | 2004-03-02 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-summary.c (mbox_summary_encode_x_evolution): Overrides the parent method. We don't want to encode user flags/tags or the size of the header will change and force a complete rewrite of the mbox file. svn path=/trunk/; revision=24937
* use g_ascii_str[n]casecmp everywhere. fix the sense of the nil check forNot Zed2004-02-271-29/+31
| | | | | | | | | | | | 2004-02-27 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-utils.c: use g_ascii_str[n]casecmp everywhere. * providers/imap/camel-imap-utils.c (imap_body_decode): fix the sense of the nil check for the subtype of a mutlipart. See #53355. svn path=/trunk/; revision=24905
* moved the RECNET flag into the folder area (bit 17-30).Not Zed2004-02-253-19/+13
| | | | | | | | | | | | | | | | | | | | | 2004-02-25 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-summary.h (CAMEL_IMAP_MESSAGE_RECENT): moved the RECNET flag into the folder area (bit 17-30). 2004-02-24 Not Zed <NotZed@Ximian.com> ** See bug #53876. * providers/imap/camel-imap-command.c (camel_imap_command): ref the folder before unreffing store->current_folder, incase they're the same. Do a select anyway. * providers/imap/camel-imap-folder.c (imap_refresh_info): keep the connect_lock for longer, imap_rescan for one assumes its locked. Fixes a race selecting the folder for refresh. svn path=/trunk/; revision=24862
* If our folder has a subdir, but no actual children, then we need to unsetRodney Dawes2004-02-241-0/+2
| | | | | | | | | | | | 2004-02-23 Rodney Dawes <dobey@ximian.com> * providers/local/camel-mbox-store.c (scan_dir): If our folder has a subdir, but no actual children, then we need to unset the flag for CAMEL_FOLDER_CHILDREN Fixes #54470 svn path=/trunk/; revision=24845
* remove debugMichael Zucci2004-02-241-8/+1
| | | | svn path=/trunk/; revision=24843
* kill some debugMichael Zucci2004-02-242-16/+3
| | | | svn path=/trunk/; revision=24842
* Add sanity checking to the folder name if we are going to create it, justJeffrey Stedfast2004-02-201-0/+14
| | | | | | | | | | 2004-02-19 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder): Add sanity checking to the folder name if we are going to create it, just like we do in create_folder(). svn path=/trunk/; revision=24796
* Fixes for api changes.Not Zed2004-02-198-46/+31
| | | | | | | | | | | | | | | | | | | 2004-02-19 Not Zed <NotZed@Ximian.com> * providers/*/camel-*-provider.c (camel_provider_module_init): Fixes for api changes. * camel-provider.c (camel_provider_load): no longer take session argument. the providers are global resources. (camel_provider_init): dont return anything anymore. (error?) call from camel_init now. Use a recursive lock too. * camel-session.c (camel_session_register_provider) (camel_session_list_providers, camel_session_get_provider): Moved to camel-provider, camel_provider_register/list/get. (vee_provider): moved to camel-provider.c svn path=/trunk/; revision=24794
* ** See bug #53861.Not Zed2004-02-171-0/+4
| | | | | | | | | | | | 2004-02-17 Not Zed <NotZed@Ximian.com> ** See bug #53861. * providers/nntp/camel-nntp-summary.c (add_range_xover): Fix from Edd Dumbill <edd@usefulinc.com> to avoid aborting on irrelevently truncated lines. svn path=/trunk/; revision=24754
* ** See bug #51045.Not Zed2004-02-1613-60/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-16 Not Zed <NotZed@Ximian.com> ** See bug #51045. * providers/imap/camel-imap-store.c (fill_fi): similar to mbox version. (get_folder_counts): use fill_fi to try and get folder counts if we're not doing the hard slog. (get_one_folder_offline): use fill_fi to try to get folder counts from open folders or summaries. * providers/local/camel-maildir-store.c (fill_fi): similar to mbox version. (scan_dir): use fill_fi to get the unread count now. * providers/local/camel-mbox-store.c (fill_fi): helper to lookup unread count either from active folder or from summary file, if it's available. (scan_dir, get_folder_info): use helper above to get folder info. * devel-docs/camel-folder-summary.txt: New document describing the format/conventions in the CamelFolderSummary file. * providers/nntp/camel-nntp-summary.c (summary_header_load/save): * providers/imapp/camel-imapp-summary.c (summary_header_load/save): * providers/imap/camel-imap-summary.c (summary_header_load/save): Handle versions, per-class version number (1). * providers/local/camel-mbox-summary.c (summary_header_load/save): Handle versions properly, add a per-class version (1). Write out the folder size as a size_t rather than 32 bit int. * providers/local/camel-local-summary.c (summary_header_load/save): read/write the per-class version number (1). * camel-folder-summary.c (summary_header_load): do version checking differently, allow the version to be bumped without aborting the load. Added unread/deleted/junk counts to base header. (summary_header_save): Save out the new-format header. Version bumped to 13. * camel.c (camel_init): return 0 rather than spit a compiler warning. * camel-file-utils.c (camel_file_util_encode_*_t): macro-ise the type encoder/decoders. Also add size_t encoder/decoder. svn path=/trunk/; revision=24744
* Same.Jeffrey Stedfast2004-02-145-45/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-13 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): Same. * providers/local/camel-mh-store.c (get_folder): Same as maildir changes. * providers/local/camel-maildir-store.c (get_folder): Make exceptions strings consistanmt with the mbox exception strings (and vise versa). Also handle the CAMEL_STORE_FOLDER_EXCL flag. * providers/local/camel-mbox-store.c (get_folder): Check CAMEL_STORE_FOLDER_EXCL flag. * providers/local/camel-local-store.c (get_folder): Simplified by using camel_mkdir instead of doing it manually. * camel-store.c (camel_store_get_folder): If the folder exists in the cache and the O_EXCL flag was passed, return NULL and set an exception. * camel-store.h: Added a new CAMEL_STORE_FOLDER_EXCL flag for use with get_folder(). svn path=/trunk/; revision=24738
* ** See bug #53978.Not Zed2004-02-091-1/+5
| | | | | | | | | | | | 2004-02-09 Not Zed <NotZed@Ximian.com> ** See bug #53978. * providers/local/camel-mbox-store.c: added ".lock" to the list of ignored extensions. (ignore_file): ignore anything ending in ~ too. svn path=/trunk/; revision=24678
* ** See bug #51319.Not Zed2004-02-091-9/+9
| | | | | | | | | | | | 2004-02-09 Not Zed <NotZed@Ximian.com> ** See bug #51319. * providers/local/camel-local-folder.c (camel_local_folder_construct): re-enable indexing when folder is first opened. Also load defaults if no meta-data present. svn path=/trunk/; revision=24677
* changed to return a boolean to indicate if the flags were actually changedNot Zed2004-02-063-9/+18
| | | | | | | | | | 2004-02-06 Not Zed <NotZed@Ximian.com> * camel-folder.c (camel_folder_set_message_flags): changed to return a boolean to indicate if the flags were actually changed or not. Fixed all implementors. svn path=/trunk/; revision=24643
* rename .cmeta file too, and fix the recovery order.Not Zed2004-02-054-315/+327
| | | | | | | | | | | | | | | | | | 2004-02-05 Not Zed <NotZed@Ximian.com> * providers/local/camel-mbox-store.c (rename_folder): rename .cmeta file too, and fix the recovery order. * providers/local/camel-local-store.c (rename_folder): rename the .cmeta file too. * providers/local/camel-local-folder.c (local_rename): fix this to use local_get_full_path stuff. * camel-store.c (camel_store_rename_folder): fix umr's comparing old and new names. svn path=/trunk/; revision=24630
* ** See bug #53553.Not Zed2004-02-052-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-05 Not Zed <NotZed@Ximian.com> ** See bug #53553. * camel-provider.c (camel_provider_init): changed to return a hashtable of url protocols to CamelProviderModule structs, rather than simple strings. * camel-session.c (get_provider): if we load a provider module, mark it as loaded. (ensure_loaded): Check the module loaded flag before trying to load it. * providers/local/libcamellocal.urls: Remove spoold from the list, since it doesn't exist anymore. Actually fixes #53553, the rest is to robustify the code. 2004-02-05 Not Zed <NotZed@Ximian.com> * camel-session.c (CS_CLASS): dont typecheck cast. * camel-store.c (camel_vjunk_folder_new): removed, use vtrash_new(junk). (setup_special): changed to get_special, with a type now, and dont add vtrash folders to the sources. (get_trash, get_junk): down to 1 liners, call get_special * camel-vtrash-folder.c (CF_CLASS): dont use cast typecheck macros here, makes debugging easier and removes redundant checks. (camel_vtrash_folder_init): dont set flags here. (camel_vtrash_folder_new): takes a new argument, type, for junk folders too, removed name arg (taken from type). (vtrash_transfer_messages_to): parameterise flag processing. svn path=/trunk/; revision=24625
* Get rid of some unnecessary CAMEL_OBJECT() casts.Jeffrey Stedfast2004-02-052-31/+31
| | | | | | | | | | | | | | | 2004-02-04 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c: Get rid of some unnecessary CAMEL_OBJECT() casts. * providers/imap/camel-imap-folder.c (camel_imap_folder_new): The folder_name argument passed to this function is ALWAYS in the UNIX path form (ie. using '/' as the dir sep) and so when getting the short_name, don't use imap_store->dir_sep as the dir sep, always use '/'. Fixes bug #53755 for the IMAP case. svn path=/trunk/; revision=24622
* Fix for bug #53755 (local folders case)Jeffrey Stedfast2004-02-051-13/+16
| | | | | | | | | | | | | | | 2004-02-04 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #53755 (local folders case) * providers/local/camel-mbox-store.c (xrename): No longer takes an exception arg, we just set errno. Our caller can take care of setting an exception. (rename_folder): Don't pass an exception to xrename(), we always overwrote if an error occured it anyway. (rename_folder): Rename the .sbd as well. svn path=/trunk/; revision=24616
* added 'expunge' parameter, easier 'empty trash on exit' call.Not Zed2004-02-041-0/+3
| | | | | | | | | | | | | | | 2004-02-04 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_sync): added 'expunge' parameter, easier 'empty trash on exit' call. 2004-02-04 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (parse_list_response_as_folder_info): if we can't add the folder to the summary {i.e. duplicate}, then ignore it. See #53836. svn path=/trunk/; revision=24606
* changed order around, first try to delete and only remove from the objectNot Zed2004-02-042-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-04 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_delete_folder): changed order around, first try to delete and only remove from the object bag if the delete worked. If vjunk/vtrash enabled, don't allow those to be deleted. (cs_delete_cached_folder): helper to delete the folder if its in the cache, remove it from trash/junk, etc. (camel_store_unsubscribe_folder): changed similarly to delete_folder. * camel-vee-store.c (vee_delete_folder): dont do any trash/junk processing anymore. 2004-02-03 Not Zed <NotZed@Ximian.com> * camel-store.c: use the folders object bag to manage the trash folder and junk folders. Remove the init_trash and init_junk stuff, just use get_trash and get_junk to mean the same thing. Get rid of the hacked up vjunk and vtrash "uri" stuff too. * camel-object.c (camel_object_bag_add): null out the pair->func, otherwise we get an uninitalised memory read during unhook event. svn path=/trunk/; revision=24603
* Fixes for bug #53091.Jeffrey Stedfast2004-02-031-1/+4
| | | | | | | | | | | | | 2004-02-02 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #53091. * providers/imap/camel-imap-store.c (create_folder): Set the new folder's fi->flags to CAMEL_FOLDER_NOCHILDREN since we know it doesn't have any (we just created it!). (subscribe_folder): Same. svn path=/trunk/; revision=24572
* Same as below.Jeffrey Stedfast2004-02-012-4/+4
| | | | | | | | | | | | | | 2004-01-31 Jeffrey Stedfast <fejj@ximian.com> * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Same as below. * providers/smtp/camel-smtp-transport.c (smtp_connect): Instead of using the form %s@%s in the password prompt, use %s on host %s, hopefully this will be less confusing to users who have usernames of the form user@vhost. svn path=/trunk/; revision=24558
* Fix spelling error in provider descriptionRodney Dawes2004-01-311-1/+1
| | | | | | | | | | | 2004-01-30 Rodney Dawes <dobey@ximian.com> * providers/groupwise/camel-groupwise-provider.c: Fix spelling error in provider description Fixes #53572 svn path=/trunk/; revision=24550
* ** See bug #53269.Not Zed2004-01-291-4/+3
| | | | | | | | | | | | 2004-01-29 Not Zed <NotZed@Ximian.com> ** See bug #53269. * providers/nntp/camel-nntp-store.c (nntp_store_get_cached_folder_info): don't dereference last before checking if its null. svn path=/trunk/; revision=24514
* Make sure the new dir path exists before trying to rename files to avoidJeffrey Stedfast2004-01-291-7/+39
| | | | | | | | | | | | | 2004-01-28 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (rename_folder): Make sure the new dir path exists before trying to rename files to avoid ENOENT errors. Also save errno when we encounter errors so that we can report the true error later rather than an error we may get while reverting changes. Also, it is OK if the ibex files don't exist, so check for that errno case. svn path=/trunk/; revision=24496
* add port and /soap parts to relative uri while updating it when accountSivaih Nallagatla2004-01-281-4/+5
| | | | | | | | | | 2004-01-28 Sivaih Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (account_changed) (modify_esources) : add port and /soap parts to relative uri while updating it when account changed svn path=/trunk/; revision=24489
* set CAMEL_FOLDER_SUPRESS_JUNK_TEST flag (imap_update_summary): updateRadek Doulik2004-01-271-3/+12
| | | | | | | | | | | | | | | 2004-01-27 Radek Doulik <rodo@ximian.com> * providers/imap/camel-imap-folder.c (camel_imap_folder_new): set CAMEL_FOLDER_SUPRESS_JUNK_TEST flag (imap_update_summary): update CAMEL_FOLDER_SUPRESS_JUNK_TEST flag * camel-folder.c (folder_changed): use CAMEL_FOLDER_SUPRESS_JUNK_TEST flag instead of check_junk_for_imap * camel-folder.h (CAMEL_FOLDER_SUPRESS_JUNK_TEST): added new flag svn path=/trunk/; revision=24463
* (imap_get_message): revert peterw's change of 2002-07-15, insteadMichael Zucci2004-01-231-8/+0
| | | | | | | | of checking for online mode here, let get_message do it when you retrieve the parts. This lets a multi-fetch (i.e. large) message work more betterer in offline mode. svn path=/trunk/; revision=24377
* removed the meaningless fixme, a butt-retrieved-number is as good as anyNot Zed2004-01-231-1/+2
| | | | | | | | | | | | | | 2004-01-23 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (IMAP_SMALL_BODY_SIZE): removed the meaningless fixme, a butt-retrieved-number is as good as any in this case. (imap_get_message): revert peterw's change of 2002-07-15, instead of checking for online mode here, let get_message do it when you retrieve the parts. This lets a multi-fetch (i.e. large) message work more betterer in offline mode. svn path=/trunk/; revision=24376
* ** See bug #52817.Not Zed2004-01-205-6/+11
| | | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52817. * camel-session.c (camel_session_get_password): merged reprompt and secret into a flags field, and add more options. Fixed all callers. svn path=/trunk/; revision=24323
* add port and "/soap" to source uriSiviaah Nallagatla2004-01-191-2/+6
| | | | | | | | | 2004-01-19 Siviaah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c ( remove_calender_tasks_sources, modify_calender_tasks_sources) : add port and "/soap" to source uri svn path=/trunk/; revision=24303
* use a CamelURL to properly encode the url we generate.Not Zed2004-01-191-2/+2
| | | | | | | | | | | | | | | | | 2004-01-19 Not Zed <NotZed@Ximian.com> * camel-vee-store.c (change_folder): use a CamelURL to properly encode the url we generate. (vee_get_folder_info): ditto. (vee_get_folder_info): removed unused variable/warning. * camel-session.c (vee_provider): Update the provider flags for URL_FRAGMENT_IS_PATH. * providers/imapp/camel-imapp-utils.c (imap_parse_addfress_list): namespaces fixes for HEADER_ADDRESS* svn path=/trunk/; revision=24299
* Limit the flags we set (or unset) to the folder's permanent flags.Jeffrey Stedfast2004-01-171-9/+9
| | | | | | | | | 2004-01-17 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_sync_online): Limit the flags we set (or unset) to the folder's permanent flags. svn path=/trunk/; revision=24289
* added some conf entries for LDAP address setup addedSivaiah Nallagatla2004-01-162-16/+160
| | | | | | | | | | | | 2004-01-16 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-groupwise-provider.c: added some conf entries for LDAP address setup * providers/groupwise/camel-gw-listener.c: added add_ldap_addressbook_source, modify_ldap_addressbook_source, remove_ldap_addressbook_source functions for setting up LDAP address book. Also setting "username" property on cal/tasks ESources svn path=/trunk/; revision=24270
* *** empty log message ***Rodrigo Moya2004-01-161-16/+8
| | | | svn path=/trunk/; revision=24269
* missing renaming.Rodrigo Moya2004-01-151-1/+1
| | | | | | | | | 2004-01-14 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c (camel_provider_module_init): missing renaming. svn path=/trunk/; revision=24224
* set the "auth" property on the ESource's we create, to get authentication.Rodrigo Moya2004-01-141-0/+1
| | | | | | | | | 2004-01-14 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-gw-listener.c (add_esource): set the "auth" property on the ESource's we create, to get authentication. svn path=/trunk/; revision=24216
* ** Patch from Timo Sirainen <tss@iki.fi> to honour read-only status forNot Zed2004-01-142-1/+14
| | | | | | | | | | | | | | 2004-01-14 Not Zed <NotZed@Ximian.com> ** Patch from Timo Sirainen <tss@iki.fi> to honour read-only status for imap folders. * providers/imap/camel-imap-folder.c (camel_imap_folder_selected): check for read-only status response. (imap_sync_online): only call sync_offline if we're read-only. (imap_expunge_uids_resyncing): NOOP for read-only. svn path=/trunk/; revision=24212
* remove debug printf.Not Zed2004-01-141-2/+0
| | | | | | | | | | | | | | | | 2004-01-14 Not Zed <NotZed@Ximian.com> * providers/local/camel-local-folder.c (local_getv): remove debug printf. ** See bug #52835. * camel-smime-context.c (sm_get_passwd): removed debugging. If we get called multiple times in a row, then forget the old password and re-prompt - it was a bad password. Zero out password memory too. svn path=/trunk/; revision=24208
* missing renaming.Rodrigo Moya2004-01-141-2/+2
| | | | | | | | 2004-01-13 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c: missing renaming. svn path=/trunk/; revision=24200
* removed unused groupwise-config-listener.[ch] filesSivaiah Nallagatla2004-01-132-546/+0
| | | | | | | 2004-01-13 Sivaiah Nallagatla <snallagatla@novell.com> removed unused groupwise-config-listener.[ch] files svn path=/trunk/; revision=24198
* renamed groupwise-config-listener.[ch] to these file names and alsoSivaiah Nallagatla2004-01-133-2/+545
| | | | | | | | | | | 2004-01-13 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.[ch] : renamed groupwise-config-listener.[ch] to these file names and also changed code to use CamelURL insted of EUri * providers/groupwise/camel-groupwise-provider.c : use the renamed config listener apis * providers/groupwise/Makefile.am : changed the source file names svn path=/trunk/; revision=24197
* bump version and requirementsJP Rosevear2004-01-131-0/+1
| | | | | | | | 2004-01-12 JP Rosevear <jpr@ximian.com> * configure.in: bump version and requirements svn path=/trunk/; revision=24193
* fixed distcheckJeffrey Stedfast2004-01-131-2/+0
| | | | svn path=/trunk/; revision=24192
* now based on discofolder, cache_message and append_message implemented,Meilof Veeningen2004-01-1311-314/+1686
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-12 Meilof Veeningen <meilof@wanadoo.nl> * providers/nntp/camel-nntp-folder.[ch]: now based on discofolder, cache_message and append_message implemented, only retrieve messages when we are subscribed, some stubs * providers/nntp/camel-nntp-provider.c: newsgroup name display settings, password authentication, fix for check_equal where the protocols wouldn't be checked * providers/nntp/camel-nntp-store.[ch]: base on discostore with online/offline support, subscriptions, downloading changed parts of the newsgroup list, some stubs, authentication, automatic reconnect * providers/nntp/camel-nntp-store-summary.[ch]: NNTP store summary based on IMAP code * providers/nntp/camel-nntp-summary.c: save summary after xover * providers/nntp/camel-nntp-grouplist.h: added CamelNNTPGroupList structs * providers/nntp/Makefile.am: added store summary svn path=/trunk/; revision=24178
* ** See bug 52725.Not Zed2004-01-123-2/+8
| | | | | | | | | | | | | | 2004-01-12 Not Zed <NotZed@Ximian.com> ** See bug 52725. * providers/imap/camel-imap-folder.c (get_content): pass in transfer encoding when setting up wrapper part. * providers/imap/camel-imap-wrapper.c (camel_imap_wrapper_new): Added an encoding type parameter, set on data wrapper. svn path=/trunk/; revision=24164
* libcamelgroupwise.urls instead of libcamelimap.urlsRodney Dawes2004-01-101-1/+2
| | | | | | | | | 2004-01-09 Rodney Dawes <dobey@ximian.com> * providers/groupwise/Makefile.am (EXTRA_DIST): libcamelgroupwise.urls instead of libcamelimap.urls svn path=/trunk/; revision=24138
* added null check for source url to take care of accounts with Server TypesSivaiah Nallagatla2004-01-091-1/+6
| | | | | | | | | 2004-01-09 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/groupwise-config-listener.c (is_groupwise_account): added null check for source url to take care of accounts with Server Types as "None" svn path=/trunk/; revision=24129
* fix removal of journal file, and remove the cmeta state file too.Not Zed2004-01-093-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | | 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. svn path=/trunk/; revision=24126
* *** empty log message ***Rodrigo Moya2004-01-081-0/+2
| | | | svn path=/trunk/; revision=24114
* add groupwise to SUBDIRS new camel provider for groupwise new class to addSivaiah Nallagatla2004-01-085-20/+582
| | | | | | | | | | | 2004-01-08 Sivaiah Nallagatla <snallagatla@novell.com> * providers/Makefile.am : add groupwise to SUBDIRS * providers/groupwise/camel-groupwise-provider.c: new camel provider for groupwise * providers/groupwise/groupwise-config-listener.[ch] : new class to add e-sources for groupwise calender and tasks * providers/groupwise/Makefile.am : added new files to Makefile.am svn path=/trunk/; revision=24111
* renamed from imap_*.Rodrigo Moya2004-01-051-6/+6
| | | | | | | | | 2004-01-05 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c (groupwise_url_hash, groupwise_url_equal): renamed from imap_*. svn path=/trunk/; revision=24044
* g_module_open the other providers we depend on to avoid load orderingRodrigo Moya2003-12-253-0/+205
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-24 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c (camel_provider_module_init): g_module_open the other providers we depend on to avoid load ordering problems. 2003-12-22 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c: removed useless configuration options, and added other options from the IMAP provider. (camel_provider_module_init): register a SMTP transport object also, and removed SASL registration, since we don't support it. 2003-12-19 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/Makefile.am: * providers/groupwise/libcamelgroupwise.urls: * providers/groupwise/camel-groupwise-provider.c: added Camel provider for Groupwise accounts, based on the IMAP one. svn path=/trunk/; revision=24008
* Use CAMEL_FODLER_NOCHILDREN rather than NOINFERIORS because NOINFERIORSJeffrey Stedfast2003-12-111-3/+3
| | | | | | | | | | | | 2003-12-10 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder_info): Use CAMEL_FODLER_NOCHILDREN rather than NOINFERIORS because NOINFERIORS means the folder cannot contain subfolders. However, our mbox structure always allows subfolders. (scan_dir): Same. svn path=/trunk/; revision=23913
* Add a CAMEL_FOLDER_NOCHILDREN flag.Jeffrey Stedfast2003-12-113-4/+3
| | | | | | | | | | | | | 2003-12-10 Jeffrey Stedfast <fejj@ximian.com> * camel-store.h: Add a CAMEL_FOLDER_NOCHILDREN flag. * providers/imap/camel-imap-store.c (get_folders): Same as below. * providers/imap/camel-imap-utils.c (imap_parse_list_response): s/CAMEL_IMAP_FOLDER_NOCHILDREN/CAMEL_FOLDER_NOCHILDREN/ svn path=/trunk/; revision=23911
* ** See bug #51899.Not Zed2003-12-091-2/+3
| | | | | | | | | | | | 2003-12-09 Not Zed <NotZed@Ximian.com> ** See bug #51899. * providers/imap/camel-imap-store.c (get_folders): add the first fi to the info's hash, so we dont duplicate it if we come across it again (which we generally will). svn path=/trunk/; revision=23889
* encode the address before sending it out, rather than using the raw/utf8Not Zed2003-12-093-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-09 Not Zed <NotZed@Ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_send_to): encode the address before sending it out, rather than using the raw/utf8 version. * camel-internet-address.c (camel_internet_address_encode_address): check for quoting the local part of the address before outputting it. (cia_encode_addrspec): quote local part if need be. (camel_internet_address_encode_address): make folding optional based on whether inlen is null or not. * camel-mime-utils.[ch]: rename is_* to camel_mime_is_* and export the type functions. 2003-12-08 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-utils.c (imap_atom_specials): add } to the atom specials list. This isn't correct, but some busted servers expect it. Bug #50728. 2003-12-02 Not Zed <NotZed@Ximian.com> * providers/local/camel-local-folder.c (local_setv): remove some debug printfs. ** See bug #51576. * camel-url.c (camel_url_decode): robustify url decoding for bad input, addresses a crash. svn path=/trunk/; revision=23676
* Fixes bug #51881Jeffrey Stedfast2003-12-092-2/+53
| | | | | | | | | | | | | 2003-12-08 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #51881 * providers/local/camel-mbox-store.c (delete_folder): Same. * providers/local/camel-local-store.c (delete_folder): Unlink the cmeta file too. svn path=/trunk/; revision=23675
* Remove hard coded disable deprecated flagsJP Rosevear2003-12-077-14/+7
| | | | | | | | 2003-12-06 JP Rosevear <jpr@ximian.com> * */Makefile.am: Remove hard coded disable deprecated flags svn path=/trunk/; revision=23658
* Treat parent_name == NULL and parent_name == "" the same.Jeffrey Stedfast2003-12-041-1/+1
| | | | | | | | | 2003-12-03 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (create_folder): Treat parent_name == NULL and parent_name == "" the same. svn path=/trunk/; revision=23609
* Enable GUI option for 'custom command' connection. Don't g_free strings inDavid Woodhouse2003-12-012-1/+8
| | | | | | | | | | | 2003-11-28 David Woodhouse <dwmw2@redhat.com> * providers/imap/camel-imap-provider.c: Enable GUI option for 'custom command' connection. * providers/imap/camel-imap-store.c: Don't g_free strings in .rodata. It's considered rude. svn path=/trunk/; revision=23510
* Fixed an exception to give a more meaningful description.Jeffrey Stedfast2003-11-181-12/+10
| | | | | | | | | | 2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (create_folder): Fixed an exception to give a more meaningful description. (get_folder_info): We always want to scan at least one level deep. svn path=/trunk/; revision=23406
* Fixed an exception to give a more meaningful description.Jeffrey Stedfast2003-11-181-1/+2
| | | | | | | | | 2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (create_folder): Fixed an exception to give a more meaningful description. svn path=/trunk/; revision=23397
* set flags in another place tooJeffrey Stedfast2003-11-151-0/+6
| | | | svn path=/trunk/; revision=23357
* Handle "" as a request for a full dirscan as well (not just NULL). MakesJeffrey Stedfast2003-11-152-19/+24
| | | | | | | | | | | | | | 2003-11-14 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder_info): Handle "" as a request for a full dirscan as well (not just NULL). Makes it consistant with other stores. (scan_dir): Set the fi->flags appropriately. * providers/local/camel-mbox-folder.c (camel_mbox_folder_get_full_path): Removed temporary hack. svn path=/trunk/; revision=23356
* Don't bother trying to see if the server advertises EHLO. Simply alwaysJeffrey Stedfast2003-11-071-18/+9
| | | | | | | | | | 2003-11-05 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (connect_to_server): Don't bother trying to see if the server advertises EHLO. Simply always try EHLO and fall back to HELO if EHLO fails. Fixes bug #50535. svn path=/trunk/; revision=23199
* Fixes bug #35083Jeffrey Stedfast2003-10-293-12/+42
| | | | | | | | | | | | | | | | | | | 2003-10-28 Jeffrey Stedfast <fejj@ximian.com> * Fixes bug #35083 * providers/imap/camel-imap-store.c (connect_to_server): Same here. * providers/pop3/camel-pop3-store.c (connect_to_server): Same as the smtp changes. * providers/smtp/camel-smtp-transport.c (connect_to_server): If HAVE_SSL is undefined, don't default to raw connections if the option to connect via ssl is set. Instead set an exception and return fail. svn path=/trunk/; revision=23110
* Merge new-ui-branch into the trunk.Ettore Perazzoli2003-10-223-11/+25
| | | | svn path=/trunk/; revision=22966
* Removed an unused variable.Jeffrey Stedfast2003-10-091-1/+0
| | | | | | | | | 2003-10-08 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_helo): Removed an unused variable. svn path=/trunk/; revision=22823
* fixed a comment spelling mistake and removede CAMEL_OBJECT() casting where ↵Jeffrey Stedfast2003-09-261-12/+13
| | | | | | it was not needed (ref and unref calls) svn path=/trunk/; revision=22700
* If the localhost lookup results in a numeric IPv6 host, use the formJeffrey Stedfast2003-09-251-1/+3
| | | | | | | | | | 2003-09-25 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_helo): If the localhost lookup results in a numeric IPv6 host, use the form "[IPv6:<addr>]" as specified in rfc2821. Fixes bug #46006. svn path=/trunk/; revision=22694
* If the CREATE flag is set and the parent .sbd directory does not exist,Jeffrey Stedfast2003-09-241-0/+13
| | | | | | | | | | 2003-09-23 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder): If the CREATE flag is set and the parent .sbd directory does not exist, create it. svn path=/trunk/; revision=22677
* ** See bug #41610Not Zed2003-09-231-1/+2
| | | | | | | | | | | 2003-09-22 Not Zed <NotZed@Ximian.com> ** See bug #41610 * providers/pop3/camel-pop3-folder.c (cmd_tocache): protect a divide by 0 for 0 length messages. svn path=/trunk/; revision=22654
* Added "offline_sync" option, which lets you synchronise all mail to localNot Zed2003-09-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. svn path=/trunk/; revision=22648
* Fix the code that creates a new ssl stream to pass the correct argumentsJeffrey Stedfast2003-09-223-4/+8
| | | | | | | | | | | | | | | | | | 2003-09-22 Jeffrey Stedfast <fejj@ximian.com> * providers/nntp/camel-nntp-store.c (connect_to_server): Fix the code that creates a new ssl stream to pass the correct arguments and the proper flags. * providers/imapp/camel-imapp-folder.c (imap_sync): Cast the CamelFolder to a CamelIMAPPFolder to hush some compiler warnings. * camel-mime-utils.h: Define a struct _CamelContentDisposition (allows the imapp code to compile) * providers/imapp/camel-imapp-driver.c: #include <string.h> svn path=/trunk/; revision=22635
* New function to replace the one from camel-mime-part.cJeffrey Stedfast2003-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-09-18 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (camel_transfer_encoding_to_string): New function to replace the one from camel-mime-part.c (camel_transfer_encoding_from_string): Same. (camel_content_transfer_encoding_decode): Renamed from camel_header_content_encoding_decode(). * camel-mime-part.c (camel_mime_part_encoding_to_string): Removed. (camel_mime_part_encoding_from_string): Removed. * camel-data-wrapper.[c,h]: updated for CamelTransferEncoding namespace changes * camel-folder-summary.c: updated for CamelTransferEncoding namespace changes * camel-mime-filter-bestenc.[c,h]: updated for CamelTransferEncoding namespace changes * camel-mime-message.c: updated for CamelTransferEncoding namespace changes * camel-mime-part-utils.c: updated for CamelTransferEncoding namespace changes * camel-multipart-signed.c: updated for CamelTransferEncoding namespace changes * camel-smime-context.c: updated for CamelTransferEncoding namespace changes * providers/imapp/camel-imapp-utils.c: updated for CamelTransferEncoding namespace changes * tests/lib/messages.c: updated for CamelTransferEncoding namespace changes * tests/message/test1.c: updated for CamelTransferEncoding namespace changes svn path=/trunk/; revision=22617
* namespaced the encoding/decoding routines.Jeffrey Stedfast2003-09-192-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-09-18 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.[c,h]: namespaced the encoding/decoding routines. * camel-mime-filter-basic.c: updated for namespace changes to the encoding/decoding routines in camel-mime-utils.c * camel-multipart.c: updated for namespace changes to the encoding/decoding routines in camel-mime-utils.c * camel-sasl-digest-md5.c: updated for namespace changes to the encoding/decoding routines in camel-mime-utils.c * camel-sasl.c: updated for namespace changes to the encoding/decoding routines in camel-mime-utils.c * camel-vee-folder.c: updated for namespace changes to the encoding/decoding routines in camel-mime-utils.c * providers/imap/camel-imap-search.c: updated for namespace changes to the encoding/decoding routines in camel-mime-utils.c * providers/pop3/camel-pop3-folder.c: updated for namespace changes to the encoding/decoding routines in camel-mime-utils.c svn path=/trunk/; revision=22615
* s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g andJeffrey Stedfast2003-09-1917-106/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-08-26 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-parser.[c,h]: s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g and s/_header_state/_camel_mime_parser_state/g * camel-filter-driver.c: Same. * camel-folder-summary.c: Here too. * camel-http-stream.c: And here. * camel-mime-message.c: ... * camel-mime-part-utils.c: ... * camel-mime-part.c: ... * camel-movemail.c: ... * camel-multipart-signed.c: ... * camel-multipart.c: ... * providers/local/camel-mbox-folder.c: ... * providers/local/camel-mbox-summary.c: ... * providers/local/camel-mh-summary.c: ... * providers/nntp/camel-nntp-summary.c: ... * providers/pop3/camel-pop3-folder.c: ... 2003-08-25 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.[c,h]: Namespaced. * camel-data-wrapper.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-digest-folder.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-filter-driver.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-filter-search.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-folder-search.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-folder-summary.[c,h]: updated for namespace changed made to camel-mime-utils.[c,h] * camel-http-stream.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-http-stream.h: updated for namespace changed made to camel-mime-utils.[c,h] * camel-internet-address.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-medium.[c,h]: updated for namespace changed made to camel-mime-utils.[c,h] * camel-mime-message.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-mime-parser.[c,h]: updated for namespace changed made to camel-mime-utils.[c,h] * camel-mime-part-utils.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-mime-part.[c,h]: updated for namespace changed made to camel-mime-utils.[c,h] * camel-movemail.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-multipart-encrypted.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-multipart-signed.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-multipart.c: updated for namespace changed made to camel-mime-utils.[c,h] * camel-search-private.[c,h]: updated for namespace changed made to camel-mime-utils.[c,h] * camel-types.h: updated for namespace changed made to camel-mime-utils.[c,h] * providers/imap/camel-imap-folder.c: updated for namespace changed made to camel-mime-utils.[c,h] * providers/imap/camel-imap-store-summary.c: updated for namespace changed made to camel-mime-utils.[c,h] * providers/imap/camel-imap-utils.c: updated for namespace changed made to camel-mime-utils.[c,h] * providers/imapp/camel-imapp-utils.[c,h]: updated for namespace changed made to camel-mime-utils.[c,h] * providers/local/camel-local-summary.[c,h]: updated for namespace changed made to camel-mime-utils.[c,h] * providers/local/camel-maildir-summary.c: updated for namespace changed made to camel-mime-utils.[c,h] * providers/local/camel-mbox-summary.c: updated for namespace changed made to camel-mime-utils.[c,h] * providers/local/camel-spool-summary.h: updated for namespace changed made to camel-mime-utils.[c,h] * providers/nntp/camel-nntp-summary.c: updated for namespace changed made to camel-mime-utils.[c,h] * providers/nntp/camel-nntp-utils.c: updated for namespace changed made to camel-mime-utils.[c,h] * providers/pop3/camel-pop3-folder.c: updated for namespace changed made to camel-mime-utils.[c,h] * providers/sendmail/camel-sendmail-transport.c: updated for namespace changed made to camel-mime-utils.[c,h] * providers/smtp/camel-smtp-transport.c: updated for namespace changed made to camel-mime-utils.[c,h] svn path=/trunk/; revision=22613
* Implement a temp hack so trunk works until we merge in new-ui-branch.Jeffrey Stedfast2003-09-171-10/+15
| | | | | | | | | | 2003-09-16 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-folder.c (camel_mbox_folder_get_full_path): Implement a temp hack so trunk works until we merge in new-ui-branch. svn path=/trunk/; revision=22594
* removed dead code.Not Zed2003-09-166-239/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-09-15 Not Zed <NotZed@Ximian.com> * providers/imapp/camel-imapp-store.c (store_resp_list) (imap_login, try_sasl, imap_try_authenticate): removed dead code. * providers/imapp/camel-imapp-stream.c: return -1 if stream not set. * providers/imapp/camel-imapp-engine.c (iterate_completion): put done request on the done queue, so all requests are always somewhere. (camel_imapp_engine_command_free): just spit warnings of active messages being freed, but abort if the item isn't in any list. Also remove the node from its list before going on. (iterate_untagged, iterate_continuation, iterate_completion): staticifiy. * providers/imapp/camel-imapp-provider.c (camel_imapp_module_init): move camel_exception_setup call here. * providers/imapp/camel-imapp-driver.c (camel_imapp_driver_get_type): remove execption setup here, it isn't early enough. (camel_imapp_driver_list): handle exceptions. svn path=/trunk/; revision=22583
* Implements CamelLocalFolder::get_full_path() (publicly namespaced so thatJeffrey Stedfast2003-09-135-51/+666
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-09-12 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-folder.c (camel_mbox_folder_get_full_path): Implements CamelLocalFolder::get_full_path() (publicly namespaced so that CamelMboxStore can re-use them). (camel_mbox_folder_get_meta_path): Same. * providers/local/camel-mbox-store.c (get_folder): Changed the way the path is constructed, since we now handle subdirectories and stuff. (delete_folder): Try deleting the Folder.sbd directory. We also need to manage our own meta files since CamelLocalStore's impl constructs paths differently than what we need. (create_folder): Implemented. (rename_folder): Implemented. (scan_dir): Scan an mbox tree (get_folder_info): Implemented using scan_dir(). * providers/local/camel-local-store.c (delete_folder): Set fi->url to the correct value, meaning we need to prefix it with the protocol and the folder_name is not actually part of the path, it is a separate component to the url. * providers/local/camel-local-folder.c (camel_local_folder_construct): Use the new class virtual method to construct the full folder path and all the meta files. (local_get_full_path): Implemented default get_full_path method. (local_get_meta_path): Implemented default get_meta_path method. svn path=/trunk/; revision=22557
* updated warning to mention the proper rfcJeffrey Stedfast2003-09-131-2/+2
| | | | svn path=/trunk/; revision=22555
* addDan Winship2003-09-111-0/+11
| | | | svn path=/trunk/; revision=22518
* call camel_folder_sync bypassing the folder lock. SeeNot Zed2003-09-091-2/+2
| | | | | | | | | | 2003-09-05 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (imap_noop): call camel_folder_sync bypassing the folder lock. See imap_store_refresh_folders too. svn path=/trunk/; revision=22487
* Add PREAUTH handling and pine/mutt/etpan/etc.-style 'ssh <mailhost> execDavid Woodhouse2003-09-052-2/+164
| | | | | | | | | 2003-09-04 David Woodhouse <dwmw2@infradead.org> * providers/camel-imap-store.[ch]: Add PREAUTH handling and pine/mutt/etpan/etc.-style 'ssh <mailhost> exec imapd' support. svn path=/trunk/; revision=22463
* Need to copy the local properties list before passing it out, since it'sNot Zed2003-08-301-1/+1
| | | | | | | | | 2003-08-29 Not Zed <NotZed@Ximian.com> * providers/local/camel-local-folder.c (local_getv): Need to copy the local properties list before passing it out, since it's freed. svn path=/trunk/; revision=22418
* implement PERSISTENT_PROPERTIES, for index mode.Not Zed2003-08-282-12/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-08-27 Not Zed <NotZed@Ximian.com> * providers/local/camel-local-folder.c (local_getv): implement PERSISTENT_PROPERTIES, for index mode. * camel-object.c (cobject_state_read): Also add property reading, and bump version to 1. (cobject_state_write): add persistent property writing. 2003-08-26 Not Zed <NotZed@Ximian.com> * camel-folder.c (folder_getv): chain up properly. * camel-file-utils.c (camel_file_util_savename): helper to create a .#filename filename. * providers/local/camel-local-folder.c (camel_local_folder_construct): init meta-data for local folders. (local_getv): chain up properly, if args are not processed, rather than don't if they aren't. 2003-08-23 Not Zed <NotZed@Ximian.com> * camel-object.c (cobject_class_init): added a new event, meta_changed. (camel_object_meta_set, camel_object_meta_get): meta-data api. (camel_object_free_hooks): Free meta-data if it is set on the object. * providers/local/camel-local-folder.c (camel_local_folder_get_type): setup a property list for local folders, just 'index_body' at present. svn path=/trunk/; revision=22388
* temporarily reverting my camel namespace patches until after we merge in ↵Jeffrey Stedfast2003-08-2717-109/+106
| | | | | | some of the other branches svn path=/trunk/; revision=22373