Commit Graph

2305 Commits

Author SHA1 Message Date
36eaccbb3a only free the host if it was set. removes a run-time warning.
2003-04-23  Not Zed  <NotZed@Ximian.com>

        * providers/smtp/camel-smtp-transport.c (smtp_helo): only free the
        host if it was set.  removes a run-time warning.

svn path=/trunk/; revision=20949
2003-04-24 01:51:20 +00:00
feb3551818 fixed merge conflicts in ChangeLog
svn path=/trunk/; revision=20937
2003-04-23 18:16:23 +00:00
9294fc3e56 #if 0 out some code that parsed the namespaces since the results aren't
2003-04-22  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-store.c (imap_connect_online): #if 0
	out some code that parsed the namespaces since the results aren't
	used and they generate debugging output.

svn path=/trunk/; revision=20936
2003-04-23 18:14:54 +00:00
2f37afc6f8 oops, the service owns the url after we construct it.
2003-04-23  Not Zed  <NotZed@Ximian.com>

        * camel-session.c (get_service): oops, the service owns the url
        after we construct it.

svn path=/trunk/; revision=20931
2003-04-23 04:44:58 +00:00
41e808deca ** Should fix #41629, #41448, et al.
2003-04-22  Not Zed  <NotZed@Ximian.com>

        ** Should fix #41629, #41448, et al.

        * tests/folder/test10.c: a new torture test for object bag
        creation/unreffing.

        * camel-url.c (camel_url_copy): new function to copy a url.

        * camel-object.c (camel_object_bag_new): add arguments for key
        copy and key free functions.  Fixed all callers.
        (camel_object_bag_destroy): fix a memleak, free the bag key.
        (camel_object_bag_get, camel_object_bag_reserve)
        (camel_object_bag_abort, save_bag, save_object): Make the key a
        void type, rather than char *.
        (camel_object_bag_add): As above, and also copy the key.
        (camel_object_bag_remove_unlocked): free the key using
        bag->free_key.

        * camel-session.c (register_provider)
        (camel_session_destroy_provider, get_service): Changed to use an
        object bag instead of a hash table for the service 'cache'.
        (service_cache_remove): Removed, no longer required.

svn path=/trunk/; revision=20930
2003-04-23 01:34:03 +00:00
469e6d2971 Don't set seen_eof1 here anymore once we get a trust metric.
2003-04-21  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-gpg-context.c (gpg_ctx_parse_status): Don't set seen_eof1
	here anymore once we get a trust metric.
	(gpg_ctx_new): Init seen_eof1 to TRUE here.
	(gpg_ctx_set_ostream): Change seen_eof1 to FALSE here this way we
	only ever have to set this if we are expecting output.
	(gpg_ctx_parse_status): Don't set seen_eof1 for importing either.
	(gpg_ctx_op_step): Only FD_SET() those fd's that we have not yet
	finished reading.

svn path=/trunk/; revision=20922
2003-04-22 18:13:49 +00:00
04ccbdd8e8 ** for #40989
2003-04-17  Not Zed  <NotZed@Ximian.com>

        ** for #40989

        * camel-text-index.c (text_index_delete): delete the block
        file/key file directly, not just its files.

        * providers/local/camel-local-folder.c (local_delete): implement,
        just delete the index file if it exists.
        camel-store-delete-folder will delete other data (maybe it all
        should be done here).

        * camel-block-file.c (camel_key_file_finalise): keep lock around
        decrementing key file use count.
        (camel_key_file_delete): new function to delete the key file (&
        close it off).
        (key_file_use): if we've been deleted, always fail.
        (camel_block_file_finalise): only close the file if its a valid
        fd.
        (block_file_use): if we've been deleted, always fail.
        (camel_block_file_delete): delete the block file & close.
        (struct _CamelBlockFilePrivate): fix the !ENABLE_THREADS case to
        still compile this.

svn path=/trunk/; revision=20894
2003-04-19 03:15:54 +00:00
223d2354ac Urls are unlikely to end with punctuation or closing braces, so strip any
2003-04-16  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-url-scanner.c (camel_url_web_end): Urls are unlikely to
	end with punctuation or closing braces, so strip any of those off
	the end of the url. Fixes bug #41461.

	* tests/mime-filter/data/html.1.out: Removed a trailing \n at the
	end of the file, this is incorrect (since out input file does not
	contain one).

	* camel-mime-filter-tohtml.c (html_convert): Only output a <br> if
	we found an eoln in the input. Along the same lines, don't write a
	'\n' to the output buffer unless we've encountered that eoln in
	the input. Fixes bug #41407.

