Commit Graph

1336 Commits

Author SHA1 Message Date
f6408daa10 New function to map ISO charsets to the Windows charsets.
2001-12-17  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-charset-map.c (camel_charset_iso_to_windows): New function
	to map ISO charsets to the Windows charsets.

	* camel-mime-part-utils.c (broken_windows_charset): Detect Windows
	charsets.
	(simple_data_wrapper_construct_from_parser): Simplify a tad and
	also check for iso-8859-* charsets that are really Windows
	charsets. Fixes bug #12631.

svn path=/trunk/; revision=15144
2001-12-18 01:28:27 +00:00
d55058d663 only use major and minor version in the camel providerdir, not micro and nano
svn path=/trunk/; revision=15121
2001-12-17 17:59:47 +00:00
c2e29d97bf Reverted my previous changes here since it doesn't actually work afterall.
2001-12-16  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-folder.c (get_content): Reverted my
	previous changes here since it doesn't actually work afterall.

	* providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate):
	Update to do uudecoding when appropriate.

svn path=/trunk/; revision=15098
2001-12-17 02:51:00 +00:00
fc59dc8c6f Try to use the original boundary so luis will stop bugging me about "data
2001-12-16  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-folder.c (get_content): Try to use the
	original boundary so luis will stop bugging me about "data
	corruption". Also preserve other params in the multipart
	content-type by dumping it to a string and setting it on the mime
	part.

svn path=/trunk/; revision=15094
2001-12-17 01:52:40 +00:00
78416d76d4 Try to use the original boundary so luis will stop bugging me about "data
2001-12-16  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-folder.c (get_content): Try to use the
	original boundary so luis will stop bugging me about "data
	corruption".

svn path=/trunk/; revision=15093
2001-12-17 00:57:10 +00:00
097aa981da Reset the filtered_count to zero.
2001-12-14  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-filter-driver.c
	(camel_filter_driver_reset_filtered_count): Reset the
	filtered_count to zero.
	(camel_filter_driver_get_filtered_count): Return the private
	filtered_count value.
	(camel_filter_driver_filter_message): Increment the
	filtered_count.
	(camel_filter_driver_set_shell_exec_func): New function to set the
	shell-exec func.
	(shell_exec): New ESExp filter action callback.

svn path=/trunk/; revision=15087
2001-12-14 23:23:06 +00:00
bad0d14682 Removed x-inline-pgp-hack kludge because it doesn't work.
2001-12-14  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-mime.c (camel_pgp_mime_part_verify): Removed
	x-inline-pgp-hack kludge because it doesn't work.
	(camel_pgp_mime_part_decrypt): Same.

svn path=/trunk/; revision=15077
2001-12-14 18:06:16 +00:00
4d9df464b9 include stdlib.h (for alloca on freebsd) and only include alloca.h if
2001-12-13  Chris Toshok  <toshok@ximian.com>

	* camel-data-cache.c: include stdlib.h (for alloca on freebsd) and
	only include alloca.h if HAVE_ALLOCA_H is defined.

svn path=/trunk/; revision=15033
2001-12-14 03:02:55 +00:00
9b42600ef3 Fixes #17085
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)

svn path=/trunk/; revision=15029
2001-12-13 23:39:01 +00:00
66587d89a3 Keep a name-to-type hash so that we can make sure that the type has not
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.

svn path=/trunk/; revision=15021
2001-12-13 20:38:11 +00:00
081f6dbb1b Protect against either of the types being NULL.
2001-12-04  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (header_content_type_simple): Protect against
	either of the types being NULL.

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.

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.

svn path=/trunk/; revision=14956
2001-12-10 19:14:32 +00:00
4e5542ad28 Fix the tm_gmtoff case (its sign is the opposite of "timezone"). Fixes
* camel-mime-message.c (camel_mime_message_set_date): Fix the
	tm_gmtoff case (its sign is the opposite of "timezone"). Fixes
	#14678

svn path=/trunk/; revision=14948
2001-12-10 14:28:55 +00:00
b5e7713c8e Implements marking messages as "Need Reply".
Implements marking messages as "Need Reply".

2001-12-09  Jon Trowbridge  <trow@ximian.com>

	* mail-need-reply.xpm: Added a really, really ugly and
	awful icon to symbolize "message needs a reply".

	* Makefile.am (EXTRA_DIST): Added mail-need-reply.xpm.

2001-12-09  Jon Trowbridge  <trow@ximian.com>

	* camel-folder-summary.c: Add "NeedsReply" to the flag_names array
	for CAMEL_MESSAGE_NEEDS_REPLY.

	* camel-folder-summary.h: Added CAMEL_MESSAGE_NEEDS_REPLY flag.

