summaryrefslogtreecommitdiff
path: root/camel/providers
Commit message (Collapse)AuthorAgeFilesLines
* bump version, libtool numbersEVOLUTION_DATA_SERVER_0_0_92eds_0_0_92JP Rosevear2004-04-19160-46682/+0
| | | | | | 2004-04-19 JP Rosevear <jpr@ximian.com> * configure.in: bump version, libtool numbers
* change the auth type string from Password to plain/passwordSivaiah Nallagatla2004-04-131-1/+1
| | | | | | | | 2004-04-13 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (add_addressbook_sources) : change the auth type string from Password to plain/password
* add bookname to uriSivaiah Nallagatla2004-04-111-6/+5
| | | | | | | | 2004-04-11 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (add_addressbook_sources) (modify_addressbook_sources) : add bookname to uri
* Fix capitalisation of the "mailcheck" section title and move it to the topJeffrey Stedfast2004-04-092-7/+7
| | | | | | | | | | | | 2004-04-09 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-provider.c: Fix capitalisation of the "mailcheck" section title and move it to the top (so it matches with the UI). * providers/imap/camel-imap-folder.c (imap_get_message): Fetch the entire message in one fell swoop even if the message size is larger than 5k *if* the message is a single part. Fixes bug #56686.
* Changed (!flags & _CREATE) to (!(flags & _CREATE)) (get_folder_online): DoJeffrey Stedfast2004-04-081-4/+99
| | | | | | | | | | | 2004-04-08 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): Changed (!flags & _CREATE) to (!(flags & _CREATE)) (get_folder_online): Do what create_folder() does and if the parent folder has \NoInferiors set but contains no messages, delete the parent folder and recreate it before creating the child folder. Fixes bug #56651.
* include camel-debug.hNot Zed2004-04-081-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-08 Not Zed <NotZed@Ximian.com> * camel-folder.c: include camel-debug.h * providers/local/camel-mbox-folder.c (mbox_set_message_user_flag): message changed to folder_changed. (mbox_set_message_user_tag): ditto. * camel-vee-folder.c (camel_vee_folder_finalise): dont hook onto message_changed. (camel_vee_folder_add_folder): or unhook. (camel_vee_folder_remove_folder): " (message_changed): or proxy. * camel-folder.c (camel_folder_class_init): removed the message_changed event - its redundant, and covered by folder_changed, and just makes life difficult for everything using message_changed/folder_changed (and nothing uses it anyway). (message_changed): removed. (set_message_user_flag): emit a folder_changed event instead of message changed. (set_message_user_tag): " (set_message_flags): " * camel-object.h: revered the CAMEL_OBJECT_TYPE change, it should be a global variable access.
* Added mutex locking where appropriate.Jeffrey Stedfast2004-04-071-2/+24
| | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c: Added mutex locking where appropriate.
* Added mutex locking where appropriate.Jeffrey Stedfast2004-04-071-11/+54
| | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c: Added mutex locking where appropriate.
* Defined.Jeffrey Stedfast2004-04-075-7/+12
| | | | | | | | | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * camel-folder-summary.h (CAMEL_FOLDER_SUMMARY_TYPE): Defined. * camel-object.h (CAMEL_OBJECT_TYPE): Fixed. * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_utf7_name): Implemented. * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): Use camel_folder_info_build() to build the folder-info tree.
* ** See bug #56110.Not Zed2004-04-061-10/+52
| | | | | | | | | | | | | | | | | | | 2004-04-06 Not Zed <NotZed@Ximian.com> ** See bug #56110. * providers/imap/camel-imap-folder.c (get_content): more debug! (get_content): if we have no content-type header set on a sub-part of a multipart/digest, then we need to set it to message/rfc822 as in the multipart/digest rfc (2046 or so?). * camel-folder.c (camel_folder_get_message): output this stuff as folder debug. * providers/imap/camel-imap-folder.c (imap_get_message): add some imap:folder debug. (get_content): get xx.TEXT rather than xx if we're from a message parent part.
* dont add folders to folders_out here, only in get_folders_add_folders.Not Zed2004-04-051-5/+3
| | | | | | | | | | | | | | | | 2004-04-05 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folders): dont add folders to folders_out here, only in get_folders_add_folders. * camel-store.c (camel_folder_info_build): simplify 'list append' since we have next pointer at the head of the struct. * providers/imap/camel-imap-store.c (create_folder): fixed "containes" spelling count. (get_folder_online): " (get_folders_add_folders): duh, add the folder info to the folders_out array.
* Partially implemented. (imap4_get_folder): Implemented.Jeffrey Stedfast2004-03-302-19/+298
| | | | | | | | 2004-03-30 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c (imap4_get_folder_info): Partially implemented. (imap4_get_folder): Implemented.
* added some debug to dump the whole folderinfo tree if store:folder_info isNot Zed2004-03-302-22/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-30 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_get_folder_info): added some debug to dump the whole folderinfo tree if store:folder_info is set. * providers/imapp/camel-imapp-driver.c: #if 0 out some code, to kill warnings. * camel-url-scanner.c: include ctype.h for isspace (wonder if it should use utf8 funcs?). 2004-03-29 Not Zed <NotZed@Ximian.com> ** See #56146. * providers/imap/camel-imap-store.c (get_folders): check the top-level folders list for duplicates as well. (get_folders_add_folders): split out the folder return merging code from get_folders. Absolute mess of crap to deal with more busted servers. * camel-debug.c (camel_debug_start, camel_debug_end): some helpers to wrap debug output for atomicicity.
* Implemented.Jeffrey Stedfast2004-03-3025-1997/+2103
| | | | | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new): Implemented. * providers/imap4/camel-imap4-engine.c (engine_parse_namespace): If the namespace begins with "INBOX", canonicalise the INBOX portion (ie, make it all caps). * providers/imap4/camel-imap4-store.c (imap4_noop): Implemented.
* Updated to actually parse the STATUS response into a list of item/valueJeffrey Stedfast2004-03-291-23/+120
| | | | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_status): Updated to actually parse the STATUS response into a list of item/value pairs. (create_folder): Updated for above change. (get_folder_counts): Only call get_folder_status() once (we can get both values with a single call now). Fixes a FIXME and might also fix bug #55784.
* Removed debugging printfs.Jeffrey Stedfast2004-03-292-4/+1
| | | | | | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder_info): Removed debugging printfs. * providers/local/camel-local-folder.c (camel_local_folder_construct): Since the folder was *just* created, it shouldn't have any subfolders so set the CAMEL_FOLDER_NOCHILDREN flag (altho, ideally, we wouldn't be guessing these flags at all - rather we'd call get_folder_info() or some such). Fixes bug #56010.
* use object_bag_peek instead of _get, since we dont want to clash/wait forNot Zed2004-03-291-23/+9
| | | | | | | | | | | | | 2004-03-29 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folder_counts): use object_bag_peek instead of _get, since we dont want to clash/wait for reservations. More #56045 related fixes. (get_folder_counts): revert the lookup/hashtable stuff for the folder, and use object_bag_peek. * camel-object.c (camel_object_bag_peek): new method to get an object bag entry without worrying about if its reserved or not.
* remove locking here, we're locked whne we enter. (fill_fi): callNot Zed2004-03-291-4/+3
| | | | | | | | 2004-03-29 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folder_counts): remove locking here, we're locked whne we enter. (fill_fi): call refresh_info unlocked. More for #56045.
* New source files implementing the CamelFolder class for the new IMAP4Jeffrey Stedfast2004-03-283-0/+836
| | | | | | | | 2004-03-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-folder.[c,h]: New source files implementing the CamelFolder class for the new IMAP4 implementation.
* added .cvsignoreJeffrey Stedfast2004-03-281-0/+7
|
* added camel-imap-store.[c,h] to the buildJeffrey Stedfast2004-03-282-20/+47
|
* added camel-imap-provider.cJeffrey Stedfast2004-03-283-1/+141
|
* build fixesJeffrey Stedfast2004-03-282-6/+7
|
* New source files implementing the CamelFolderSummary class for the newJeffrey Stedfast2004-03-283-0/+1200
| | | | | | | | 2004-03-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-summary.[c,h]: New source files implementing the CamelFolderSummary class for the new IMAP4 implementation.
* Reverted imap.web.de fix.Jeffrey Stedfast2004-03-261-6/+3
| | | | | | | 2004-03-26 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_update_summary): Reverted imap.web.de fix.
* Added new maildir flags D for draft and commented P for forwarded.Not Zed2004-03-262-4/+20
| | | | | | | | | | | | 2004-03-26 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-summary.c (flagbits[]): Added new maildir flags D for draft and commented P for forwarded. * providers/imap/camel-imap-store.c (get_folder_counts): Instead of looking up the folder in the object bag which will handle reservations and perhaps deadlock, just get the list of opened folders and use them if they're available. Should fix #56045.
* No longer need to split ']' tokens from atom tokens due to a fixup in theJeffrey Stedfast2004-03-264-27/+892
| | | | | | | | | | | | | | | 2004-03-25 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-engine.c (camel_imap_engine_parse_resp_code): No longer need to split ']' tokens from atom tokens due to a fixup in the ABNF grammar in rfc3501. * providers/imap4/camel-imap-specials.c: Changed ATOM_SPECIALS to include ']' (this is an addition in rfc3501). * providers/imap4/camel-imap-store.[c,h]: New Store class for IMAP. Implemnted a bunch of but still got a ways to go.
* If the server is imap.web.de, just ask for all the headers rather thanJeffrey Stedfast2004-03-253-7/+16
| | | | | | | | | | | | | | | | | 2004-03-25 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_update_summary): If the server is imap.web.de, just ask for all the headers rather than "HEADER.FIELDS.NOT (RECEIVED)". Actually, maybe we should always just query for the entire header block? (imap_get_message): If the server is brain-damaged (that's a technical term), always fetch the message in whole, never bother to try and fetch partial messages (Courier-IMAP gives us the wrong BODY responses fairly often). * providers/imap/camel-imap-store.c (connect_to_server): Set store->braindamaged to TRUE if we find the string "Courier-IMAP" in the greeting.
* Fix for bug #55018.Jeffrey Stedfast2004-03-251-4/+23
| | | | | | | | | | | | | | 2004-03-25 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55018. * providers/imap/camel-imap-store.c (create_folder): Don't allow the suer to create folders with #, %, * or the directory separator in the folder name (added the checks for %, * and #). (get_folder_online): Add a check to make sure the folder name is sane before sending a CREATE (ie. we want to allow getting of folders with discouraged characters in them if they exist, but we don't want to allow the user to create them).
* Removed newline character from the provider descriptionMartyn Russell2004-03-251-1/+1
| | | | | | | 2004-03-25 Martyn Russell <ginxd@btopenworld.com> * providers/smtp/camel-smtp-provider.c: Removed newline character from the provider description
* removed ldap seetings and added a settng for SOAP port read port numberSivaiah Nallagatla2004-03-252-93/+70
| | | | | | | | | | | | 2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-groupwise-provider.c : removed ldap seetings and added a settng for SOAP port * providers/groupwise/camel-gw-listner.h (add_calendar_tasks_sources) (remove_calendar_tasks_sources), (modify_calendar_tasks_sources) : read port number from url instead of hardcoding Also removed code for adding e-sources for ldap address book and adding now e-sources for groupwise address book
* New convenience wrapper function. (engine_parse_status): Fixed to handleJeffrey Stedfast2004-03-253-9/+67
| | | | | | | | | | | | | | 2004-03-24 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-engine.c (camel_imap_engine_literal): New convenience wrapper function. (engine_parse_status): Fixed to handle literal mailbox strings. * providers/imap4/camel-imap-command.c (camel_imap_command_newv): Changed how %L works - create the CamelIMAPLiteral for our caller instead of expecting them to create it for us. We can autodetect what type of object (stream vs data-wrapper) the literal is, so it's trivial to do.
* #include <stdlib.h> for strtoul()Jeffrey Stedfast2004-03-251-0/+1
|
* The beginnings of a new IMAP provider moduleJeffrey Stedfast2004-03-2412-0/+4071
|
* Reworked the else bit to fix a bug where if we had the BODY structure, weJeffrey Stedfast2004-03-231-51/+50
| | | | | | | | 2004-03-23 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_get_message): Reworked the else bit to fix a bug where if we had the BODY structure, we simply wouldn't try fetching the actual message.
* use camel debug to add some debug here.Not Zed2004-03-231-62/+73
| | | | | | | | | | | | | | | | | 2004-03-23 Not Zed <NotZed@Ximian.com> * camel-exception.c (camel_exception_setv): use camel debug to add some debug here. * camel.c (camel_init): call camel_debug_init(). * camel-debug.c (camel_debug_init, camel_debug): new util stuff for extended debug options. * providers/imap/camel-imap-folder.c (imap_get_message): if we're supposed to be online, check we are online before proceeding. Actually major restructure so we re-try the fetch a couple of times first before failing. i.e. silent reconnect. See #55381.
* connect lock around this. was getting a race with mem corruptionNot Zed2004-03-231-2/+6
| | | | | | | | 2004-03-23 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folder_info_online): connect lock around this. was getting a race with mem corruption otherwise.
* decode newsgroups header into a list of newsgroups.Not Zed2004-03-222-2/+11
| | | | | | | | | | | | | | | | 2004-03-22 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (camel_header_newsgroups_decode) (camel_header_newsgroups_free): decode newsgroups header into a list of newsgroups. ** See #55887. * providers/nntp/camel-nntp-summary.c (camel_nntp_summary_check): NOOP if we're offline. * providers/nntp/camel-nntp-store.c (nntp_connected): spit a warning if we try to do stuff whilst offline, rather than crash.
* remove async_thread thing.Not Zed2004-03-192-58/+0
| | | | | | 2004-03-19 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.h: remove async_thread thing.
* Checking that mi->content->type != NULL is no longer good enough to tellJeffrey Stedfast2004-03-171-4/+21
| | | | | | | | | | | 2004-03-17 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_get_message): Checking that mi->content->type != NULL is no longer good enough to tell if a ContentInfo is complete (ie. contains the parsed BODY response). We need to check that th ContentInfo has children if the part is a multipart of message/rfc822 part. Apparently Zucchi didn't test his camel-folder-summary changes using IMAP.
* Reverted jeff's fix for #55018, since it wasn't tested, and doesn't work.Not Zed2004-03-171-75/+29
| | | | | | | | | | 2004-03-17 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-store.c: Reverted jeff's fix for #55018, since it wasn't tested, and doesn't work. Wrote an alternate implementation, and tested it at least once. Turns out it was a one line error, it still wasn't tested. Oh well, its rewritten now.
* See bug #55618.Not Zed2004-03-171-0/+2
| | | | | | | | | | | | | | | | | | 2004-03-17 Not Zed <NotZed@Ximian.com> * See bug #55618. * camel-disco-diary.c (camel_disco_diary_new): seek to the end of the file after we open it. c99 apparently says the file merely adds to the end of the file when you write, not that it is opened and positioned at the end of the file (linux's man pages are out of date). * camel-folder-summary.c (content_info_new): setup the content type as well, from the headers. * providers/imap/camel-imap-summary.c (camel_imap_summary_add_offline): copy size from the source info.
* If the initial SELECT fails and CREATE is specified, clear the exceptionJeffrey Stedfast2004-03-151-1/+3
| | | | | | | | | 2004-03-15 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): If the initial SELECT fails and CREATE is specified, clear the exception before attempting to CREATE, this way we don't have an exception set even if the CREATE passes. Fixes bug #55607.
* same as below for path.Not Zed2004-03-152-2/+4
| | | | | | | | | | | | | | | | 2004-03-15 Not Zed <NotZed@Ximian.com> * providers/local/camel-mbox-store.c (delete_folder): same as below for path. * providers/local/camel-local-store.c (delete_folder): NULL out str before looking up the state file using it. Otherwise we double-free str. * camel-mime-parser.c (folder_scan_skip_line): we want to scan till in-end-1. If we've been called we're either at the end of data, or we know we have an end of line character within memory. Another case in Bug #53355.
* set the mime-type field on the content the same way asNot Zed2004-03-151-3/+10
| | | | | | | | | | | | | | | 2004-03-15 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (get_content, get_message): set the mime-type field on the content the same way as construct_from_stream does. Bug #55472. * camel-mime-message.c (camel_mime_message_dump): utility function to dump message content to stdout. (camel_mime_message_init): default mime type to message/rfc822. * camel.c (camel_init): change camel verbose debug to be an int, a bitmask of debug options.
* Now takes an argument to specify whether disconnecting when respbuf isJeffrey Stedfast2004-03-131-15/+16
| | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_set_exception): Now takes an argument to specify whether disconnecting when respbuf is NULL is safe (to prevent us from recursively disconnecting or disconnecting during a connect).
* Fix for bug #53497.Jeffrey Stedfast2004-03-121-37/+19
| | | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #53497. * providers/smtp/camel-smtp-transport.c (smtp_helo): Instead of unreffing the streams, call camel_service_disconnect(). (smtp_mail): Same. (smtp_rcpt): Same. (smtp_data): Same. (smtp_send_to): Ignore exceptions for smtp_rset(). Also, check that we are connected before we try to send (in Evolution's current usage scenario, this isn't a problem but in the future if we ever try to fire off several messages via the same smtp connection, it may be - especially if RSET failed during the previous send).
* Fixes for bug #55018.Jeffrey Stedfast2004-03-124-59/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #55018. * providers/local/camel-local-folder.c (camel_local_folder_construct): Use camel_url_to_string() here too, so we properly encode the fragment. * providers/local/camel-mbox-store.c (get_folder_info): Use CamelURL to properly encode the fi->uri. Pass the CamelURL into scan_dir() so that scan_dir() can re-use it (rather than having to malloc/parse/free for each file/dir) (scan_dir): Use camel_url_to_string(). * providers/local/camel-maildir-store.c (get_folder_info): Same as mbox. (scan_dir): Same as mbox. We also need to set the CAMEL_FOLDER_NOSELECT flag if appropriate. * providers/local/camel-mh-store.c (get_folder_info): Same as mbox and maildir. (folders_scan): Now takes a url argument which we pass off to folder_info_new(). (recursive_scan): Same. (folder_info_new): Use camel_url_to_string().
* If errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE orJeffrey Stedfast2004-03-121-37/+28
| | | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (connect_to_server): If errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE or whatever. (smtp_helo): Same. (smtp_auth): Same. (smtp_mail): Same. (smtp_rcpt): Same. (smtp_data): Same. (smtp_rset): Same. (smtp_quit): Same. (smtp_set_exception): Here too. (smtp_auth): If the AUTH response code is not 334, then use smtp_set_exception() to get the most accurate error report we can.
* removed this. not sure what it was doing there, a 1 line funciton usedNot Zed2004-03-111-16/+14
| | | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (no_such_folder): removed this. not sure what it was doing there, a 1 line funciton used once. (get_folder_online): pass exception to camel_imap_command. if we got a user cancel, pass it up. (hash_folder_name, compare_folder_name): more g_ascii_strcasecmp stuff.