svn path=/trunk/; revision=20882
2003-04-17 16:43:07 +00:00
6b479c5f9f Dont assume adding 1 to line length will go to the next line. e.g. for dos
2003-04-17  Not Zed  <NotZed@Ximian.com>

        * camel-multipart-signed.c (parse_content): Dont assume adding 1
        to line length will go to the next line.  e.g. for dos lines that
        end in \r\n.  Fix for #41163.
        (parse_boundary): util function to help above.

svn path=/trunk/; revision=20874
2003-04-17 03:09:37 +00:00
76e859fb6b The gpg child process exiting does not necessarily mean that we've ready
2003-04-15  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-gpg-context.c (gpg_verify): The gpg child process exiting
	does not necessarily mean that we've ready everything that we can
	from its pipes, so don't use gpg_ctx_op_exited() as a loop-exit
	condition. If for some reason the gpg child process does exit (due
	to an error), gpg_ctx_op_step() will eventually fail (as soon as
	it has finished reading any data in the pipes) and cause the loop
	to be terminated anyway. This fixes truncation of the gpg --verify
	stderr output that Evolution displays as the "validity report"
	(for lack of a better description).
	(gpg_ctx_op_step): Removed some debugging printf's
	(gpg_ctx_get_diagnostics): Use a bitfield to decide if we've
	already flushed the diagnostics stream, much simpler (plus we have
	plenty of bits to spare so might as well use them).
	(gpg_ctx_new): Fixed another logic bug which determined whether or
	not we should convert the gpg output from the locale charset into
	UTF-8.

svn path=/trunk/; revision=20865
2003-04-16 17:02:10 +00:00
9a3c8bf152 Turn off debugging if CAMEL_VERBOSE_DEBUG isn't set.
2003-04-10  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/smtp/camel-smtp-transport.c: Turn off debugging if
	CAMEL_VERBOSE_DEBUG isn't set.

svn path=/trunk/; revision=20803
2003-04-10 17:13:15 +00:00
2e7d1434ae filter data test cases.
2003-04-10  Not Zed  <NotZed@Ximian.com>

        * tests/mime-filter/data: filter data test cases.

        * tests/mime-filter/test-tohtml.c: New test for html filter.

        ** See bug #40969

        * camel-mime-filter-tohtml.c (html_convert): Change the logic
        slightly, scan a whole line within the main loop.

svn path=/trunk/; revision=20799
2003-04-10 11:35:00 +00:00
0933b12476 Removed. I just realised that we ALWAYS want to get gpg's stderr in UTF-8,
2003-04-09  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-gpg-context.c (gpg_ctx_get_utf8_diagnostics): Removed. I
	just realised that we ALWAYS want to get gpg's stderr in UTF-8, so
	the better solution (plus less code duplication) is to just have
	the diagnostics buffer be a CamelStreamMem with a charset filter.
	(gpg_ctx_new): Setup a filter stream to convert our gpg stderr
	diagnostics into UTF-8 if needed.
	(gpg_ctx_free): Unref the diagnostcis stream.
	(gpg_ctx_parse_status): Flush the diagnostics stream if we are
	going to use the data in an exception.
	(gpg_ctx_op_step): Use camel_stream_write() to append to the
	diagnostics stream rather than appending the buffer to a
	GByteArray like we used to do.
	(gpg_ctx_op_step): Flush the diagnostics stream here too.
	(gpg_verify): Use a const char *diagnostics string here, forcing a
	slight rearrangement of calls - use the const char *dignostics
	before we gpg_ctx_free, otherwise we'll be passing free'd memory
	off to the cipher_validity.
	(gpg_ctx_get_diagnostics): Do the work here to flush the
	diagnostics stream and nul-terminate the buffer. Also return const
	now, instead of strdupping. No need for that.
	(gpg_ctx_parse_status): Convert the user hint to UTF-8.

svn path=/trunk/; revision=20798
2003-04-09 23:21:15 +00:00
14517cbca4 Changed my mind a bit on how I wanted this to work. Instead of aborting on
2003-04-09  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-gpg-context.c (gpg_ctx_get_utf8_diagnostics): Changed my
	mind a bit on how I wanted this to work. Instead of aborting on an
	illegal sequence, do like we do with camel-mime-filter-charset and
	just skip over invalid sequences. Also, in the noop failure case,
	close the iconv_t so we don't leak it.