2001-12-09  Jon Trowbridge  <trow@ximian.com>

	* vfoldertypes.xml: Add "Needs Reply" option to different status
	types.

	* filtertypes.xml: Add "Needs Reply" option to different status
	types.

2001-12-09  Jon Trowbridge  <trow@ximian.com>

	* message-list.c: #include "art/mail-need-reply.xpm".
	(ml_tree_value_at): Adjust magic numbers, show "Need Reply" icon
	if the message needs reply.
	(message_list_create_extras): Adjust magic numbers to add new
	icon.
	(on_click): Changed to toggle between unread, read, and need reply
	when the status icon is clicked.

	* mail-callbacks.c (mark_as_needing_reply): Added.
	(mark_as_not_needing_reply): Added.  Add "set" value to struct
	post_send_data.
	(composer_sent_cb): Use both "flags" and "set" elements of
	post_send_data when setting message flags.
	(mail_reply): Clear "Needs Reply" flag when we actually reply to a
	message.

	* folder-browser.c: Changed flag values to be given by
	bit-shifting (1<<5) vs. base-ten (32).  Added
	CAN_MARK_DOESNT_NEED_REPLY flag.  Added "Mark as Needing Reply"
	and "Mark as Not Needing Reply" elements to context menu.
	(on_right_click): Hide "Mark as (Not) Needing Reply" context menu
	elements as appropriate.

svn path=/trunk/; revision=14946
2001-12-10 03:50:36 +00:00
0c3435a0e1 Don't use regex matching. Fixes bug #16227.
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.

svn path=/trunk/; revision=14834
2001-11-30 23:43:39 +00:00
4
aa0a82422b Use the uid rather than vuid for unmatched. Also add the uid to unmatched
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.

svn path=/trunk/; revision=14831
2001-11-30 21:38:05 +00:00
d46cb0fd8d Completely new implementation of NNTP.
2001-11-30  Not Zed  <NotZed@Ximian.com>

        * providers/nntp/camel-nntp-*.c:

        Completely new implementation of NNTP.

        Doesn't support subscriptions yet (lists all folders), but should
        be more reliable (faster?), and has an integrated cache.

        * camel-exception.c (camel_exception_new): Use e_memchunks for
        exception blocks.
        (camel_exception_free): Same.

        * camel-data-cache.[ch]: New object for managing on-disk caches of
        anything that can be stored in a camel-stream.

        * camel-file-utils.c (camel_file_util_mkdir): New function, just a
        nicer place to put this (than camel-store), should be removed from
        camel-store.
        (camel_file_util_safe_filename): New function to url-encode a
        filename.

        * camel-mime-parser.c (drop_states): New func to drop the parser
        state to initial state.
        (folder_scan_init_with_fd):
        (folder_scan_init_with_stream): Call above func to reset state if
        the stream is changed on us so we can change streams to reuse a
        parser object.

svn path=/trunk/; revision=14822
2001-11-30 03:09:38 +00:00
4b89a1c6b2 If the uid doesn't have a ',' in it, fail to crash.
2001-11-25  Not Zed  <NotZed@Ximian.com>

        * providers/nntp/camel-nntp-folder.c (nntp_folder_get_message): If
        the uid doesn't have a ',' in it, fail to crash.

        * providers/nntp/camel-nntp-newsrc.c
        (camel_nntp_newsrc_article_is_read): check group != NULL before scanning.
        (camel_nntp_newsrc_get_highest_article_read): "
        (camel_nntp_newsrc_get_num_articles_read): "
        (camel_nntp_newsrc_mark_range_read): "

        * providers/nntp/camel-nntp-store.c
        (camel_nntp_store_get_overview_fmt): IF we dont have
        nntp_list_follows, dont try and get a list response.
        (nntp_store_get_folder_info): Set path part of folderinfo.

svn path=/trunk/; revision=14799
2001-11-27 23:05:30 +00:00
b1efae86ff Check to see that errno is non-zero before returning g_strerror. If it's
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.

svn path=/trunk/; revision=14790
2001-11-26 21:32:26 +00:00
7228996216 For the uudecoding mode, garble up the "begin <mode> <filename>" line
2001-11-26  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-filter-basic.c: For the uudecoding mode, garble up
	the "begin <mode> <filename>" line before decoding.

	* camel-mime-part-utils.c
	(simple_data_wrapper_construct_from_parser): Add a uudecoder if
	the transfer encoding is x-uuencode.

	* camel-mime-part.c (write_to_stream): Handle x-uuencoded content
	too.

svn path=/trunk/; revision=14789
2001-11-26 21:30:55 +00:00
9b0ffde9c0 Added a check to see if the operation has been cancelled. (stream_write):
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.

