aboutsummaryrefslogtreecommitdiffstats
path: root/camel
Commit message (Collapse)AuthorAgeFilesLines
* Kill dead filesJP Rosevear2005-01-11480-162889/+0
| | | | svn path=/trunk/; revision=28342
* have our own so we don't need to link with glib.Not Zed2004-12-03116-1181/+1485
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * camel-lock-helper.c (g_strerror): have our own so we don't need to link with glib. * providers/*/Makefile.am: Do not install ANY provider header files. No providers are subclassable. No providers are directly linkable. * camel.pc.in: create package config file. * tests/lib/folders.c (test_folder_message_ops): updated counts for delete also marking unread. * tests/lib/camel-test.c (camel_test_provider_init): new api for initialising test system 'in-build'. * camel-provider.c: remove the assertions, init if we need to,k use pthread_once stuff to serialise it. * tests/folder/test3.c (main): remove gtk stuff (???). * tests/*: Fix all the makefiles. Made make-check work 'in-build'. * tests/lib/folders.c (test_folder_counts): update for api changes. (test_message_info): similar. * providers/Makefile.am: removed groupwise from the build, this can't go in here anymore, not in its current state. * camel-net-utils.c (camel_gethostbyaddr_r) (camel_gethostbyname_r): the old e_gethost* calls from e-host-utils.c. 2004-11-15 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-utils.c (imap_path_to_physical): copied from e-path.c. (imap_path_find_folders): copied from e-path.c. * camel.h: remove the provider stuff from the header. * camel-provider.c: globalise provider_init variable, and asserton it in all functions that rely on it. * camel-service.c: removed getaddrinfo/etc. * camel-net-utils.[ch]: separate out camel_getaddrinfo etc. * Makefile.am: split camel into 2 libraries, libcamel and libcamel-store. * camel-multipart-signed.c (camel_multipart_signed_sign) (camel_multipart_signed_verify, prepare_sign): remove old deprecated api. * camel-multipart-encrypted.c (camel_multipart_encrypted_encrypt) (camel_multipart_encrypted_decrypt): remove old deprecated api. svn path=/trunk/; revision=28046
* add mnemonic for checkboxes.Mengjie Yu2004-12-012-8/+12
| | | | | | | | 2004-12-01 Mengjie Yu <meng-jie.yu@sun.com> * providers/imap/camel-imap-provider.c:add mnemonic for checkboxes. svn path=/trunk/; revision=28030
* ** See bug #69776.Not Zed2004-12-012-7/+20
| | | | | | | | | | | | | | 2004-12-01 Not Zed <NotZed@Ximian.com> ** See bug #69776. * camel-multipart-signed.c (parse_boundary): take end of data argument, so it handles binary data. Use a binary data string search rather than strstr. (parse_content): dont bother to append a \0 on the end of the data, not binary capable. svn path=/trunk/; revision=28026
* ** See bug #69615.Not Zed2004-12-014-45/+33
| | | | | | | | | | | | | | | | | | | 2004-11-23 Not Zed <NotZed@Ximian.com> ** See bug #69615. * camel-smime-context.c (sm_get_passwd): removed. All callers that passed it now pass NULL. This is so we don't override the password function set by e-cert-db. Seems to work ok, I think. 2004-11-22 Not Zed <NotZed@Ximian.com> ** See bug #69109. * providers/smtp/camel-smtp-transport.c (smtp_helo): if we have ipv6 address and it is numeric, prefix it with "IPv6:" svn path=/trunk/; revision=28025
* rename to STREAM_LINE_SIZE so it doesn't override the STREAM_LINE enum.Not Zed2004-12-012-3/+10
| | | | | | | | | | | 2004-11-30 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-stream.c (CAMEL_NNTP_STREAM_LINE): rename to STREAM_LINE_SIZE so it doesn't override the STREAM_LINE enum. Sigh. (camel_nntp_stream_init): fix for above change. svn path=/trunk/; revision=28021
* ** See bug #69446.S.Çağlar Onur2004-12-0115-55/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-28 S.Çağlar Onur <caglar@uludag.org.tr> ** See bug #69446. * evolution-2.0.2/camel/camel-charset-map.c (camel_charset_iso_to_windows) * evolution-2.0.2/camel/camel-filter-search.c (check_header) * evolution-2.0.2/camel/camel-folder-search.c (check_header) * evolution-2.0.2/camel/camel-folder-summary.c (message_info_new,summary_build_content_info,camel_system_flag) * evolution-2.0.2/camel/camel-html-parser.c (camel_html_parser_attr) * evolution-2.0.2/camel/camel-mime-filter-enriched.c (param_parse,camel_mime_filter_enriched_init) * evolution-2.0.2/camel/camel-mime-parser.c (folder_scan_step,main) * evolution-2.0.2/camel/camel-mime-utils.c (camel_header_param,camel_header_set_param,camel_content_type_is,camel_transfer_encoding_from_string,camel_conten t_type_format,camel_content_type_simple,camel_header_decode_date,header_raw_find_node) * evolution-2.0.2/camel/camel-sasl-digest-md5.c (decode_data_type) * evolution-2.0.2/camel/providers/imap/camel-imap-command.c (camel_imap_response_free) * evolution-2.0.2/camel/providers/imap/camel-imap-folder.c (camel_imap_folder_new,camel_imap_folder_selected,imap_refresh_info,camel_imap_folder_new,camel_i map_folder_selected) * evolution-2.0.2/camel/providers/imap/camel-imap-store.c (imap_get_capability,imap_connect_online,get_folder_online,get_folder_offline,get_subscribed_folde rs,folder_hash,get_folders) * evolution-2.0.2/camel/providers/pop3/camel-pop3-store.c (get_folder) * evolution-2.0.2/camel/tests/lib/folders.c: (test_folder_message_ops) some strcasecmp() calls changed with g_ascii_strcasecmp() for Turkish character conversiton problems [ http://www.i18nguy.com/unicode/turkish-i18n.html ] svn path=/trunk/; revision=28019
* new init method implementationRadek Doulik2004-11-253-0/+19
| | | | | | | | | | 2004-10-12 Radek Doulik <rodo@ximian.com> * camel-junk-plugin.c: new init method implementation * camel-junk-plugin.h: added junk plugin init declaration svn path=/trunk/; revision=27989
* ** See bug #69109.Not Zed2004-11-223-9/+23
| | | | | | | | | | | | | | 2004-11-10 Not Zed <NotZed@Ximian.com> ** See bug #69109. * camel-service.c (cs_getnameinfo): honour the NI_NAMEREQD flag. * providers/smtp/camel-smtp-transport.c (smtp_helo): change the nameinfo flags a bit so we know when we got a numeric name and need to wrap it in []. svn path=/trunk/; revision=27959
* added a setting to mark the account for offline usuageSivaiah Nallagatla2004-11-223-20/+64
| | | | | | | | | | | | | | | 2004-11-21 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-groupwise-provider.c : added a setting to mark the account for offline usuage * providers/groupwise/came-gw-listener.c (add_esource) (modify_esource) : changed the prototypes to pass CamelUrl instead of individual properties Add offline_sync property on e-sources if account is marked for offline svn path=/trunk/; revision=27951
* Make debug run based on 'nntp' debug option.Not Zed2004-11-194-19/+53
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-18 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-stream.c: * providers/nntp/camel-nntp-store.c: * providers/nntp/camel-nntp-summary.c: Make debug run based on 'nntp' debug option. * providers/nntp/camel-nntp-stream.c (stream_fill): if we get a 0 read, return ECONNRESET. This should really have been put on the stream for that imap hack fix. * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate): retry if the password attempt failed. ** See bug #68556. * providers/nntp/camel-nntp-store.c (xover_setup): don't overwrite exception if we get a failure. (camel_nntp_command): if we continue, then set the return code to -1, so we re-loop rather than abort. svn path=/trunk/; revision=27946
* In the fallback cases, clear the exception first.Jeffrey Stedfast2004-11-164-7/+27
| | | | | | | | | | | | | | | 2004-11-15 Jeffrey Stedfast <fejj@novell.com> * providers/pop3/camel-pop3-store.c (connect_to_server_wrapper): In the fallback cases, clear the exception first. * providers/imap/camel-imap-store.c (connect_to_server_wrapper): In the fallback cases, clear the exception first. * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper): In the fallback cases, clear the exception first. svn path=/trunk/; revision=27928
* Use camel_tcp_stream_ssl_new_raw() for STARTTLS stream.Jeffrey Stedfast2004-11-164-9/+19
| | | | | | | | | | | | | | | | | | | | | | 2004-11-15 Jeffrey Stedfast <fejj@novell.com> * providers/imap/camel-imap-store.c (connect_to_server): Use camel_tcp_stream_ssl_new_raw() for STARTTLS stream. * providers/imap4/camel-imap4-store.c (connect_to_server): Use camel_tcp_stream_ssl_new_raw() for STARTTLS stream. * providers/pop3/camel-pop3-store.c: Change default port numbers to be correct (they shouldn't all be the pop3s port). (connect_to_server): Moved the last tcp_stream unref to afetr the last fail-check so that we won't ever get a double-unref on something we only own one ref on. (connect_to_server): Unref the tcp_stream if we fail to create an engine object before returning fail. (connect_to_server): Use camel_tcp_stream_ssl_new_raw() for STARTTLS stream. svn path=/trunk/; revision=27927
* Moved the last tcp_stream unref to afetr the last fail-check so that weJeffrey Stedfast2004-11-162-1/+3
| | | | | | | | | | | | 2004-11-15 Jeffrey Stedfast <fejj@novell.com> * providers/pop3/camel-pop3-store.c (connect_to_server): Moved the last tcp_stream unref to afetr the last fail-check so that we won't ever get a double-unref on something we only own one ref on. (connect_to_server): Unref the tcp_stream if we fail to create an engine object before returning fail. svn path=/trunk/; revision=27926
* Moved the last tcp_stream unref to afetr the last fail-check so that weJeffrey Stedfast2004-11-162-2/+6
| | | | | | | | | | 2004-11-15 Jeffrey Stedfast <fejj@novell.com> * providers/pop3/camel-pop3-store.c (connect_to_server): Moved the last tcp_stream unref to afetr the last fail-check so that we won't ever get a double-unref on something we only own one ref on. svn path=/trunk/; revision=27925
* Fix bug #69408 by filling our input buffer if inptr == inend.Jeffrey Stedfast2004-11-162-1/+9
| | | | | | | | | 2004-11-15 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_line): Fix bug #69408 by filling our input buffer if inptr == inend. svn path=/trunk/; revision=27924
* Handle numeric tokens for the COPYUID set values as well.Jeffrey Stedfast2004-11-142-8/+22
| | | | | | | | | | 2004-11-13 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-engine.c (camel_imap4_engine_parse_resp_code): Handle numeric tokens for the COPYUID set values as well. svn path=/trunk/; revision=27912
* Folder now gets set on the CamelFolderSummary object rather than theJeffrey Stedfast2004-11-133-18/+24
| | | | | | | | | | | | | | | | | | 2004-11-12 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-summary.c (camel_imap4_summary_new): Folder now gets set on the CamelFolderSummary object rather than the CamelIMAP4Summary. (imap4_fetch_all_update): Base summary class now has a folder member, use that instead. (imap4_fetch_all_add): Same. (imap4_summary_fetch_all): Same. (imap4_summary_fetch_flags): Same. (camel_imap4_summary_set_uidvalidity): Same. (camel_imap4_summary_expunge): Same. (camel_imap4_summary_flush_updates): Same. svn path=/trunk/; revision=27908
* Init appended_uid value to NULLJeffrey Stedfast2004-11-132-0/+6
| | | | | | | | | 2004-11-12 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-folder.c (imap4_append_message): Init appended_uid value to NULL svn path=/trunk/; revision=27907
* Properly handle NILs for the namespace separator (somehow I missed this,Jeffrey Stedfast2004-11-132-3/+19
| | | | | | | | | | 2004-11-12 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-engine.c (engine_parse_namespace): Properly handle NILs for the namespace separator (somehow I missed this, silly me). svn path=/trunk/; revision=27906
* ** Merge in notzed-messageinfo-branch, fix some minor conflicts.Not Zed2004-11-1262-1456/+2266
| | | | | | | | 2004-11-12 Not Zed <NotZed@Ximian.com> ** Merge in notzed-messageinfo-branch, fix some minor conflicts. svn path=/trunk/; revision=27898
* Free the passwd here if we need to retry to authenticate.Jeffrey Stedfast2004-11-122-1/+9
| | | | | | | | | 2004-11-11 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_reconnect): Free the passwd here if we need to retry to authenticate. svn path=/trunk/; revision=27895
* #define d()Jeffrey Stedfast2004-11-121-0/+2
| | | | svn path=/trunk/; revision=27892
* removed some debug printf'sJeffrey Stedfast2004-11-111-5/+5
| | | | svn path=/trunk/; revision=27889
* Use the expanded ALL macro as on closer inspection of the RFC, we're notJeffrey Stedfast2004-11-113-12/+13
| | | | | | | | | | | 2004-11-10 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all): Use the expanded ALL macro as on closer inspection of the RFC, we're not allowed to use macros in conjunction with other FETCH items (such as UID in our case). svn path=/trunk/; revision=27888
* include a headerJeffrey Stedfast2004-11-111-0/+1
| | | | svn path=/trunk/; revision=27887
* enabled \\Recent flagJeffrey Stedfast2004-11-113-9/+11
| | | | svn path=/trunk/; revision=27885
* before short-circuiting the check for child content, check the childNot Zed2004-11-102-16/+35
| | | | | | | | | | | | | | | | | | | 2004-11-09 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (imap_get_message): before short-circuiting the check for child content, check the child content info is actually correct. 2004-11-08 Not Zed <NotZed@Ximian.com> ** See bug #69145. * providers/imap/camel-imap-folder.c (get_message): remove spec argument, always calculate it from the content-info. (content_info_incomplete): recursively check the content-info for completeness, not just one level. svn path=/trunk/; revision=27882
* Updated the properties to include all the same settings as the old imapJeffrey Stedfast2004-11-104-0/+121
| | | | | | | | | | | | 2004-11-09 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-provider.c: Updated the properties to include all the same settings as the old imap code. * providers/imap4/camel-imap4-folder.c (imap4_getv): Implemented. (imap4_setv): Implemented. svn path=/trunk/; revision=27880
* remoevd unused varsJeffrey Stedfast2004-11-101-2/+0
| | | | svn path=/trunk/; revision=27877
* Fix for bug #69241.Jeffrey Stedfast2004-11-102-10/+27
| | | | | | | | | | | | | | | 2004-11-08 Jeffrey Stedfast <fejj@novell.com> Fix for bug #69241. * camel-gpg-context.c (gpg_decrypt): We need to extract just the application/pgp-encrypted part from the multipart/encrypted that gets passed in. Added checks to verify that the input part is the correct type as well. Once we have the application/pgp-encrypted part, we need to use camel_data_wrapper_decode_to_stream() in case the part was encoded in any way. svn path=/trunk/; revision=27876
* Handle not getting the CRLF pair together. Also don't require that we haveJeffrey Stedfast2004-11-105-10/+31
| | | | | | | | | | | | | | | | | 2004-11-09 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_line): Handle not getting the CRLF pair together. Also don't require that we have at least 3 bytes in the read buffer as it is possible we don't have that much (see bug #69160). 2004-11-08 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_subscribe_folder): Note the folder-info just subscribed. (imap4_unsubscribe_folder): Unnote the folder-info. svn path=/trunk/; revision=27875
* Added much in-line documentation. (engine_parse_capability): UseJeffrey Stedfast2004-11-053-9/+165
| | | | | | | | | | | 2004-11-04 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-engine.c: Added much in-line documentation. (engine_parse_capability): Use g_ascii_str[n]casecmp(). (camel_imap4_engine_nstring): New convenience function. svn path=/trunk/; revision=27843
* check interfaces for events too. (camel_object_trigger_event): checkNot Zed2004-11-045-38/+397
| | | | | | | | | | | | | | | 2004-11-02 Not Zed <NotZed@Ximian.com> * camel-object.c (camel_object_hook_event): check interfaces for events too. (camel_object_trigger_event): check interfaces for events too. (camel_object_class_add_event): more checks for interfaces vs normal object classes. (camel_object_class_add_interface): add an interface to a class. (camel_object_get_interface): query for interfaces on an object. (camel_object_get_type): register the interface type. svn path=/trunk/; revision=27834
* Don't bother getting the folder delim if the name is "" since we don'tJeffrey Stedfast2004-11-033-19/+22
| | | | | | | | | | | | | | 2004-11-02 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_folder_utf7_name): Don't bother getting the folder delim if the name is "" since we don't need it in that case. * providers/imap4/camel-imap4-utils.c (camel_imap4_get_path_delim): add an assert that s->namespaces is non-NULL. svn path=/trunk/; revision=27804
* If namespaces is NULL, return the default folder delim ('/').Jeffrey Stedfast2004-11-032-0/+7
| | | | | | | | | | 2004-11-02 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-utils.c (camel_imap4_get_path_delim): If namespaces is NULL, return the default folder delim ('/'). svn path=/trunk/; revision=27803
* Update stream->inptr after fetching the literal chunk.Jeffrey Stedfast2004-11-032-0/+6
| | | | | | | | | | 2004-11-02 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_literal): Update stream->inptr after fetching the literal chunk. svn path=/trunk/; revision=27800
* Do proper cleanup in case of error and also handle literals.Jeffrey Stedfast2004-11-032-9/+40
| | | | | | | | | 2004-11-02 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-summary.c (envelope_decode_address): Do proper cleanup in case of error and also handle literals. svn path=/trunk/; revision=27798
* Removed camel_service_connect() call which is no longer needed.Jeffrey Stedfast2004-11-032-7/+15
| | | | | | | | | | | | | 2004-11-02 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_get_folder_info): Removed camel_service_connect() call which is no longer needed. (imap4_connect): If engine is already connected, shortcut to simply returning success. (imap4_disconnect): Check engine state rather than poking at stream state. svn path=/trunk/; revision=27797
* Do the same SSL->TLS and TLS->CLEAR fallbacks that the 2.0 (and older)Jeffrey Stedfast2004-11-025-8/+32
| | | | | | | | | | | | | | | | 2004-11-01 Jeffrey Stedfast <fejj@novell.com> * providers/smtp/camel-smtp-transport.c (connect_to_server_wrapper): Do the same SSL->TLS and TLS->CLEAR fallbacks that the 2.0 (and older) code did. * providers/pop3/camel-pop3-store.c (connect_to_server_wrapper): Same. * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper): Same. * providers/imap/camel-imap-store.c (connect_to_server_wrapper): Same. svn path=/trunk/; revision=27786
* Remove expunged messages from the cache.Jeffrey Stedfast2004-11-025-8/+71
| | | | | | | | | | | | | | | | | | | 2004-11-01 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-summary.c (camel_imap4_summary_expunge): Remove expunged messages from the cache. (camel_imap4_summary_set_uidvalidity): Clear the cache if the UIDVALIDITY has changed. * providers/imap4/camel-imap4-folder.c (imap4_get_message): If the message exists in the cache, use that rather than fetching it from the server and cache messages fetched from the server for later use. (camel_imap4_folder_finalize): Unref the cache if non-NULL. (camel_imap4_folder_new): Create the CamelDataCache. svn path=/trunk/; revision=27784
* Cache the folder-info on the summary if successful. (imap4_delete_folder):Jeffrey Stedfast2004-11-024-7/+32
| | | | | | | | | | | | | | | | | 2004-11-01 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_create_folder): Cache the folder-info on the summary if successful. (imap4_delete_folder): Un-cache the folder-info from the summary. * providers/imap4/camel-imap4-store-summary.c (load_namespaces): Cleaned up a bit. (save_namespaces): Same. (camel_imap4_store_summary_unnote_info): New function. (camel_imap4_store_summary_get_folder_info): Fixed the logic a bit. svn path=/trunk/; revision=27782
* Cleaned up a bit. (save_namespaces): Same.Jeffrey Stedfast2004-11-022-27/+37
| | | | | | | | | | 2004-11-01 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store-summary.c (load_namespaces): Cleaned up a bit. (save_namespaces): Same. svn path=/trunk/; revision=27779
* Handle literal strings. (envelope_decode_date): Same. Fixes bug #68894.Jeffrey Stedfast2004-10-292-0/+29
| | | | | | | | | | 2004-10-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-summary.c (envelope_decode_nstring): Handle literal strings. (envelope_decode_date): Same. Fixes bug #68894. svn path=/trunk/; revision=27759
* Properly tokenise "\*" as a flag token. Fixes bug #68869.Jeffrey Stedfast2004-10-282-0/+10
| | | | | | | | | | 2004-10-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_next_token): Properly tokenise "\*" as a flag token. Fixes bug #68869. svn path=/trunk/; revision=27758
* #include "camel-i18n.h"Björn Torkelsson2004-10-282-0/+5
| | | | | | | | 2004-10-21 Björn Torkelsson <torkel@acc.umu.se> * camel-sasl-kerberos4.c: #include "camel-i18n.h" svn path=/trunk/; revision=27746
* fix the arguments to pthread_key_delete.Julio M. Merino Vidal2004-10-272-1/+6
| | | | | | | | | 2004-10-27 Julio M. Merino Vidal <jmmv@menta.net> * camel-operation.c (camel_operation_shutdown): fix the arguments to pthread_key_delete. svn path=/trunk/; revision=27733
* New files implementing a folder-info cache for offline mode (and fasterJeffrey Stedfast2004-10-2711-50/+707
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-26 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store-summary.[c,h]: New files implementing a folder-info cache for offline mode (and faster startup I guess). * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): Cache the folder-info for later use in offline mode. * providers/imap4/camel-imap4-utils.c (camel_imap4_get_path_delim): Instead of assigning top = "INBOX", do strcpy (top, "INBOX") so that we can later modify the string. Fixes bug #68814. 2004-10-25 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-engine.c (engine_parse_namespace): Updated to use the public function in camel-imap4-utils.c (camel_imap4_engine_finalize): Same. * providers/imap4/camel-imap4-store.c (imap4_construct): Setup and load the store summary. (camel_imap4_store_finalize): Unref the store summary. (imap4_get_folder): Implemented offline support. (imap4_folder_utf7_name): Pass the summary to get_delim rather than the engine. (imap4_create_folder): Same. (imap4_reconnect): Update the namespaces on the store summary. (connect_to_server): Update the store summary capabilities. * providers/imap4/camel-imap4-utils.c (camel_imap4_get_path_delim): Now takes a store-summary rather than an engine so that it will work in offline mode. (camel_imap4_namespace_clear): Moved here from camel-imap4-engine.c (camel_imap4_namespace_list_copy): New convenience function. (camel_imap4_namespace_list_free): New. * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new): Check the return value of summary loading in offline mode (if it fails, we can't get the folder). svn path=/trunk/; revision=27730
* #include "camel-i18n.h"Jeffrey Stedfast2004-10-222-0/+5
| | | | | | | | 2004-10-21 Jeffrey Stedfast <fejj@novell.com> * camel-sasl-gssapi.c: #include "camel-i18n.h" svn path=/trunk/; revision=27687
* Don't allow users to create folders in offline mode. When in offline mode,Jeffrey Stedfast2004-10-213-8/+86
| | | | | | | | | | | | | | | | | | | | | | | 2004-10-20 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c (imap4_get_folder): Don't allow users to create folders in offline mode. When in offline mode, use a different codepath to get a folder object. (imap4_noop): Handle offline mode. (imap4_unsubscribe_folder): Throw an exception if we are in offline mode. (imap4_subscribe_folder): Same. (imap4_get_folder_info): Started to implement offline support. Also, even if we are in online mode but the engine has not yet been connected, we should follow the "offline" code path and get the folder info's from the cache. (imap4_rename_folder): Disallow in offline mode. (imap4_delete_folder): Same. (imap4_connect): Handle offline mode. (imap4_disconnect): Handle offline mode and do proper locking. (imap4_query_auth_types): Same. svn path=/trunk/; revision=27660
* Removed an already-fixed FIXME comment. (imap4_summary_fetch_flags): Same.Jeffrey Stedfast2004-10-215-115/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-19 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all): Removed an already-fixed FIXME comment. (imap4_summary_fetch_flags): Same. * providers/imap4/camel-imap4-folder.c (imap4_get_path_delim): Removed. Use camel_imap4_get_path_delim() instead. (camel_imap4_folder_new): Updated. (imap4_sync): If we aren't online, we're done. nothing to do. (imap4_refresh_info): Same. (imap4_append_message): Same but set an exception. (imap4_transfer_messages_to): Same. * providers/imap4/camel-imap4-utils.c (camel_imap4_get_path_delim): Moved here from camel-imap4-store.c * providers/imap4/camel-imap4-store.c (imap4_try_authenticate): Change the service string for the sasl mechanism to"imap" rather than "imap4". (imap4_get_path_delim): Removed. (imap4_create_folder): Updated. (imap4_folder_utf7_name): Same. svn path=/trunk/; revision=27651
* updated commentJeffrey Stedfast2004-10-211-0/+1
| | | | svn path=/trunk/; revision=27650
* Removed an already-fixed FIXME comment. (imap4_summary_fetch_flags): Same.Jeffrey Stedfast2004-10-202-8/+6
| | | | | | | | | | 2004-10-19 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all): Removed an already-fixed FIXME comment. (imap4_summary_fetch_flags): Same. svn path=/trunk/; revision=27630
* fixedJeffrey Stedfast2004-10-201-6/+6
| | | | svn path=/trunk/; revision=27629
* Change the service string for the sasl mechanism to"imap" rather thanJeffrey Stedfast2004-10-192-1/+7
| | | | | | | | | | 2004-10-18 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-store.c (imap4_try_authenticate): Change the service string for the sasl mechanism to"imap" rather than "imap4". svn path=/trunk/; revision=27609
* renamed delete_originals to move. clearer. cleaner. shorter. not as ugly.Jeffrey Stedfast2004-10-161-5/+5
| | | | svn path=/trunk/; revision=27601
* added gtk-doc commentsJeffrey Stedfast2004-10-161-1/+14
| | | | svn path=/trunk/; revision=27600
* kill cast as lvalue warning.Not Zed2004-10-1315-58/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-13 Not Zed <NotZed@Ximian.com> * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new) (imap4_sync_changes, imap4_sync): * providers/imap4/camel-imap4-summary.c (untagged_fetch_all): kill cast as lvalue warning. * camel-string-utils.h: add prototype for camel_toupper. * providers/imap4/camel-imap4-utils.c: * providers/imap4/camel-imap4-summary.c: * providers/imap4/camel-imap4-folder.c: * providers/imap4/camel-imap4-engine.c: * providers/imap4/camel-imap4-command.c: * providers/imap4/camel-imap4-store.c: include camel-i18n.h. 2004-10-12 Not Zed <NotZed@Ximian.com> ** See bug ??? * providers/nntp/camel-nntp-store.c (connect_to_server): if we have a username, try to authenticate before doing anything else. ** See bug #67895. * providers/nntp/camel-nntp-summary.c (add_range_xover) (add_range_head): use raw_command_auth since we might need auth here. * providers/nntp/camel-nntp-store.c (camel_nntp_raw_command_auth): new almost-raw command that also does auth. (xover_setup, connect_to_server, camel_nntp_command): use raw_command_auth since we might need auth here. 2004-10-12 Not Zed <NotZed@Ximian.com> ** See bug #67898 and probably others. * providers/imapp/camel-imapp-store.c (connect_to_server): * providers/pop3/camel-pop3-store.c (connect_to_server_wrapper): * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper): * providers/imap/camel-imap-store.c (connect_to_server_wrapper): * providers/nntp/camel-nntp-store.c (connect_to_server_wrapper): * providers/smtp/camel-smtp-transport.c (connect_to_server_wrapper): Fallback to hard-coded port number if the name lookup fails and no port was supplied. svn path=/trunk/; revision=27562
* ** See bug #67211.Not Zed2004-10-122-1/+13
| | | | | | | | | | | | 2004-10-11 Not Zed <NotZed@Ximian.com> ** See bug #67211. * camel-mime-utils.c (camel_header_raw_check_mailing_list): initialise the match start/end pointers, since some regexec's don't seem to do it. svn path=/trunk/; revision=27541
* fix for #62053Sivaiah Nallagatla2004-10-111-3/+43
| | | | svn path=/trunk/; revision=27530
* add the source uid to list of selected calendar and tasks so thatSivaiah Nallagatla2004-10-111-0/+8
| | | | | | | | | | | | 2004-10-09 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listner.c (add_esource) : add the source uid to list of selected calendar and tasks so that groupwise calendar and tasks are automatically selected (remove_esource) : remove the uids from corresponding gconf keys Fixes #62053 svn path=/trunk/; revision=27529
* ** See bug #67170.Not Zed2004-10-112-3/+11
| | | | | | | | | | | | 2004-10-08 Not Zed <NotZed@Ximian.com> ** See bug #67170. * providers/nntp/camel-nntp-store.c (nntp_store_get_cached_folder_info): compare newsgroup names case sensitively. svn path=/trunk/; revision=27528
* Check msg->result for error and set an exception if appropriate.Jeffrey Stedfast2004-10-072-11/+37
| | | | | | | | | | | | | | | | 2004-10-05 Jeffrey Stedfast <fejj@novell.com> * camel-service.c (camel_getaddrinfo): Check msg->result for error and set an exception if appropriate. (camel_getnameinfo): Same. 2004-10-04 Jeffrey Stedfast <fejj@novell.com> * camel-service.c (camel_getaddrinfo): Add a non-const cast for hints when changing the ai_family member in the IPv6-disabled case. Fixes bug #67028. svn path=/trunk/; revision=27482
* ** See bug #67527.Not Zed2004-10-062-6/+10
| | | | | | | | | | | | 2004-10-05 Not Zed <NotZed@Ximian.com> ** See bug #67527. * camel-service.c (cs_getaddrinfo, cs_getnameinfo): don't loop on EAI_AGAIN, it doesn't appear to mean the same as EAGAIN does with system calls (i guess 'no shit sherlock' really). svn path=/trunk/; revision=27472
* include camel-i18n.hJP Rosevear2004-10-042-0/+5
| | | | | | | | 2004-10-04 JP Rosevear <jpr@novell.com> * providers/imap4/camel-imap4-provider.c: include camel-i18n.h svn path=/trunk/; revision=27458
* Avoid assigning a value to the member of a const struct (which newer gcc'sJeffrey Stedfast2004-10-022-1/+7
| | | | | | | | | | 2004-10-01 Jeffrey Stedfast <fejj@novell.com> * camel-service.c (camel_getaddrinfo): Avoid assigning a value to the member of a const struct (which newer gcc's apparently break over) by casting to non-const. svn path=/trunk/; revision=27449
* make the build again, warnings, doesn't work.Not Zed2004-10-012-4/+13
| | | | | | | | | 2004-09-30 Not Zed <NotZed@Ximian.com> * camel-imapp-engine.c: make the build again, warnings, doesn't work. svn path=/trunk/; revision=27440
* ** See bug #66509.Not Zed2004-09-297-141/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-09-28 Not Zed <NotZed@Ximian.com> ** See bug #66509. * providers/nntp/camel-nntp-store.c (camel_nntp_command): if we get an error selecting the folder, disconnect/include it in the re-try loop. (camel_nntp_command): don't set the exception based on errno, exception processing is already done. don't clear it if we're on the 3rd retry. 2004-09-27 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-store.c (nntp_get_folder_info): don't do any locking here. (nntp_store_get_folder_info_all): move the locking here. (nntp_store_get_subscribed_folder_info): and some here too. * providers/nntp/camel-nntp-store.c: * providers/nntp/camel-nntp-folder.c: Remove nntp command_lock and just use the service connect lock for serialisation. svn path=/trunk/; revision=27419
* s/not/no/ in the error string. Fixes bug #65828.Jeffrey Stedfast2004-09-282-1/+6
| | | | | | | | | 2004-09-14 Jeffrey Stedfast <fejj@novell.com> * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate): s/not/no/ in the error string. Fixes bug #65828. svn path=/trunk/; revision=27412
* free the unmatched uid values as well.Not Zed2004-09-285-166/+211
| | | | | | | | | | | | | | | | | | | | | | | 2004-09-24 Not Zed <NotZed@Ximian.com> * camel-vee-store.c (camel_vee_store_finalise): free the unmatched uid values as well. * camel-vee-folder.c (vee_folder_remove_folder): lock main folder summary lock before doing the unmatched stuff, so the order is right. 2004-08-25 Ed Catmur <ed@catmur.co.uk> ** See bug #63881. * camel-vee-store.c: * camel-vee-folder.c: move the unmatched folder onto the camel-vee-store object. Removede the global unmatched folder and associated locks/etc, fixed all the code up to work with the new unmatched folder, if present. svn path=/trunk/; revision=27408
* make sure body indexing is turned off always, missed the ~ bit.Not Zed2004-09-2810-118/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-09-27 Not Zed <NotZed@Ximian.com> * providers/local/camel-spool-folder.c (camel_spool_folder_new): make sure body indexing is turned off always, missed the ~ bit. * providers/local/camel-spool-store.c (camel_folder_info_new): dont take unread count. (spool_fill_fi): copied from mbox more or less. (scan_dir): use fill_fi to setup counts. (spool_new_fi): replace camel_foldeR_info_new with one that does most of the work, also generates uri's properly. (get_folder_info_mbox): make the 'system' inbox name translatable. * providers/local/camel-mbox-folder.h: make the camel_mbox_folder_get* functions properly public. * providers/local/camel-local-folder.h: pass the object to the virtual methods now, fix all callers. * providers/local/camel-spool-folder.c (spool_get_full_path) (spool_get_meta_path): implement, this needs to work differnetly to the parent classes implementations :-/. svn path=/trunk/; revision=27407
* Instead of doing a host-lookup ourselves, get it passed in to us as anJeffrey Stedfast2004-09-289-486/+359
| | | | | | | | | | | | | | | | | | | | | | 2004-09-22 Jeffrey Stedfast <fejj@novell.com> * providers/imap/camel-imap-store.c (connect_to_server): Instead of doing a host-lookup ourselves, get it passed in to us as an argument. Also simplified a bit (try_starttls is no longer an option). (connect_to_server_wrapper): Simplified (we no longer have fallback cases for SSL stuff). Also, perform host lookup here. * providers/imap4/camel-imap4-store.c: Same changes as above. * providers/pop3/camel-pop3-store.c: Same. * providers/smtp/camel-smtp-transport.c: Same. Other changes include making the code consistant with the other providers. * providers/nntp/camel-nntp-store.c: Same as pop/imap. svn path=/trunk/; revision=27398
* ** See bug #63521.Not Zed2004-09-279-15/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-09-21 Not Zed <NotZed@Ximian.com> ** See bug #63521. * camel-movemail.c (camel_movemail): don't clear exception on entry. * camel-folder-search.c (match_words_message): use local exception. * camel-operation.c (camel_operation_cancel_check): soak up all cancellation requests as soon as we get one. (camel_operation_uncancel): soak up all cancellation reqeusts when we uncancel. * camel-uid-cache.c (camel_uid_cache_save): open the file O_TRUNC rather than O_EXCL, otherwise a crash would mean this file never gets updated. (camel_uid_cache_save): block cancellation around writes otherwise we could be interupted from old cancellation. * providers/local/camel-local-folder.c (camel_local_folder_construct): don't clear exception here, just don't pass it to summary load. * providers/pop3/camel-pop3-store.c (pop3_connect): only clear the exception when we received one we handled. * camel-filter-driver.c (close_folder): if exception is already set, don't pass it to folder.sync(). * camel-lock.c (camel_lock_folder): don't clear the exception here, if it came in set its a programming error. * camel-filter-driver.c (camel_filter_driver_filter_message): if the exception is set after evaluating the expression, stop immediately. svn path=/trunk/; revision=27389
* ** See bug #47821.Not Zed2004-09-2417-652/+792
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-09-13 Not Zed <NotZed@Ximian.com> ** See bug #47821. * camel-service.c: removed the old hostent based hostname interfaces. * camel-sasl-kerberos4.c (krb4_challenge): new hostname interfaces. * camel-sasl-gssapi.c (gssapi_challenge): new hostname interfaces. * camel-sasl-digest-md5.c (digest_md5_challenge): use new hostname interfaces. (generate_response): just take hostname directly, not hostent. * camel-mime-utils.c (camel_header_msgid_generate): use new hostname interfaces. * providers/smtp/camel-smtp-transport.c (connect_to_server): fixed to use new addrinfo apis. * providers/pop3/camel-pop3-store.c (connect_to_server): fixed to use new addrinfo apis. * camel-tcp-stream-ssl.c (stream_connect): try all addresses supplied. * camel-tcp-stream.c (camel_tcp_stream_get_remote_address) (camel_tcp_stream_get_local_address): return a sockaddr now, and also the address length. Fixed all implementations and callers. (camel_tcp_stream_connect): use addrinfo rather than hostent for host AND port info. Fixed all implementations and callers. svn path=/trunk/; revision=27352
* handle a zero-length token read rather than failing.Not Zed2004-09-222-1/+6
| | | | | | | | | 2004-09-22 Not Zed <NotZed@Ximian.com> * camel-folder-summary.c (camel_folder_summary_decode_token): handle a zero-length token read rather than failing. svn path=/trunk/; revision=27327
* ** See bug #66199.Not Zed2004-09-222-5/+36
| | | | | | | | | | | | | | | 2004-09-21 Not Zed <NotZed@Ximian.com> ** See bug #66199. * camel-http-stream.c (stream_read): handle relative url's in redirect. (camel_http_stream_set_proxy): generate the basic auth token for basic proxy auth if we have a user and password. * camel-http-stream.c: turn off debug. svn path=/trunk/; revision=27326
* Fixes Bug#61088Hannah & Fazlu2004-09-202-15/+22
| | | | | | | | | | 2004-09-08 Hannah & Fazlu <hannah_lins@yahoo.co.in> Fixes Bug#61088 * camel/camel-smime-context.c: Change of strings. svn path=/trunk/; revision=27305
* ** See bug #0xffff.Not Zed2004-09-202-12/+23
| | | | | | | | | | | | 2004-09-15 Not Zed <NotZed@Ximian.com> ** See bug #0xffff. * providers/local/camel-local-folder.c (camel_local_folder_construct): only emit folder_created if we actually created it. svn path=/trunk/; revision=27304
* Merged notzed-eplugin-2-branch to head.Michael Zucci2004-09-2074-116/+666
| | | | svn path=/trunk/; revision=27300
* make ssl connection async and cancellable, and minor api update to asyncNot Zed2004-09-082-11/+27
| | | | | | | | | 2004-09-03 Not Zed <NotZed@Ximian.com> * camel-tcp-stream-ssl.c (stream_connect): make ssl connection async and cancellable, and minor api update to async connection. svn path=/trunk/; revision=27180
* fixedJeffrey Stedfast2004-08-311-6/+5
| | | | svn path=/trunk/; revision=27094
* ** See bug #64023.Not Zed2004-08-302-1/+11
| | | | | | | | | | | 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-262-1/+9
| | | | | | | | | | | | 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
* Init one variable (remove warning) and don't redefine it.Frédéric Crozat2004-08-252-2/+7
| | | | | | | * camel-folder.c: (folder_getv): Init one variable (remove warning) and don't redefine it. svn path=/trunk/; revision=27021
* Check for an exception from get_folders_online() here so that we don'tJeffrey Stedfast2004-08-242-3/+14
| | | | | | | | | | | 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-242-4/+38
| | | | | | | | | | | | | 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
* Call SSL_CTX_set_default_verify_paths() to initialise the certificateJeffrey Stedfast2004-08-242-0/+7
| | | | | | | | | | 2004-08-23 Jeffrey Stedfast <fejj@novell.com> * camel-tcp-stream-openssl.c (open_ssl_connection): Call SSL_CTX_set_default_verify_paths() to initialise the certificate database paths. Thanks to Anton Altaparmakov for this fix. svn path=/trunk/; revision=27000
* if any of the settings required for soap interaction changes trySivaiah Nallagatla2004-08-213-37/+55
| | | | | | | | | | | | | 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-162-1/+10
| | | | | | | | | | 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-142-9/+9
| | | | | | | | | | | 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
* Use g_ptr_array_sized_new() rather than using set_size() after creating aJeffrey Stedfast2004-08-141-9/+15
| | | | | | | | | | | 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=26922
* remove the cal/taksks sources when account is disbaled. Also do not try toSivaiah Nallagatla2004-08-142-3/+22
| | | | | | | | | | | | | 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-142-2/+8
| | | | | | | | | | 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
* Handle et/comm_err.h as well as the normal comm_err.hRodney Dawes2004-08-132-0/+9
| | | | | | | | | 2004-08-13 Rodney Dawes <dobey@novell.com> * camel-sasl-gssapi.c: Handle et/comm_err.h as well as the normal comm_err.h svn path=/trunk/; revision=26911
* added a commentJeffrey Stedfast2004-08-131-0/+1
| | | | svn path=/trunk/; revision=26898
* use g_string_append_len when appending a subset of a string rather than ↵Jeffrey Stedfast2004-08-132-8/+8
| | | | | | g_string_append, duh. svn path=/trunk/; revision=26890
* Fix for bug #62771Jeffrey Stedfast2004-08-133-7/+56
| | | | | | | | | | | | | | | | 2004-08-11 Jeffrey Stedfast <fejj@novell.com> Fix for bug #62771 * camel-mime-utils.c (append_quoted_pair): New function to append a string of text that may contain quoted-pairs. (header_decode_text): Now takes a ctext argument specifying whether or not to expect comments and to handle them. (camel_header_decode_string): Pass FALSE as ctext argument. (camel_header_format_ctext): New function to format text|comment header field bodies. svn path=/trunk/; revision=26888
* fix for e_passwords api change, and handle reprompting as well.Not Zed2004-08-122-2/+10
| | | | | | | | | | 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-072-0/+29
| | | | | | | | | | | | 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
* In the case of start() or end() failing, loop starting with the firstJeffrey Stedfast2004-08-062-14/+28
| | | | | | | | | | 2004-08-03 Jeffrey Stedfast <fejj@novell.com> * camel-url-scanner.c (camel_url_scanner_scan): In the case of start() or end() failing, loop starting with the first character immediately following the failed match position. Fixes bug #62136. svn path=/trunk/; revision=26831
* #include <gal/util/e-iconv.h>Rodney Dawes2004-08-042-0/+6
| | | | | | | | 2004-08-04 Rodney Dawes <dobey@novell.com> * camel-charset-map.c: #include <gal/util/e-iconv.h> svn path=/trunk/; revision=26821
* Pass a reconnect func.Jeffrey Stedfast2004-08-044-3/+38
| | | | | | | | | | | | | 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-313-4/+12
| | | | | | | | | | | | 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
* Similar fix as below in a later if-statement. Thanks to Suresh forJeffrey Stedfast2004-07-302-1/+7
| | | | | | | | | | 2004-07-30 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (camel_header_encode_string): Similar fix as below in a later if-statement. Thanks to Suresh for spotting this one. svn path=/trunk/; revision=26776
* Fixed an ABR that may have been responsible for bug #62029.Jeffrey Stedfast2004-07-292-18/+23
| | | | | | | | | 2004-07-28 Jeffrey Stedfast <fejj@novell.com> * camel-mime-utils.c (camel_header_encode_string): Fixed an ABR that may have been responsible for bug #62029. svn path=/trunk/; revision=26769
* Add an entry to specify POA address and a check box to say whehter ssl hasSivaiah Nallagatla2004-07-293-60/+156
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Changed the logic slightly to only match certain charsets if the localeJeffrey Stedfast2004-07-292-7/+20
| | | | | | | | | | 2004-07-26 Jeffrey Stedfast <fejj@novell.com> * camel-charset-map.c (camel_charset_best_mask): Changed the logic slightly to only match certain charsets if the locale matches (Macedonians don't want to use koi8-r for example). svn path=/trunk/; revision=26758
* ** See bug #61841.Not Zed2004-07-282-1/+10
| | | | | | | | | | 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-284-40/+67
| | | | | | | | | | | | | | | | | | 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-272-6/+10
| | | | | | | | | | | | | 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-274-85/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-232-2/+29
| | | | | | | | | | | | 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-212-0/+6
| | | | | | | | | 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
* only copy 5 chars after the F if we actually have "From ", otherwise weNot Zed2004-07-202-9/+9
| | | | | | | | | | 2004-07-19 Not Zed <NotZed@Ximian.com> * camel-mime-filter-canon.c (filter): only copy 5 chars after the F if we actually have "From ", otherwise we might have F.{,4}\n instead and break eol canonicalisation. For #53355. svn path=/trunk/; revision=26679
* Added some debug stuff.Not Zed2004-07-192-3/+64
| | | | | | | | 2004-07-16 Not Zed <NotZed@Ximian.com> * camel-gpg-context.c: Added some debug stuff. svn path=/trunk/; revision=26672
* Don't grab the connect_lock before calling refresh_info so that we avoidJeffrey Stedfast2004-07-172-2/+6
| | | | | | | | | | 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
* Fix for bug #61538Jeffrey Stedfast2004-07-153-2/+10
| | | | | | | | | | | | 2004-07-14 Jeffrey Stedfast <fejj@novell.com> Fix for bug #61538 * camel-process.c (camel_process_fork): Same. * camel-filter-driver.c (pipe_to_system): Fixed strings svn path=/trunk/; revision=26652
* fixed all the wayJeffrey Stedfast2004-07-151-3/+3
| | | | svn path=/trunk/; revision=26651
* fixed changelogJeffrey Stedfast2004-07-151-11/+10
| | | | svn path=/trunk/; revision=26650
* : pass "use_ssl" value to these functions and set it on e-sourceSivaiah Nallagatla2004-07-132-20/+71
| | | | | | | | | | | | | | | | | | 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
* ** This is no guarantee of security, but its just a helper to prevent oldNot Zed2004-07-136-12/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-07-09 Not Zed <NotZed@Ximian.com> ** This is no guarantee of security, but its just a helper to prevent old memory accidentally being included/used elsewhere. * camel-smime-context.c (sm_decrypt): mark the output stream 'secure'. * camel-gpg-context.c (gpg_decrypt): set the output stream to secured, so we automagically blank it out on finalise. * camel-stream-mem.c (camel_stream_mem_set_secure): set the memory-stream 'secured', all we do at the moment is blank out the buffer on finalise. (camel_stream_mem_set_byte_array, camel_stream_mem_finalize): clear memory if owner and secured. kill dead comment. (clear_mem): utilitiy to set memory to 0xABADF00D 2004-07-08 Not Zed <NotZed@Ximian.com> ** See bug #61186. * camel-cipher-context.c (camel_cipher_sign): (camel_cipher_verify, camel_cipher_encrypt, camel_cipher_decrypt): Add preliminary progress reporting. svn path=/trunk/; revision=26629
* use CAMEL_GROUPWISE_CFLAGS. (libcamelgroupwise_la_LIBADD): useChris Toshok2004-07-092-2/+8
| | | | | | | | | | 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
* s/Can't/Cannot/.Christian Neumair2004-07-022-11/+15
| | | | | | | | 2004-07-02 Christian Neumair <chris@gnome-de.org> * camel-smime-context.c: s/Can't/Cannot/. svn path=/trunk/; revision=26560
* Set the size of the ptrarray to prevent potentially realloc'ing severalJeffrey Stedfast2004-07-012-6/+16
| | | | | | | | | | 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-309-166/+650
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* add any parents of the new name before we actually do the rename so theNot Zed2004-06-292-5/+33
| | | | | | | | | | 2004-06-29 Not Zed <NotZed@Ximian.com> * camel-vee-store.c (vee_rename_folder): add any parents of the new name before we actually do the rename so the rename has somewhere to go to. #60775. svn path=/trunk/; revision=26546
* override CAMEL_FOLDER_NAME arg so we can translate "." into "Inbox".Not Zed2004-06-283-2/+37
| | | | | | | | | | 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-282-7/+30
| | | | | | | | | | | | 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
* More fixes.Jeffrey Stedfast2004-06-282-25/+9
| | | | | | | | 2004-06-27 Jeffrey Stedfast <fejj@novell.com> * camel-url-scanner.c (camel_url_web_end): More fixes. svn path=/trunk/; revision=26532
* remove more debugging printfsJeffrey Stedfast2004-06-261-3/+0
| | | | svn path=/trunk/; revision=26525
* fixed an uninitialised memory read from my last fixJeffrey Stedfast2004-06-261-10/+17
| | | | svn path=/trunk/; revision=26524
* Fixed to handle :pass in proto://user:pass@host. Fixes bug #60104.Jeffrey Stedfast2004-06-252-9/+41
| | | | | | | | | 2004-06-25 Jeffrey Stedfast <fejj@novell.com> * camel-url-scanner.c (camel_url_web_end): Fixed to handle :pass in proto://user:pass@host. Fixes bug #60104. svn path=/trunk/; revision=26514
* Error out and set an exception if camel_pop3_engine_new() returns NULLJeffrey Stedfast2004-06-253-30/+63
| | | | | | | | | | | | | | | | 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-252-1/+10
| | | | | | | | | | 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-242-6/+63
| | | | | | | | | | | | 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-244-10/+18
| | | | | | | | | | | 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-242-20/+79
| | | | | | | | | | | | | | | | | | 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-243-2/+10
| | | | | | | | | | | | 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
* Really set the path if tag is CAMEL_SERVICE_PATH.Christian Kellner2004-06-212-1/+6
| | | | | | | | | 2004-06-21 Christian Kellner <gicmo@xatom.net> * camel-service.c (service_setv): Really set the path if tag is CAMEL_SERVICE_PATH. svn path=/trunk/; revision=26440
* Fixed a number of issues described in bug #49497.Jeffrey Stedfast2004-06-212-11/+28
| | | | | | | | | 2004-06-21 Jeffrey Stedfast <fejj@novell.com> * camel-mime-filter-enriched.c (enriched_to_html): Fixed a number of issues described in bug #49497. svn path=/trunk/; revision=26439
* make camel_shutdown() an atexit handler againJeffrey Stedfast2004-06-193-4/+3
| | | | svn path=/trunk/; revision=26430
* Call camel_mime_utils_shutdown() and camel_operation_shutdown().Jeffrey Stedfast2004-06-193-4/+5
| | | | | | | | | | | | | | | | 2004-06-18 Jeffrey Stedfast <fejj@novell.com> * camel.c (camel_shutdown): Call camel_mime_utils_shutdown() and camel_operation_shutdown(). (camel_init): Don't register camel_shutdown() as an atexit handler. * camel-operation.c (camel_operation_shutdown): New function. * camel-mime-utils.c (camel_mime_utils_shutdown): New function to clean up the compiled regexes. svn path=/trunk/; revision=26429
* Call camel_mime_utils_shutdown() and camel_operation_shutdown().Jeffrey Stedfast2004-06-195-1/+35
| | | | | | | | | | | | | | 2004-06-18 Jeffrey Stedfast <fejj@novell.com> * camel.c (camel_shutdown): Call camel_mime_utils_shutdown() and camel_operation_shutdown(). * camel-operation.c (camel_operation_shutdown): New function. * camel-mime-utils.c (camel_mime_utils_shutdown): New function to clean up the compiled regexes. svn path=/trunk/; revision=26425
* Need to re-init sbf->ptr and sbf->end too, or we'll be sorrryy!Jeffrey Stedfast2004-06-192-0/+8
| | | | | | | | | 2004-06-18 Jeffrey Stedfast <fejj@novell.com> * camel-stream-buffer.c (set_vbuf): Need to re-init sbf->ptr and sbf->end too, or we'll be sorrryy! svn path=/trunk/; revision=26422
* setup for static inititialisation.Not Zed2004-06-183-5/+7
| | | | | | | | | 2004-06-18 Not Zed <NotZed@Ximian.com> * camel-exception.h (CAMEL_EXCEPTION_INITIALISER): setup for static inititialisation. svn path=/trunk/; revision=26414
* make 'colon' a const char *Jeffrey Stedfast2004-06-182-3/+3
| | | | svn path=/trunk/; revision=26406
* init tail->last to (guint32) -1, so that index = tail->last + 1 will startJeffrey Stedfast2004-06-182-2/+9
| | | | | | | | | | 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
* Add support for the webcal, callto, and h323 URIs when we get them inRodney Dawes2004-06-182-0/+8
| | | | | | | | | 2004-06-17 Rodney Dawes <dobey@novell.com> * camel-mime-filter-tohtml.c: Add support for the webcal, callto, and h323 URIs when we get them in mails svn path=/trunk/; revision=26401
* Don't foolishly unmunge From_ lines. First off, we don't even know if ourJeffrey Stedfast2004-06-182-1/+15
| | | | | | | | | | | 2004-06-17 Jeffrey Stedfast <fejj@novell.com> * camel-mime-filter-tohtml.c: Don't foolishly unmunge From_ lines. First off, we don't even know if our input stream came from an mbox file and secondly, the ">From " may have been intentional by the author. We Just Don't Know (tm). svn path=/trunk/; revision=26398
* Make sure we have elements in the array, if not then we're done (return aJeffrey Stedfast2004-06-182-1/+13
| | | | | | | | | | 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-182-62/+148
| | | | | | | | | | 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
* Thanks to Christian Kellner for pointing out these bugs (and submittingJeffrey Stedfast2004-06-182-7/+10
| | | | | | | | | | | | | | | | | 2004-06-17 Jeffrey Stedfast <fejj@ximian.com> Thanks to Christian Kellner for pointing out these bugs (and submitting the original patch for service_setv) * camel-service.c (service_setv): Don't use (tag & CAMEL_ARG_IGNORE) to determine if we should ignore this tag. CAMEL_ARG_IGNORE is not a bit flag. * providers/imap/camel-imap-store.c (imap_setv): Don't use (tag & CAMEL_ARG_IGNORE) to determine if we should ignore this tag. CAMEL_ARG_IGNORE is not a bit flag. svn path=/trunk/; revision=26392
* 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-172-1/+7
| | | | | | | | | | 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-172-3/+21
| | | | | | | | | | 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-172-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-172-37/+120
| | | | | | | | | | | | | | | | | | | | | | | 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
* Use camel_multipart_signed_get_content_stream() rather than getting theJeffrey Stedfast2004-06-152-11/+16
| | | | | | | | | | 2004-06-15 Jeffrey Stedfast <fejj@ximian.com> * camel-gpg-context.c (gpg_verify): Use camel_multipart_signed_get_content_stream() rather than getting the first part and canonicalising it ourselves. Fixes bug #60159. svn path=/trunk/; revision=26350
* Init have_unget to FALSE. Don't set unget to NULL, it's no longer aJeffrey Stedfast2004-06-153-13/+20
| | | | | | | | | | | | | | | 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-142-10/+9
| | | | | | | | | | | | 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-132-2/+13
| | | | | | | | | | | 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-123-1/+7
| | | | | | | | | 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-123-9/+15
| | | | | | | | | | | | | | | 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-122-0/+7
| | | | | | | | | | 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-114-30/+90
| | | | | | | | | | | | | | | | | | | 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-113-5/+18
| | | | | | | | | | | | | | | 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-113-0/+11
| | | | | | | 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-112-3/+37
| | | | | | | | | | | | | | | | | | | | | | 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-113-9/+66
| | | | | | | | | | | | | | | | | | | 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-112-1/+15
| | | | | | | | | | 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-115-168/+265
| | | | | | | | | | | | | | | | | | | | 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
* add some :filter debug. (open_folder): only ignore the get_folderNot Zed2004-06-102-8/+34
| | | | | | | | | | | 2004-06-10 Not Zed <NotZed@Ximian.com> * camel-filter-driver.c (camel_filter_driver_filter_message): add some :filter debug. (open_folder): only ignore the get_folder exception if we have a default folder, otherwise don't. See #59727. svn path=/trunk/; revision=26275
* move the stream based checking into the loop, after we connect. Fixes aNot Zed2004-06-102-8/+14
| | | | | | | | | | 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
* Fixed a case where it was possible to double-free the gpg context.Jeffrey Stedfast2004-06-092-6/+11
| | | | | | | | | | | 2004-06-09 Jeffrey Stedfast <fejj@novell.com> * camel-gpg-context.c (gpg_verify): Fixed a case where it was possible to double-free the gpg context. (gpg_verify): If we don't have a public key, then the signature is just BAD always. svn path=/trunk/; revision=26271
* oops, we already did a NODATA check. just save the state there rather than ↵Jeffrey Stedfast2004-06-091-2/+1
| | | | | | creating a new NODATA check :-) svn path=/trunk/; revision=26267
* oops, decrement the gpg->padding widthJeffrey Stedfast2004-06-091-2/+2
| | | | svn path=/trunk/; revision=26266
* Don't assign trust to be UNKNOWN if gpg sent us a NODATA status.Jeffrey Stedfast2004-06-092-7/+19
| | | | | | | | | 2004-06-09 Jeffrey Stedfast <fejj@ximian.com> * camel-gpg-context.c (gpg_verify): Don't assign trust to be UNKNOWN if gpg sent us a NODATA status. svn path=/trunk/; revision=26265
* Load the entire summary, not just the summary header. This way when theJeffrey Stedfast2004-06-083-2/+14
| | | | | | | | | | | | | | 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-074-1/+154
| | | | | | | | | | | | | | | | | | | | 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-053-7/+35
| | | | | | | | | | | | | | | | | | | 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
* Fixed to work properly. After we've flushed the buffer, we want to setJeffrey Stedfast2004-06-052-5/+10
| | | | | | | | | | | 2004-06-04 Jeffrey Stedfast <fejj@novell.com> * camel-stream-buffer.c (stream_flush): Fixed to work properly. After we've flushed the buffer, we want to set sbf->ptr to sbf->buf, we don't want to do sbf->ptr += written, that'll just corrupt our next write. svn path=/trunk/; revision=26220
* Duh. If the user doesn't care about SSL/TLS - use USE_SSL_NEVER, notJeffrey Stedfast2004-06-052-1/+5
| | | | | | | | | | 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-055-9/+42
| | | | | | | | | | | | | | | | | | | | | | 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-032-1/+8
| | | | | | | | | | 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-032-0/+4
| | | | | | | | | 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-0315-637/+734
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ** A few fixes for better rfc compliance, and cleaner code.Not Zed2004-06-016-343/+351
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-01 Not Zed <NotZed@Ximian.com> ** A few fixes for better rfc compliance, and cleaner code. * camel-mime-utils.c (header_encode_param): a bunch of logic cleanups with new util functions. (header_decode_init): setup a new type ATTR_CHAR, for attribute-char. * tests/misc/test2.c (main): new test for rfc2184 stuff. * camel-mime-utils.c (header_convert): helper to convert between charsets. (rfc2184_decode): fix a bunch of logic problems and use the helper above to simplify code. (decode_param_token): removed, not needed. (header_decode_rfc2184_param): removed, not needed. (header_decode_param): removed, not needed. ugh. (header_decode_param_list): completely rewritten, hence lack of need of above. svn path=/trunk/; revision=26140
* Don't leak the zlib stream internals.Jeffrey Stedfast2004-06-012-0/+10
| | | | | | | | | 2004-05-31 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-filter-gzip.c (camel_mime_filter_gzip_finalize): Don't leak the zlib stream internals. svn path=/trunk/; revision=26135
* Fixes bug #59191.Jeffrey Stedfast2004-05-282-4/+10
| | | | | | | | | | | | | 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
* If the store is not a vtrash store, just invoke the virtual method. (InDan Winship2004-05-272-40/+17
| | | | | | | | | | | * camel-store.c (camel_store_get_trash): If the store is not a vtrash store, just invoke the virtual method. (In particular, don't assume that the trash folder's name is CAMEL_VTRASH_NAME). If it is a vtrash store, just let camel_store_get_folder() do the work since it's duplicated there anyway. #57114 (camel_store_get_junk): Likewise. svn path=/trunk/; revision=26110
* set port property on e-sourceSivaiah nallagatla2004-05-262-0/+6
| | | | | | | | 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-262-9/+17
| | | | | | | | | 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-2613-98/+36
| | | | | | | | | | | | 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
* remove /soap part from uri. make port as a e-source property instead ofSivaiah Nallagatla2004-05-261-0/+7
| | | | | | | | | | | 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=26083
* fix/rearrange logic. It was using the wrong working pointer.Not Zed2004-05-242-9/+12
| | | | | | | | | 2004-05-24 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (camel_header_newsgroups_decode): fix/rearrange logic. It was using the wrong working pointer. svn path=/trunk/; revision=26059
* added CAMEL_PROVIDER_CONF_HIDDEN to conf item type enum. This is used bySivaiah Nallagatla2004-05-244-3/+18
| | | | | | | | | | | | | 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
* oops, forgot folder_created. Removed locking, the object bag serialisesNot Zed2004-05-222-12/+14
| | | | | | | | | | 2004-05-22 Not Zed <NotZed@Ximian.com> * camel-store.c: oops, forgot folder_created. Removed locking, the object bag serialises stuff for us. (camel_store_get_junk): same. svn path=/trunk/; revision=26044
* ** Another unread count bug, #58814.Not Zed2004-05-222-0/+13
| | | | | | | | | | | | | 2004-05-22 Not Zed <NotZed@Ximian.com> ** Another unread count bug, #58814. * camel-store.c (camel_store_class_init): added a folder_opened event. (camel_store_get_folder): emit a folder_opened event whenever we [re] open the physical folder. svn path=/trunk/; revision=26041
* Added a workaround for broken IMAP. Hopefully by forcing only the IMAP4Jeffrey Stedfast2004-05-222-1/+38
| | | | | | | | | | 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-2114-109/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-217-36/+57
| | | | | | | | | | | | | | | | | | 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
* Fix for #58738 ja_JP.UTF-8: Evolution crashes when certain ASCII/non-ASCIISuresh Chandrasekharan2004-05-212-3/+13
| | | | | | | | | | | | | | 2004-05-19 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> Fix for #58738 ja_JP.UTF-8: Evolution crashes when certain ASCII/non-ASCII combination is used in mail subject * camel-mime-utils.c: (camel_header_encode_string) Use camel_mime_is_lwsp for determining word separators, according to rfc822 (which's also same for rfc2047). g_unichar_isspace as word separator is illegal. svn path=/trunk/; revision=26021
* Fixes bug #42295 and the infinite loop part of bug #58766 (these 2 bugsJeffrey Stedfast2004-05-212-22/+41
| | | | | | | | | | | | | | | | | | | | | | 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-202-2/+9
| | | | | | | | | | | 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
* copy the messageinfo rather than reference the source folder's one, weNot Zed2004-05-202-14/+16
| | | | | | | | | | | 2004-05-19 Not Zed <NotZed@Ximian.com> * camel-folder.c (transfer_message_to): copy the messageinfo rather than reference the source folder's one, we poke its flags variable if the message is deleted. And dont re-delete the message if its already deleted. svn path=/trunk/; revision=26003
* use the article number instead of the messageid. Some servers are justNot Zed2004-05-193-15/+33
| | | | | | | | | | | | | | | 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
* ** See #58641.Not Zed2004-05-193-2/+19
| | | | | | | | | | | | | | | | 2004-05-19 Not Zed <NotZed@Ximian.com> ** See #58641. * camel-vee-folder.c (vee_sync): don't rebuild auto-type vfolders. they should always be consistent and it saves a lot of unecessary work. * camel-store.c (store_sync): we don't want to sync any vfolders as part of the store sync call. its used for a different purpose in vFolders. oh well its a hack. svn path=/trunk/; revision=25967
* do the same load of mailbox if we're in slow mode as we did for maildir.Not Zed2004-05-182-0/+9
| | | | | | | | | | 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
* check for NULL implementation before calling it. (disco_sync): similar.Not Zed2004-05-182-6/+29
| | | | | | | | | | 2004-05-18 Not Zed <NotZed@Ximian.com> * camel-disco-folder.c (disco_expunge_uids): check for NULL implementation before calling it. (disco_sync): similar. Fixes crash #58278. svn path=/trunk/; revision=25944
* Fixed a string type-o.Jeffrey Stedfast2004-05-183-3/+7
| | | | | | | | | | 2004-05-17 Jeffrey Stedfast <fejj@novell.com> * camel-folder-search.c (search_match_threads): Fixed a string type-o. * camel-smime-context.c (sm_verify_cmsg): Fixed some spelling mistakes. svn path=/trunk/; revision=25929
* If the encrypted block was also signed, set the signature verificationJeffrey Stedfast2004-05-182-8/+43
| | | | | | | | | | 2004-05-17 Jeffrey Stedfast <fejj@novell.com> * camel-gpg-context.c (gpg_decrypt): If the encrypted block was also signed, set the signature verification status on the Validity structure as well. svn path=/trunk/; revision=25928
* ** Bug #56050.Not Zed2004-05-173-3/+90
| | | | | | | | | | | | | | | 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-172-0/+11
| | | | | | | | | | 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
* don't allow creation of Trash or Junk folders.Not Zed2004-05-174-6/+46
| | | | | | | | | | | | | | | | | | | | | | | | 2004-05-14 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_create_folder): don't allow creation of Trash or Junk folders. (camel_store_rename_folder): similar for rename. #57250. 2004-05-13 Not Zed <NotZed@Ximian.com> * camel-folder-summary.c (summary_build_content_info): set secure flag if we have a known security type. (flag_names[]): Added secure bit. (summary_build_content_info_message): set secure flag as appropriate. (summary_build_content_info_message): dont set attachments for simple types (non text), only base it on multipart/* stuff. (summary_build_content_info): same. * camel-folder-summary.h: added SECURE flag. Indicates signed or encrypted content. svn path=/trunk/; revision=25914
* added more headers to camel.hJeffrey Stedfast2004-05-131-2/+7
| | | | svn path=/trunk/; revision=25900
* 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-132-3/+14
| | | | | | | | | | 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-127-162/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* fixedJeffrey Stedfast2004-05-121-0/+16
| | | | svn path=/trunk/; revision=25860
* Fixed a type-o. Fixes bug #58348.Jeffrey Stedfast2004-05-122-17/+6
| | | | | | | | | 2004-05-11 Jeffrey Stedfast <fejj@novell.com> * camel-smime-context.c (sm_signing_cmsmessage): Fixed a type-o. Fixes bug #58348. svn path=/trunk/; revision=25859
* New class for zipping/unzipping gzip streams.Jeffrey Stedfast2004-05-117-0/+1236
| | | | | | | | | | | | 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
* properly set the parent nodes for the re-parented phantom-node children.Not Zed2004-05-073-10/+33
| | | | | | | | | | | | | 2004-05-07 Not Zed <NotZed@Ximian.com> * camel-folder-thread.c (thread_summary): properly set the parent nodes for the re-parented phantom-node children. Wasn't that fun to debug! * camel-folder-thread.h: make order and re bitfields, saves 4 bytes/node. svn path=/trunk/; revision=25822
* set nodelay and keepalive on the socket.Not Zed2004-05-064-74/+95
| | | | | | | | | | | | | | | | | | | | 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-052-17/+22
| | | | | | | | | | | 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
* Get rid of #ifdef ENABLE_THREADS stuff, that was done away with a whileJeffrey Stedfast2004-05-052-8/+8
| | | | | | | | | | | 2004-05-04 Jeffrey Stedfast <fejj@ximian.com> * camel-session.h: Get rid of #ifdef ENABLE_THREADS stuff, that was done away with a while back and is causing problems for 3rd parties trying to use camel unless they explicityly #define ENABLE_THREADS in their code. svn path=/trunk/; revision=25788
* Fixed typo.Christian Kellner2004-05-042-1/+5
| | | | | | * providers/groupwise/camel-gw-listener.h: Fixed typo. svn path=/trunk/; revision=25785
* ** See #57979.Not Zed2004-05-044-2/+99
| | | | | | | | | | | | | | | | | | | | | | 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
* ** See bug #57881.Not Zed2004-05-034-34/+66
| | | | | | | | | | | | | | | | | | | 2004-05-03 Not Zed <NotZed@Ximian.com> ** See bug #57881. * camel-vee-folder.c (camel_vee_folder_add_folder): use the folder's change log and frozen count, not our copy. (vee_thaw): dont maintain our frozen count. (vee_freeze): same. (folder_changed_change): if we get changed messages that dont match, make sure they're also propagated as a change too. * camel-private.h: remove the freeze_count from camelveefolderprivate. We already have that in the camel folder private. svn path=/trunk/; revision=25742
* Fix typo. #53466.Priit Laes2004-05-013-3/+6
| | | | | | | | 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-282-2/+9
| | | | | | | | | | 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
* Mark exception strings for translation and fixed a spelling mistake.Jeffrey Stedfast2004-04-282-55/+60
| | | | | | | | | 2004-04-28 Jeffrey Stedfast <fejj@ximian.com> * camel-smime-context.c: Mark exception strings for translation and fixed a spelling mistake. svn path=/trunk/; revision=25664
* ** See bug #57659.Not Zed2004-04-273-5/+15
| | | | | | | | | | | | | | 2004-04-27 Not Zed <NotZed@Ximian.com> ** See bug #57659. * camel-vee-store.c (vee_get_folder_info): translate Unmatched in the folder display name. * camel-store.c (add_special_info): dont translate full_name or path, only do that for name. svn path=/trunk/; revision=25626
* Added HAS_LICENSE flag for allowing camel providers to display licenseSarfraaz Ahmed2004-04-232-0/+18
| | | | | | | | | 2004-04-23 Sarfraaz Ahmed <asarfraaz@novell.com> * camel-provider.h: Added HAS_LICENSE flag for allowing camel providers to display license file. svn path=/trunk/; revision=25592
* Send a flag list rather than \Deleted by itself. See #57381.Not Zed2004-04-222-4/+10
| | | | | | | | | | 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-222-6/+16
| | | | | | | | | 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-213-68/+176
| | | | | | | | | | | | 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-212-0/+8
| | | | | | | | | 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-213-0/+45
| | | | | | | | | | | | 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-202-1/+12
| | | | | | | | | 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
* will never be true. Fixes bug #56982.Jeffrey Stedfast2004-04-172-1/+6
| | | | | | | | | 2004-04-16 Jeffrey Stedfast <fejj@ximian.com> * camel-vee-store.c (change_folder): (flags & 0) will never be true. Fixes bug #56982. svn path=/trunk/; revision=25495
* Changed imap_atom_specials[] to not treat ']' as an atom char (as perJeffrey Stedfast2004-04-162-2/+10
| | | | | | | | | | 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