svn path=/trunk/; revision=20796
2003-04-09 22:04:33 +00:00
94286866e7 Save the content size in a temp variable until after we've successfully
2003-04-09  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-utils.c (imap_body_decode): Save the
	content size in a temp variable until after we've successfully
	parsed all of the body_type_1part expr. Also fixed a type-o in the
	body_type_mpart case that caused the parser to fail.
	(imap_parse_body): On failure to parse the body, as we iterate
	through the child nodes, set their children/parent/next nodes to
	NULL so that content_info_free() won't double-free any of the
	other nodes we have already free'd (or are about to free).

svn path=/trunk/; revision=20795
2003-04-09 21:02:34 +00:00
bcfbad5e31 New function to get the UTF-8 version of the diagnostics (if the locale
2003-04-09  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-gpg-context.c (gpg_ctx_get_utf8_diagnostics): New function
	to get the UTF-8 version of the diagnostics (if the locale isn't
	already UTF-8 safe).
	(gpg_verify): Use the utf-8 diagnostics here. Also fixed a memleak
	in the exception case.

svn path=/trunk/; revision=20792
2003-04-09 19:27:17 +00:00
17c1d1c0fd NULL-protect the to/from charsets in the g_warning call.
2003-04-09  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-filter-charset.c
	(camel_mime_filter_charset_new_convert): NULL-protect the to/from
	charsets in the g_warning call.

svn path=/trunk/; revision=20774
2003-04-09 05:55:45 +00:00
552a2f3af8 Fixes for bug #40778. Probably others as well.
2003-04-08  Jeffrey Stedfast  <fejj@ximian.com>

	Fixes for bug #40778. Probably others as well.

	* providers/imap/camel-imap-utils.c (parse_params): Return 0 on
	success, or -1 on fail. The other small utility functions should
	probably do the same, but I was too lazy to fix them. Setting
	inptr to NULL is just lame.
	(imap_body_decode): New function to correctly parse a BODY
	response.
	(imap_parse_body): Rewritten to use the above function.

svn path=/trunk/; revision=20773
2003-04-09 00:09:24 +00:00
e73f740c72 Make sure host->h_name is not an empty string too? Apparently for one user
2003-04-08  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/smtp/camel-smtp-transport.c (smtp_helo): Make sure
	host->h_name is not an empty string too? Apparently for one user
	his resolved hostname is "". Go figure. Probably a broken system,
	but easy enough to work around.

svn path=/trunk/; revision=20768
2003-04-08 20:20:04 +00:00
f146a1feb5 If store->engine->line is NULL, use _("Unknown error") as the error string
2003-04-08  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/pop3/camel-pop3-store.c (pop3_try_authenticate): If
	store->engine->line is NULL, use _("Unknown error") as the error
	string instead.

svn path=/trunk/; revision=20765
2003-04-08 17:48:12 +00:00
aa49e8de71 use g_strerror, and use errno directly rather than ferrno().
2003-04-08  Not Zed  <NotZed@Ximian.com>

        * camel-folder-summary.c (camel_folder_summary_load): use
        g_strerror, and use errno directly rather than ferrno().
        (summary_header_load): set errno when we get a version mismatch.

svn path=/trunk/; revision=20739
2003-04-08 00:55:02 +00:00
3af776f243 Disable debug printf's
2003-04-07  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-gpg-context.c: Disable debug printf's

svn path=/trunk/; revision=20733
2003-04-07 21:59:27 +00:00
c2fa57e71e If we are using the heimdal krb5 implementation, don't free outbuf ever.
2003-03-28  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-sasl-gssapi.c (gssapi_challenge): If we are using the
	heimdal krb5 implementation, don't free outbuf ever. Seems to
	segfault if we do.

svn path=/trunk/; revision=20624
2003-04-01 23:42:58 +00:00
7e61193784 Use strncasecmp for matching the nofill and /nofill tags. Also fixed to
2003-03-31  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-filter-enriched.c (enriched_to_html): Use strncasecmp
	for matching the nofill and /nofill tags. Also fixed to handle
	enriched tags that require <param> tags.

svn path=/trunk/; revision=20603
2003-03-31 21:54:46 +00:00
777f8cf10f remove unused var.
2003-03-28  Not Zed  <NotZed@Ximian.com>

	* providers/local/camel-spool-store.c (get_folder): remove unused
	var.

	* providers/imap/camel-imap-utils.c (imap_parse_list_response):
	moved an unused var to the #if 0'd out block.

	* providers/imap/camel-imap-store.c
	(parse_list_response_as_folder_info): remove unused vars.

	* camel-index-control.c (main): deifne camel_init() before using
	it.

	* camel-vee-store.c (vee_get_folder): removed unused var.

	* camel-stream-mem.c (stream_write): warning -> fixme.

	* camel-stream-filter.c (_CamelStreamFilterPrivate): Add a ; to
	the end of the struct definition.

	* camel-store.c (camel_store_delete_folder): remove unused var.
	(camel_store_rename_folder): "
	(camel_store_unsubscribe_folder): "

	* camel-mime-part.c (write_to_stream): Changed warning into a
	TODO.
	(construct_from_parser): removed warning, the code was fixed.

	* camel-mime-message.c (construct_from_parser): Remove the
	warning, the code was fixed.

	* camel-mime-filter-enriched.c (camel_mime_filter_enriched_new):
	Remove unused var.

	* camel-medium.c (camel_medium_get_header): Removed warning, and
	changed docs to reflect it.

	* camel-gpg-context.c (gpg_ctx_parse_status): handle MODE_EXPORT
	as a noop (warning).

	* camel-folder.c (get_message_user_tag): changed a warning into a
	fixme (its not that important).
	(camel_folder_get_message_user_tag): "

	* camel-data-cache.c (data_cache_finalise): removed unused vars.
	(data_cache_expire): "

svn path=/trunk/; revision=20556
2003-03-28 00:13:46 +00:00
a764639cd2 Get rid of debug printf's that are no longer needed. In the case of
2003-03-27  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-sasl-gssapi.c (gssapi_challenge): Get rid of debug
	printf's that are no longer needed. In the case of errors, don't
	release the outbuf gss_buffer_t since it shouldn't be set. Also
	g_free (str) when we are done with it.

svn path=/trunk/; revision=20551
2003-03-27 21:13:13 +00:00
6ba4c3938c When we remove a node from the list, make sure to g_list_free_1().
2003-03-27  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (header_encode_phrase_merge_words): When we
	remove a node from the list, make sure to g_list_free_1().
	(header_encode_phrase_merge_words): Don't use
	CAMEL_FOLD_PREENCODED as the upper-bound for merged-word length if
	the merged-word will not be an rfc2047 encoded word. Instead, use
	CAMEL_FOLD_SIZE-8 (which is the value we use in other places for
	determining upper-bound lengths). Solves bug #38659.

svn path=/trunk/; revision=20549
2003-03-27 20:16:57 +00:00
be9db81541 Like camel_url_encode, but works directly on an existing GString.
* camel-url.c (append_url_encoded): Like camel_url_encode, but
	works directly on an existing GString.
	(camel_url_to_string, output_param): Use it.
	(camel_url_encode): Likewise. Remove "escape_unsafe" arg since the
	"unsafe" chars are the ones that should *always* be escaped, and
	the places we were passing FALSE were wrong.
	(camel_url_decode): replace with a new version

	* camel-file-utils.c (camel_file_util_safe_filename): Remove extra
	arg to camel_url_encode.

	* tests/misc/url.c (main): Add tests of basic URL parsing and
	unparsing

svn path=/trunk/; revision=20545
2003-03-27 15:37:47 +00:00
b3293f0d99 Do a more thorough check for html marked as text/plain. Check that the
2003-03-28  Not Zed  <NotZed@Ximian.com>

	*
	camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser):
	Do a more thorough check for html marked as text/plain.  Check
	that the text starts with <html or <!doctype.  More complete fix
	for #16817.