svn path=/trunk/; revision=14751
2001-11-19 21:00:25 +00:00
5d3580719a Updates for compliance with rfc2231
2001-11-19  Jeffrey Stedfast  <fejj@ximian.com>

	Updates for compliance with rfc2231

	* camel-mime-utils.c (header_encode_param):
	camel_mime_special_table[c] & IS_ESAFE should have been
	!(camel_mime_special_table[c] & IS_ESAFE). Also added a few
	comments for how to improve the code at some future date.
	(header_decode_param): Now takes an argument rfc2184_part so our
	caller can get this information as well.
	(header_decode_param_list): Pass an rfc2184_part argument to
	header_decode_param and also added a few comments on where to
	improve on rfc2184/rfc2231 compliance.
	(rfc2047_decode_word): Updated to respect the updated ABNF syntax
	of rfc2047 encoded words, yay.

svn path=/trunk/; revision=14750
2001-11-19 19:27:46 +00:00
48820eabf4 Abort if body == NULL.
2001-11-16  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-utils.c (imap_parse_body): Abort if
	body == NULL.

svn path=/trunk/; revision=14738
2001-11-16 23:19:55 +00:00
fc71161f50 New mime filter to convert plain text to html.
2001-11-16  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-filter-tohtml.c (camel_mime_filter_tohtml_new): New
	mime filter to convert plain text to html.

svn path=/trunk/; revision=14737
2001-11-16 23:00:08 +00:00
b64fee1ba4 see the ChangeLog, I forget
svn path=/trunk/; revision=14736
2001-11-16 22:58:53 +00:00
5701b20541 If we get a BYE response, call camel_service_disconnect() and set an
2001-11-14  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-command.c
	(camel_imap_command_response): If we get a BYE response, call
	camel_service_disconnect() and set an exception. Also do the check
	for "* BYE" first instead of passing it off imap_read_untagged()
	since we'll just waste time in there mallocing left and right only
	to arrive at the single response line "* BYE" again :-)

svn path=/trunk/; revision=14735
2001-11-16 22:55:45 +00:00
3
77b4c60a69 If we have no source string, then use undefined, which should always
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.

svn path=/trunk/; revision=14688
2001-11-13 22:51:46 +00:00
e42b0f2061 Added a g_return_val_if_fail for folder_name != NULL.
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.

svn path=/trunk/; revision=14676
2001-11-12 23:22:36 +00:00
7d2baffd50 If any of the pipe()'s fail, clean up any pipes that may have succeeded.
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.

svn path=/trunk/; revision=14649
2001-11-09 22:00:54 +00:00
9
7f1c4d58ea If we get a user cancel and that causes us to fail to authenticate, abort
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.

svn path=/trunk/; revision=14648
2001-11-09 21:48:42 +00:00
64c19759bf Now takes a command-length argument so we can 1) avoid duping the command
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().

svn path=/trunk/; revision=14637
2001-11-09 00:41:09 +00:00
4e96a9415b Oops, pass a mode argument to the open() call.
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.

svn path=/trunk/; revision=14636
2001-11-09 00:38:51 +00:00
4a3c80cd3c Add code to kludge around any x-inline-pgp-hacks by prepending some
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.

svn path=/trunk/; revision=14620
2001-11-08 00:08:35 +00:00
d2e6a28e22 Initialize our private mutex. (camel_data_wrapper_finalize): Destroy our
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.

svn path=/trunk/; revision=14573
2001-11-02 23:53:36 +00:00
1
da698af7bf Move all searching operations outside of any locks except subfolder lock,
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.

svn path=/trunk/; revision=14571
2001-11-02 19:33:16 +00:00
1
7a1dfcef58 Same as below.
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.

svn path=/trunk/; revision=14559
2001-10-31 23:55:45 +00:00
0
3afcc4239f Dont setup cancel_fd. (camel_operation_cancel_fd): If cancel_fd not
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.

svn path=/trunk/; revision=14469
2001-10-30 18:52:00 +00:00
0
aa4d57d3e4 Make sure we unref the mimeparse when we're done (successfully). This was
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.

svn path=/trunk/; revision=14468
2001-10-30 18:22:14 +00:00
0
dc918f67f3 Remove the X-Evolution header before anyone else gets to see this private
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.

svn path=/trunk/; revision=14453
2001-10-30 12:41:17 +00:00
0
4ae909c93b If we can't retrieve the message, ignore it, it can't match.
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.

svn path=/trunk/; revision=14442
2001-10-30 07:55:59 +00:00
ac2ffbc8e3 Fix this to match get_headers.
* camel-mime-part.c (free_headers): Fix this to match get_headers.

