summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* PR_IO_TIMEOUT_ERROR should map to ETIMEDOUT and not EAGAIN.evolution-1-0-branchJeffrey Stedfast2002-06-252-3/+12
| | | | | | | | | 2002-06-21 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream-ssl.c (set_errno): PR_IO_TIMEOUT_ERROR should map to ETIMEDOUT and not EAGAIN. (stream_connect): Set the PR_Connect and PR_Poll() timeout to 2 minutes.
* Parse "From: Dan Winship <danw>" (with no domain) in the way the senderDan Winship2002-06-062-1/+7
| | | | | | * camel-mime-utils.c (header_decode_mailbox): Parse "From: Dan Winship <danw>" (with no domain) in the way the sender meant it, even though it's completely wrong.
* Revert the UID set patch, it seems to have been slightly broken in theJeffrey Stedfast2002-06-055-204/+145
| | | | | | | | | 2002-06-05 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/*: Revert the UID set patch, it seems to have been slightly broken in the 1.0.6 release (missed a mutex_lock() call) and so rather than risk further embarassment, we are just removing it entirely. If you need this fix, use HEAD.
* Check that any unmatched operation is not concerning any vfolder. OtherEVOLUTION_1_0_6Not Zed2002-06-036-148/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-03 Not Zed <NotZed@Ximian.com> * camel-vee-folder.c (camel_vee_folder_add_folder): (folder_changed_change): (folder_changed_remove_uid): (folder_changed_add_uid): (vee_folder_build_folder): Check that any unmatched operation is not concerning any vfolder. Other vfolders should never be part of any unmatched handling. For #24615, and others probably. 2002-05-13 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-search.c (imap_body_contains): Use the new imap_uid_array_to_set() API. Pass in -1 as the maxuid value since fixing this right would be more than just a simple backport and so may run into problems. Backported some fixes from HEAD branch to fix sending long commands. * providers/imap/camel-imap-folder.c (imap_expunge_uids_online): Updated to use the new imap_uid_array_to_set() interface. (imap_expunge_uids_resyncing): Same. (do_copy): Here too. (imap_update_summary): Added a FIXME comment to rewrite allowing for a uid-set limitation. (get_matching): Copy some of the logic over from imap_uid_adday_to_set() to limit the length of the uid-set string. (imap_sync_online): Added a comment to explain what is going on with get_matching() since the behavior has changed slightly. * providers/imap/camel-imap-utils.c (imap_uid_array_to_set): Modify the interface so that we can limit the size of the uid set string returned.
* Since the fix for #3357 uses 'order=0' to indicate tree structure nodes,Not Zed2002-05-142-2/+11
| | | | | | | | | | | 2002-05-13 Not Zed <NotZed@Ximian.com> * camel-folder-thread.c (camel_folder_thread_messages_new_summary): (camel_folder_thread_messages_new): Since the fix for #3357 uses 'order=0' to indicate tree structure nodes, make sure we dont actually set order=0 for valid messages, otherwise we silently lose duplicates of the first message (i==0). Fixes #19920.
* Instead of testing for SERVICE_CONNECTED, we need to also handleNot Zed2002-05-102-1/+11
| | | | | | | | | | | 2002-05-09 Not Zed <NotZed@Ximian.com> * camel-service.c (camel_service_disconnect): Instead of testing for SERVICE_CONNECTED, we need to also handle SERVICE_CONNECTING too, as it will often have setup some details before it failed. Make it !DISCONNECTED (and !DISCONNECTING for recursive calls, which happen). Fixes #23782, and maybe also #21604 and many other random crashes.
* Fixed the fix for stupidly-broken-mailer bug #5 to work when multipleEVOLUTION_1_0_5Jeffrey Stedfast2002-05-032-1/+7
| | | | | | | | 2002-05-02 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (header_decode_mailbox): Fixed the fix for stupidly-broken-mailer bug #5 to work when multiple unescaped characters were in a row. Fixes bug #24140.
* We want to set unread_count to get_unread_message_count, notNot Zed2002-04-302-2/+8
| | | | | | | | | 2002-04-29 Not Zed <NotZed@Ximian.com> * providers/local/camel-spool-store.c (get_folder_info): We want to set unread_count to get_unread_message_count, not get_message_count(). Might fix #17174. Also removed FIXME: as it was fixed.
* Backport from head. If the last message(s) were deleted, and we had anyEVOLUTION_1_0_4Not Zed2002-04-162-1/+18
| | | | | | | | | | | | 2002-04-16 Not Zed <NotZed@Ximian.com> * providers/local/camel-spool-summary.c (spool_summary_sync_full): Backport from head. If the last message(s) were deleted, and we had any messages output, account for the lost \n of the following From line by adding an extra \n. fix for #8214. (camel_spool_summary_build_from): Backport from head. The day number has to be 2 chars wide, space filled to work properly with pine, etc.
* Make the folder_lock recursive. See bug #22363 for details. Basically,Jeffrey Stedfast2002-04-154-8/+23
| | | | | | | | | | | | | | 2002-04-09 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_init): Make the folder_lock recursive. See bug #22363 for details. Basically, get_folder_info() is requesting a diary folder which in turn connects which then calls get_folder() but deadlocks because get_folder_info already holds the lock. * camel-mime-message.c (camel_mime_message_set_date): Don't adjust the timezone offset if we used tm.tm_gmtoff because it is already adjusted.
* Backport non-blocking connect code. Hopefully this fixes the Operation InJeffrey Stedfast2002-04-122-6/+81
| | | | | | | | 2002-04-09 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream-ssl.c (stream_connect): Backport non-blocking connect code. Hopefully this fixes the Operation In Progress errors.
* If we get multiple Content-Type header values, change subsequent headersNot Zed2002-04-123-6/+30
| | | | | | | | | | | | | | | | | | | | | 2002-04-09 Not Zed <NotZed@Ximian.com> * camel-mime-part.c (construct_from_parser): If we get multiple Content-Type header values, change subsequent headers to X-Invalid-Content-Type so it doesn't wreck processing. This fixes the reported case in #18929, but i dont know if it fixes the original posters problems. 2002-04-08 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (base64_decode_step): If we only get passed '=', we back track only if we actually output any data. Fix for #21716. (quoted_decode): Pass out size_t instead of int, and use 0 instead of -1 for error since its not signed. This will fix similar bug to above in different circumstances since the result is taken as unsigned. This is only an internal func. (quoted_encode): Return size_t just for consistency.
* Set the 'name' parameter on the Content-Type too. Fixes bug #20779.EVOLUTION_1_0_3Jeffrey Stedfast2002-03-132-0/+11
| | | | | | | 2002-02-22 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-part.c (camel_mime_part_set_filename): Set the 'name' parameter on the Content-Type too. Fixes bug #20779.
* Revert to the old order, as the new one could break mailing list names forEttore Perazzoli2002-03-132-17/+24
| | | | | * camel-mime-utils.c: Revert to the old order, as the new one could break mailing list names for existing users.
* [Fix #21655.]Ettore Perazzoli2002-03-112-17/+25
| | | | | | * camel-mime-utils.c: Change the order of the mailing list magic patterns so that the more mailing-list specific ones are on the top.
* Always set the connect_op to NULL when we're done with it. Fix for #19564.Not Zed2002-02-062-4/+9
| | | | | | | 2002-02-06 Not Zed <NotZed@Ximian.com> * camel-service.c (camel_service_connect): Always set the connect_op to NULL when we're done with it. Fix for #19564.
* Kludge around a bug in Exchange 5.5 that reports 2 messages with the sameEVOLUTION_1_0_2Jeffrey Stedfast2002-01-235-7/+70
| | | | | | | | | | | | | | | | | | | | | 2002-01-11 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_update_summary): Kludge around a bug in Exchange 5.5 that reports 2 messages with the same UID. Fixes bug #17694. 2002-01-09 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-local-folder.c (camel_local_folder_construct): If the mbox file is a symlink, follow the symlink and get the One True Path so that we can rewrite the mbox later without worrying about clobbering the symlink. 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> * camel-service.c (camel_service_connect): Make sure that the connect_op is non-NULL before unregistering/unreffing it.
* Don't try setting a content-type parameter if either the name or value isJeffrey Stedfast2002-01-043-3/+16
| | | | | | | | | 2001-12-12 Jeffrey Stedfast <fejj@ximian.com> * camel-folder-summary.c (content_info_load): Don't try setting a content-type parameter if either the name or value is NULL. * camel-mime-utils.c (header_set_param): NULL-protection.
* Install the camel providers in $(libdir)/evolution/camel-providers/1.0EVOLUTION_1_0_1Dan Winship2001-12-179-32/+29
| | | | rather than "1.0.0" / "1.0.0.99" / "1.0.1" / etc.
* Fixes #17085Zbigniew Chyla2001-12-133-121/+131
| | | | | | | | | | | 2001-12-11 Zbigniew Chyla <cyba@gnome.pl> Fixes #17085 * camel-charset-map.c: Added #include <errno.h>. * camel-charset-map-private.h: Recreated (following instructions from camel-charset-map.c)
* cast the key argument to g_hash_table_insert to a gpointer so we don't get a ↵Jeffrey Stedfast2001-12-131-2/+2
| | | | compiler warning.
* Keep a name-to-type hash so that we can make sure that the type has notJeffrey Stedfast2001-12-133-9/+31
| | | | | | | | | | | 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> * camel-object.c (camel_type_register): Keep a name-to-type hash so that we can make sure that the type has not yet been registered (prevents a race condition such as the one in bug #16559). * camel-service.c (camel_service_connect): Make sure that the connect_op is non-NULL before unregistering/unreffing it.
* iconv() returns a size_t, not an int.Jeffrey Stedfast2001-12-1013-132/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-05 Jeffrey Stedfast <fejj@ximian.com> * camel-sasl-digest-md5.c: iconv() returns a size_t, not an int. * camel-pgp-context.c: The return value of iconv() is a size_t, not an int. * camel-mime-part-utils.c (convert_buffer): Always use size_t args for iconv(). * camel-mime-filter-charset.c (complete): Always use size_t args for iconv(). (filter): Same. * camel-mime-utils.c (header_address_fold): Make headerlen a size_t instead of an int. (header_fold): Same. (base64_encode_close): We should be returning a size_t and inlen should also be a size_t. (base64_encode_step): Same here. (base64_decode_step): Here too. (base64_encode_simple): And here... (base64_decode_simple): Same. (uuencode_close): We should also use size_t's here... (uuencode_step): And here too. (uudecode_step): And also here. (quoted_encode_close): Same idea here. (quoted_encode_step): Again here. (quoted_decode_step): Here too. (quoted_encode): Input length should be a size_t. (rfc2047_decode_word): Same. (g_string_append_len): Here too. (append_8bit): " (rfc2047_encode_word): " (quote_word): " (hex_decode): " (rfc2184_decode): Use size_t's with iconv(). (header_decode_param): Same.
* Fix the tm_gmtoff case (its sign is the opposite of "timezone"). FixesDan Winship2001-12-102-1/+7
| | | | | | * camel-mime-message.c (camel_mime_message_set_date): Fix the tm_gmtoff case (its sign is the opposite of "timezone"). Fixes #14678
* Protect against either of the types being NULL.Jeffrey Stedfast2001-12-072-2/+17
| | | | | | | 2001-12-04 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (header_content_type_simple): Protect against either of the types being NULL.
* If complete() allocates len+2 bytes for the out buffer, so should this.Jeffrey Stedfast2001-12-072-6/+12
| | | | | | | | 2001-12-05 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-filter-basic.c (filter): If complete() allocates len+2 bytes for the out buffer, so should this. See bug #16371 for an example case.
* Don't use regex matching. Fixes bug #16227.Jeffrey Stedfast2001-11-304-31/+74
| | | | | | | | | | | | | | | | | | 2001-11-29 Jeffrey Stedfast <fejj@ximian.com> * camel-folder-search.c (search_body_contains): Don't use regex matching. Fixes bug #16227. * camel-mime-message.c (best_encoding): Check the content-object's mime type, not the mime part types. Should fix bug #15843. 2001-11-27 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (get_content): Return NULL if construct_from_stream fails. (get_message): Same. (get_message_simple): Here too. (add_message_from_data): And here.
* Use the uid rather than vuid for unmatched. Also add the uid to unmatched42001-11-303-15/+57
| | | | | | | | | | | | | | | | 2001-11-14 <NotZed@Ximian.com> * camel-vee-folder.c (folder_changed_remove_uid): Use the uid rather than vuid for unmatched. Also add the uid to unmatched if it wasn't in the unmatched_uids table at all. (folder_changed_change): If checking for added, if the new ones dont match, then try to add them to unmatched. Fixes #6893. * camel-folder-summary.c (camel_folder_summary_index): Change lock order, always summary_lock before ref_lock. (camel_folder_summary_array): " (camel_folder_summary_uid): " (camel_folder_summary_remove_uid): " Fixes a deadlock.
* Remove OpenSSL library includes/LDFLAGS from the build.Jeffrey Stedfast2001-11-277-19/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-21 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Remove OpenSSL library includes/LDFLAGS from the build. 2001-11-20 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (get_smtp_error_string): Check to see that errno is non-zero before returning g_strerror. If it's 0, then we have an unknown error. 2001-11-19 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream-ssl.c (stream_read): Added a check to see if the operation has been cancelled. (stream_write): Same. 2001-11-16 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-utils.c (imap_parse_body): Abort if body == NULL. 2001-11-16 Jeffrey Stedfast <fejj@ximian.com> Since some mail clients like Outlook are broken, we need to set a name parameter on pgp signed and encrypted parts. * camel-pgp-mime.c (camel_pgp_mime_part_encrypt): Set a name parameter. (camel_pgp_mime_part_sign): Same.
* Sync up for 1.0. Patches from Jeff to remove OpenSSL support.EVOLUTION_1_0Ettore Perazzoli2001-11-211-5/+1
|
* pull up e_passwords_forget_password fix from headDan Winship2001-11-201-18/+31
|
* If we have no source string, then use undefined, which should alwaysEVOLUTION_0_99_232001-11-132-3/+13
| | | | | | | | 2001-11-13 <NotZed@Ximian.com> * camel-filter-search.c (get_source): If we have no source string, then use undefined, which should always evaluate to FALSE. Fix for #15267.
* Added a g_return_val_if_fail for folder_name != NULL.Jeffrey Stedfast2001-11-122-1/+8
| | | | | | | 2001-11-12 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_get_folder): Added a g_return_val_if_fail for folder_name != NULL.
* If any of the pipe()'s fail, clean up any pipes that may have succeeded.Jeffrey Stedfast2001-11-093-13/+33
| | | | | | | | 2001-11-08 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-context.c (crypto_exec_with_passwd): If any of the pipe()'s fail, clean up any pipes that may have succeeded. Also close the password fds.
* If we get a user cancel and that causes us to fail to authenticate, abort92001-11-092-0/+9
| | | | | | | | 2001-11-09 <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (imap_auth_loop): If we get a user cancel and that causes us to fail to authenticate, abort rather than loop forever. Fix for #14951.
* Now takes a command-length argument so we can 1) avoid duping the commandJeffrey Stedfast2001-11-095-28/+67
| | | | | | | | | | | | | | | | | | | | | | 2001-11-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-command.c (camel_imap_command_continuation): Now takes a command-length argument so we can 1) avoid duping the command string yet again, yay. 2) we now don't have to worry about embedded nul-chars screwing us over (we still need to avoid allowing them into the string but at least now it won't mess us up). * providers/imap/camel-imap-folder.c (do_append): Instead of appending a nul char to the end of the byte array and then passing that off as if it were a string to camel_imap_command_continuation, instead pass the byte-array length since that function now takes a length argument. Yay. Also encode any 8bit parts to avoid the possibility of sending embedded nul chars to the imap server. * providers/imap/camel-imap-store.c (try_auth): Updated to pass a command-length argument to camel_imap_command_continuation().
* Oops, pass a mode argument to the open() call.Jeffrey Stedfast2001-11-093-49/+40
| | | | | | | | | | 2001-11-07 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream-ssl.c (save_ssl_cert): Oops, pass a mode argument to the open() call. * camel-tcp-stream-openssl.c (save_ssl_cert): Oops, pass a mode argument to the open() call.
* Add code to kludge around any x-inline-pgp-hacks by prepending someJeffrey Stedfast2001-11-082-0/+27
| | | | | | | | 2001-11-07 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-mime.c (camel_pgp_mime_part_decrypt): Add code to kludge around any x-inline-pgp-hacks by prepending some content headers to the decrypted data.
* Initialize our private mutex. (camel_data_wrapper_finalize): Destroy ourEVOLUTION_0_99_0Jeffrey Stedfast2001-11-024-14/+56
| | | | | | | | | | | 2001-11-02 Jeffrey Stedfast <fejj@ximian.com> * camel-data-wrapper.c (camel_data_wrapper_init): Initialize our private mutex. (camel_data_wrapper_finalize): Destroy our private mutex. (write_to_stream): Lock around camel_stream_write_to_stream() so that we don't get 2 threads trying to read from our stream at the same time.
* Move all searching operations outside of any locks except subfolder lock,12001-11-022-53/+86
| | | | | | | | 2001-11-01 <NotZed@Ximian.com> * camel-vee-folder.c (folder_changed_change): Move all searching operations outside of any locks except subfolder lock, same as build_folder. Fix for #14294.
* Same as below.12001-10-319-9/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-31 <NotZed@Ximian.com> * providers/local/camel-spool-folder.c (spool_get_message): Same as below. * providers/local/camel-maildir-folder.c (maildir_get_message): Same as below. * providers/local/camel-mbox-folder.c (mbox_get_message): Set USER_CANCEL if failed due to EINTR. * camel-filter-driver.c (camel_filter_driver_filter_mbox): If construct from parser fails due to user cancel, set USER_CANCEL on exception. * camel-mime-part.c (construct_from_parser): Return error if the parser had an io error. * camel-mime-message.c (construct_from_parser): Check error on parser/return error. * camel-mime-parser.c (folder_scan_init): Init error number. (camel_mime_parser_errno): New function, return errno of any io failures. (folder_read): Set errno if a failure occured. (folder_seek): Same. (folder_scan_init_with_fd): Setup errno depeding on ok/failure. (folder_scan_init_with_stream): Same.
* Dont setup cancel_fd. (camel_operation_cancel_fd): If cancel_fd notEVOLUTION_0_16_10002001-10-302-8/+18
| | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * camel-operation.c (camel_operation_new): Dont setup cancel_fd. (camel_operation_cancel_fd): If cancel_fd not created, set it up. (camel_operation_cancel): Set cancel flag before sending message. (cancel_thread): Same.
* Make sure we unref the mimeparse when we're done (successfully). This was02001-10-303-4/+14
| | | | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * camel-filter-driver.c (camel_filter_driver_filter_mbox): Make sure we unref the mimeparse when we're done (successfully). This was leaking an fd every get-mail! :( * camel-lock-client.c (camel_lock_helper_init): Close all fd's above 2.
* Remove the X-Evolution header before anyone else gets to see this private02001-10-302-0/+7
| | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * providers/local/camel-mbox-folder.c (mbox_get_message): Remove the X-Evolution header before anyone else gets to see this private thing. Shoudl fix 11676 since we were inheriting flags from X-Evolution headers we didn't want to.
* If we can't retrieve the message, ignore it, it can't match.02001-10-304-10/+24
| | | | | | | | | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * camel-folder-search.c (match_message): If we can't retrieve the message, ignore it, it can't match. * providers/imap/camel-imap-search.c (camel_imap_search_class_init): Setup parent class pointer. (imap_body_contains): If offline, just use the parent body_contains method which will get the messages and search them manually. * providers/imap/camel-imap-folder.c (imap_search_by_expression, imap_search_by_uids): Remove offline check.
* Fix this to match get_headers.Dan Winship2001-10-302-5/+4
| | | | * camel-mime-part.c (free_headers): Fix this to match get_headers.
* Dont try to move ibex if we have none.02001-10-303-5/+11
| | | | | | | 2001-10-30 <NotZed@Ximian.com> * providers/local/camel-local-store.c (rename_folder): Dont try to move ibex if we have none.
* Fixed compilation errors.02001-10-302-2/+7
| | | | | | | 2001-10-30 <NotZed@Ximian.com> * camel-tcp-stream-openssl.c (stream_write): Fixed compilation errors.
* Removed unused variable.Jeffrey Stedfast2001-10-302-1/+5
| | | | | | | 2001-10-29 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (camel_mime_utils_init): Removed unused variable.
* fixed a compile problem and saved errno before calling fcntl() in stream_readJeffrey Stedfast2001-10-301-3/+6
|