svn path=/trunk/; revision=20544
2003-03-27 06:05:46 +00:00
12fe411b47 Pass in the addresses of the second args to the delete/release functions.
2003-03-26  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-sasl-gssapi.c (camel_sasl_gssapi_finalize): Pass in the
	addresses of the second args to the delete/release functions.

svn path=/trunk/; revision=20517
2003-03-26 17:58:48 +00:00
ee847725ec Ignore whether or not the bag is currently reserved. We'll miss the new
2003-03-27  Not Zed  <NotZed@Ximian.com>

	* camel-object.c (camel_object_bag_list): Ignore whether or not
	the bag is currently reserved.  We'll miss the new potential
	object, but only 1.  Should address #40103.

svn path=/trunk/; revision=20514
2003-03-26 07:01:38 +00:00
b610a4c040 Don't use setv when we don't need the stdarg interface.
2003-03-25  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-service.c (camel_gethostbyaddr): Don't use setv when we
	don't need the stdarg interface.
	(camel_gethostbyname): Same.

svn path=/trunk/; revision=20506
2003-03-25 16:44:34 +00:00
ed975fa253 This expression can never return an array. We must always return a string
2003-03-24  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-folder-search.c (search_user_tag): This expression can
	never return an array. We must always return a string value.

svn path=/trunk/; revision=20487
2003-03-24 19:34:11 +00:00
c58ffb001c removed invisible 8bit chars
svn path=/trunk/; revision=20485
2003-03-24 19:09:28 +00:00
a7239ab18f camel-imap-command.c (imap_read_untagged) Integer overflow fix. If server
2003-03-24  Timo Sirainen  <tss@iki.fi>

	* camel-imap-command.c (imap_read_untagged) Integer overflow fix.
	If server sent a huge literal length, only a few bytes of memory
	was allocated to it, but server could write as much data there as
	it wanted.