svn path=/trunk/; revision=14432
2001-10-30 05:23:59 +00:00
0
613e004309 Dont try to move ibex if we have none.
2001-10-30    <NotZed@Ximian.com>

        * providers/local/camel-local-store.c (rename_folder): Dont try to
        move ibex if we have none.

svn path=/trunk/; revision=14429
2001-10-30 05:20:50 +00:00
0
9281c3d5f7 Fixed compilation errors.
2001-10-30    <NotZed@Ximian.com>

        * camel-tcp-stream-openssl.c (stream_write): Fixed compilation
        errors.

svn path=/trunk/; revision=14420
2001-10-30 04:29:00 +00:00
ebb0b83790 Removed unused variable.
2001-10-29  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (camel_mime_utils_init): Removed unused
	variable.

svn path=/trunk/; revision=14419
2001-10-30 04:26:28 +00:00
0
e01b1cb662 w(x) out some warnings.
2001-10-30    <NotZed@Ximian.com>

        * camel-mime-utils.c (header_decode_mailbox): w(x) out some warnings.

        * providers/local/camel-local-summary.c
        (camel_local_summary_load): Remove the warning about not loading
        summary file - its a valid case for new folders.

svn path=/trunk/; revision=14411
2001-10-30 03:27:28 +00:00
2a5e8cb179 Removed. (stream_write): Keep looping (non-blocking case) if errno is
2001-10-29  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-tcp-stream-openssl.c (my_SSL_write): Removed.
	(stream_write): Keep looping (non-blocking case) if errno is
	EAGAIN, EINTR or EWOULDBLOCK. For NONBLOCKing I/O, sync up with
	CamelTcpStreamRaw. As with CamelTcpStreamRaw/SSL - make sure to
	write out everything before returning.
	(my_SSL_read): Removed.
	(stream_read): Just call ssl_error_to_errno() and check the errno
	values that we care about so we can keep the general look of all
	this stream code the same. Also when checking the return value of
	SSL_read, check for <0 instead of ==-1 since the man page for
	SSL_read doesn't say it will return -1 on fail, it just says <0.
	(stream_flush): Don't fsync() since syncing on a socket is a Bad
	Thing (tm).

	* camel-tcp-stream-ssl.c (stream_write): Make sure we write out
	everything just like in camel-tcp-stream-raw.c.

	* camel-stream-buffer.c (camel_stream_buffer_gets): If
	camel_stream_read() returns -1, don't necessarily return -1 to our
	caller since it's possible that we did actually "read" some data
	(ie, we copied some pre-buffered data into the out buffer).

	* camel-stream-buffer.h: Removed CAMEL_STREAM_BUFFER_NEWLINE since
	it never got used anywhere and it isn't supported anyway.

svn path=/trunk/; revision=14409
2001-10-30 03:09:01 +00:00
0
e6e77f1fc3 If we get an empty name, then mark that as NoSelect. Workaround fix for
2001-10-30    <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c
        (parse_list_response_as_folder_info): If we get an empty name,
        then mark that as NoSelect.  Workaround fix for #13239.

svn path=/trunk/; revision=14392
2001-10-30 01:34:55 +00:00
55d0f4b62c Set an X-Evolution-Source header on the returned message so replies come
* providers/imap/camel-imap-folder.c (get_message_simple,
	imap_get_message): Set an X-Evolution-Source header on the
	returned message so replies come from the right identity.

svn path=/trunk/; revision=14388
2001-10-30 00:52:11 +00:00
9
5eeda56f88 If we're not going to search on a changed uid, make sure we change out
2001-10-29    <NotZed@Ximian.com>

        * camel-vee-folder.c (folder_changed_change): If we're not going
        to search on a changed uid, make sure we change out copy still.
        Fixes #13916.

svn path=/trunk/; revision=14386
2001-10-30 00:24:55 +00:00
921c64fb60 Don't emit a folder_subscribed signal if we are in the process of renaming
2001-10-29  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-store.c (subscribe_folder): Don't emit
	a folder_subscribed signal if we are in the process of renaming
	folders.
	(unsubscribe_folder): Same here but for the unsubscribe signal.
	(rename_folder): Unsubscribe from the folder being renamed and any
	subfolders it may have before actually renaming. Once the folder
	has been renamed, re-subscribe to it and it's subfolders with the
	new name.

	* camel-store.c (camel_folder_info_build): Sort the folder info's
	before constructing the tree.

svn path=/trunk/; revision=14378
2001-10-29 23:23:12 +00:00
c764ec4132 Minor fix - should have been using a strNcmp when checking if it was an
2001-10-29  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (header_decode_param): Minor fix - should
	have been using a strNcmp when checking if it was an rfc2047
	encoded word.

svn path=/trunk/; revision=14360
2001-10-29 20:51:24 +00:00