svn path=/trunk/; revision=20484
2003-03-24 19:05:40 +00:00
2e5eb47695 Camel part of the fix for Lewing's bug #39204. Second half of the patch
2003-03-21  Jeffrey Stedfast  <fejj@ximian.com>

	Camel part of the fix for Lewing's bug #39204. Second half of the
	patch should also fix it so that text/plain parts that are
	detected as being text/html are rendered as html (not that I agree
	with this mind you, but corporate customers want this "feature").

	* camel-mime-part-utils.c
	(simple_data_wrapper_construct_from_parser): If the part is
	text/html and doesn't have a charset and we are able to find a
	charset in the meta tags of the html content, set the charset
	param on the content-type.
	(camel_mime_part_construct_content_from_parser): After setting the
	content object on the mime part, re-set the content-type of the
	content object back to the one from the parser (as it may contain
	changes from the original - see changes made to the ct in
	simple_data_wrapper_construct_from_parser for details).

svn path=/trunk/; revision=20463
2003-03-21 21:54:59 +00:00
911fdb7885 continue reading the cert file until we've read it all or get a non-EINTR
2003-03-21  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-tcp-stream-ssl.c (camel_certdb_nss_cert_get): continue
	reading the cert file until we've read it all or get a non-EINTR
	errno.

svn path=/trunk/; revision=20457
2003-03-21 18:54:52 +00:00
59d2fd3e57 #include <com_err.h> instead of #include <et/com_err.h>
2003-03-21  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-sasl-gssapi.c: #include <com_err.h> instead of
	#include <et/com_err.h>

svn path=/trunk/; revision=20453
2003-03-21 15:59:40 +00:00
cce3726fe9 Plug in GSSAPI support.
2003-03-20  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-sasl.c: Plug in GSSAPI support.

	* camel-sasl-gssapi.[c,h]: Various fixes to make it compile (fixed
	type-o's mostly).

svn path=/trunk/; revision=20438
2003-03-20 19:37:38 +00:00
becf944b42 Handle raw 8-bit From data "correctly". (The same way we handle
raw 8-bit Subject data.)

	* camel-mime-utils.c (header_decode_mailbox): Take a charset arg
	and pass it to header_decode_string.
	(header_decode_address): Take a charset arg and pass it to
	header_decode_mailbox.
	(header_mailbox_decode): Likewise.
	(header_address_decode): Take a charset arg and pass it to
	header_decode_address.

	* camel-folder-summary.c (summary_format_address): Take a charset
	arg and pass to header_address_decode.
	(message_info_new, camel_message_info_new_from_header): Pass
	charset to summary_format_address

	* camel-internet-address.c (internet_decode): Update for
	header_address_decode change. (Unfortunately we don't have a
	charset to pass here.)

	* camel-mime-message.c (camel_mime_message_build_mbox_from): Move
	this here from camel-mbox-summary since the same functionality is
	needed by evolution-mail too (and update for header_address_decode
	change)

	* providers/local/camel-mbox-summary.c
	(camel_mbox_summary_build_from): Moved to CamelMimeMessage

svn path=/trunk/; revision=20430
2003-03-20 16:43:29 +00:00
8148ebb2d9 Removed unused variable left over from my previous fix.
2003-03-17  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-part.c (process_header): Removed unused variable left
	over from my previous fix.

	* providers/smtp/camel-smtp-transport.c (smtp_send_to): Don't pass
	'has_8bit_parts' to smtp_data() anymore.
	(smtp_data): No longer takes 'has_8bit_parts' argument. Ignore
	whether or not the message has 8bit parts when deciding what the
	required encoding type we need to enforce. Fixes bug #39744.

svn path=/trunk/; revision=20312
2003-03-17 16:53:57 +00:00
1df1d4aead Use header_contentid_decode() as this new function should be safer than
2003-03-13  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-part.c (process_header): Use
	header_contentid_decode() as this new function should be safer
	than the hack that we had before.

	* camel-mime-utils.c (header_contentid_decode): New function to
	try and parse a content-id string in such a way as to work around
	some of the known bugs in other MIME implementations. Try to be as
	"safe" as we can - ie. don't allow for more than 1 @ (since the
	mailer uses "@@@%d" as a fake content-id value for parts without
	content-ids) and don't allow for invalid content-type chars.

svn path=/trunk/; revision=20295
2003-03-14 17:44:20 +00:00
5a8fb211fe Don't add bogus uids to the uid array. Might fix bug #38868 (it's the only
2003-03-13  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-folder.c (get_uids): Don't add bogus uids to the uid
	array. Might fix bug #38868 (it's the only way I can figure that
	camel_folder_get_message_info() could possibly return NULL for the
	Outbox folder).

svn path=/trunk/; revision=20280
2003-03-13 22:16:50 +00:00
ed138c113d removed, it was double-freeing the key. (save_object): Just save the
2003-03-12  Not Zed  <NotZed@Ximian.com>

        * camel-object.c (remove_bag): removed, it was double-freeing the
        key.
        (save_object): Just save the object in an array.
        (camel_object_bag_destroy): first save the object bag's objects in
        a list, then remove them one at a time from the bag since we can't
        remove hash table entries while we're in a foreach (PITA glib
        shit).  For #39486.
        (camel_object_bag_*): killed some warnings.

svn path=/trunk/; revision=20258
2003-03-12 00:37:33 +00:00
95b3485141 added a comment
svn path=/trunk/; revision=20241
2003-03-10 16:48:47 +00:00
67974fa1e0 Doh! If inptr == pos + 1, then return FALSE (before it was checking for
2003-03-09  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-url-scanner.c (camel_url_addrspec_end): Doh! If inptr ==
	pos + 1, then return FALSE (before it was checking for inptr ==
	pos, but it will never be pos).

svn path=/trunk/; revision=20225
2003-03-09 17:57:34 +00:00
bc03ae066b handle a null return from search_by_expression, for bug #33786.
2003-03-07  Not Zed  <NotZed@Ximian.com>

        * camel-vee-folder.c (vee_search_by_expression): handle a null
        return from search_by_expression, for bug #33786.

svn path=/trunk/; revision=20215
2003-03-07 03:38:45 +00:00
414157e544 s/g_strncasecmp/strncasecmp/g
2003-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-utils.c (imap_next_word):
	s/g_strncasecmp/strncasecmp/g

	* camel-iconv.c: Updated to be an exact copy of e-iconv (except
	names changed). We don't use this yet, but we may in the future.

	* camel-url.c (camel_url_new_with_base): Here too.

	* camel-sasl-kerberos4.c (krb4_challenge): Use camel_strdown()
	here instead of g_strdown() since the latter has been deprecated.

	* providers/imap/camel-imap-utils.c (imap_parse_body): Use
	camel_strdown() since g_ascii_strdown() does not do what we
	thought.

	* providers/imap/camel-imap-store.c:
	s/strstrcase/camel_strstrcase/g

	* providers/imap/camel-imap-folder.c (do_append):
	s/strstrcase/camel_strstrcase/
	(handle_copyuid): Same.

	* string-utils.c (camel_strdown): New function because the
	g_ascii_strdown interface sucks.
	(camel_strstrcase): Renamed from strstrcase.

svn path=/trunk/; revision=20213
2003-03-06 21:42:11 +00:00
f1e001698a Same as below.
2003-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-text-index.c (camel_utf8_next): Same as below.

	* camel-search-private.c (camel_utf8_getc): Updated since not all
	platforms/compiles support __inline__.

svn path=/trunk/; revision=20192
2003-03-06 15:22:56 +00:00
b268196c1c Get rid of the const return - it mismatches the prototype and we don't
2003-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-part.c (camel_mime_part_get_encoding): Get rid of the
	const return - it mismatches the prototype and we don't need it
	anyway. Fixes bug #39173.

svn path=/trunk/; revision=20191
2003-03-06 15:15:41 +00:00