Commit Graph

2324 Commits

Author SHA1 Message Date
cc44248f58 Turn off debugging.
2003-06-01  Jeffrey Stedfast  <fejj@ximian.com>

	* broken-date-parser.c (d): Turn off debugging.

	* providers/pop3/camel-pop3-engine.c (get_capabilities): Move the
	code that prepends the 'password' authtype to the auth list so
	that we don't add it again when regetting the capabilities.

svn path=/trunk/; revision=21360
2003-06-01 23:49:29 +00:00
e7ce96ace2 Turned off a debugging printf.
2003-05-30  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-filter-driver.c (run_only_once): Turned off a debugging
	printf.

svn path=/trunk/; revision=21351
2003-05-30 15:50:07 +00:00
de9458db31 This should finish fixing all variations of bug #42854, which, funnily
2003-05-27  Jeffrey Stedfast  <fejj@ximian.com>

	This should finish fixing all variations of bug #42854, which,
	funnily enough specified "copying" as the scenario for reproducing
	this bug, but somehow I found/fixed it only for expunging for some
	reason? I can't even guess as to how this happened. Oh well,
	expunging needed fixing either way.

	* providers/imap/camel-imap-folder.c (imap_transfer_online): Sort
	the uids here too (just like I had fixed for expunge a week or so
	ago).
	(imap_transfer_resyncing): Sort them here too.
	(imap_search_by_uids): Sort here too, even though I don't think it
	is necessary. Can't hurt.
	(imap_expunge_uids_offline): Might as well sort here too.

svn path=/trunk/; revision=21341
2003-05-28 00:42:19 +00:00
0335f162f8 Lets try this again. We don't actually want to free the key here, because
2003-05-22  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-object.c (camel_object_bag_destroy): Lets try this
	again. We don't actually want to free the key here, because
	camel_object_bag_remove() does that for us. This should fix bug
	#43406 properly.

svn path=/trunk/; revision=21327
2003-05-22 20:17:02 +00:00
4773ca9f2b Create a second GPtrArray for the keys. We don't want to use
2003-05-20  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-object.c (camel_object_bag_destroy): Create a second
	GPtrArray for the keys. We don't want to use bag->free_key() on
	the object. Fixes bug #43406.

svn path=/trunk/; revision=21300
2003-05-21 15:32:37 +00:00
defcee226b Only display a warning if errno != EINVAL (EINVAL means there was a
2003-05-19  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-folder-summary.c (camel_folder_summary_load): Only display
	a warning if errno != EINVAL (EINVAL means there was a version
	mismatch, so we don't really need to warn here since we are
	supposed to be able to handle this situation).
	(perform_content_info_load): Turn off debugging message.
	(summary_assign_uid): Turn off uid-clash warning.
	(camel_folder_summary_decode_token): Turn off debug messages.
	(summary_header_load): Turn off version-mismatch warning.

svn path=/trunk/; revision=21284
2003-05-20 15:59:55 +00:00
47b865800c fixed ChangeLog
svn path=/trunk/; revision=21258
2003-05-19 17:20:04 +00:00
c8de5a0059 Ensure cmdbuf is initialized to avoid compiler warning.
2003-05-16  Jeremy Katz  <katzj@redhat.com>

 	* providers/smtp/camel-smtp-transport.c (smtp_helo): Ensure cmdbuf
 	is initialized to avoid compiler warning.

 	* providers/local/camel-mbox-summary.c (summary_header_load): Cast
 	folder_size to uint32 to fix warning.
 	(camel_mbox_summary_sync_mbox): Update for new API.

 	* providers/imap/camel-imap-utils.c (parse_params):
 	imap_parse_nstring expects size_t, not int
 	(imap_body_decode): Likewise.

 	* camel-stream-filter.c (do_read): presize needs to be size_t
 	instead of int.
 	(do_write): Likewise.

 	* camel-seekable-substream.c (stream_read): Return ssize_t instead
 	of int to match prototypes.
 	(stream_write): Likewise.

 	* camel-mime-part.c (construct_from_parser): len needs to be
 	size_t instead of int.

 	* camel-mime-parser.c (folder_scan_step): datalength needs to be a
 	size_t* instead of an int* to make dependent APIs safe.
 	(camel_mime_parser_step): Likewise.
 	(folder_scan_content): Likewise.
 	* camel-mime-parser.h: Likewise.

 	* camel-mime-message.c (camel_mime_message_class_init): Use glib
 	macro for pointer/int conversions.
 	(construct_from_parser): Update for new API.

 	* camel-folder-summary.c
 	(camel_folder_summary_info_new_from_parser): Update len to be
 	size_t for new API.
 	(summary_build_content_info): Likewise.
 	* camel-http-stream.c (http_get_headers): Likewise.
 	* camel-mime-part-utils.c
 	(simple_data_wrapper_construct_from_parser): Likewise.
 	* camel-multipart-signed.c (signed_construct_from_parser): Likewise.
 	* camel-multipart.c (construct_from_parser): Likewise.

 	* camel-folder-search.c (match_words_index): Use glib macros for
 	pointer/int conversions.
 	* camel-html-parser.c (tokenise_setup): Likewise.
 	(convert_entity): Likewise.
 	* camel-block-file.c (block_hash_func): Likewise.
 	(camel_block_file_get_block): Likewise.
 	(camel_block_file_get_block): Likewise.
 	(camel_block_file_detach_block): Likewise.
 	* camel-session.c (session_thread_msg_new): Likewise.
 	(session_thread_msg_free): Likewise.
 	(session_thread_wait): Likewise.
 	* camel-text-index.c (text_index_compress_nosync): Likewise.
 	(text_index_compress_nosync): Likewise.
 	(camel_text_index_validate): Likewise.
 	* camel-vee-folder.c (vee_folder_remove_folder): Likewise.
 	(unmatched_check_uid): Likewise.
 	(folder_added_uid): Likewise.
 	(vee_folder_build_folder): Likewise.
 	(folder_changed_add_uid): Likewise.
 	(folder_changed_remove_uid): Likewise.
 	* providers/imap/camel-imap-search.c (imap_body_contains): Likewise.
 	* providers/pop3/camel-pop3-folder.c (cmd_list): Likewise.
 	(cmd_uidl): Likewise.

 	* camel-data-cache.c (data_cache_init): Cast to CamelCopyFunc.
 	Fixes a warning.

svn path=/trunk/; revision=21220
2003-05-16 18:47:59 +00:00
383b5fe9d7 Simplistic quick-fix for #42710. Add a charset argument. If the data is 8
2003-05-15  Not Zed  <NotZed@Ximian.com>

        * camel-mime-utils.c (header_decode_word): Simplistic quick-fix
        for #42710.  Add a charset argument.  If the data is 8 bit, try to
        decode into the passed in charset (i.e. the message header?), at
        worst, fall back to latin1, similarly to header_decode_text.
        Fixed all callers to pass in a charset if available, or NULL.

svn path=/trunk/; revision=21202
2003-05-15 23:30:06 +00:00
1e478fe94b Only delete the index if it is non-NULL. Fixes bug #42763.
2003-05-13  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/local/camel-local-folder.c (local_delete): Only delete
	the index if it is non-NULL. Fixes bug #42763.

svn path=/trunk/; revision=21193
2003-05-15 18:05:14 +00:00
1c3b066622 ** See bug #42540
2003-05-14  Not Zed  <NotZed@Ximian.com>

        ** See bug #42540

        * camel-service.c (camel_gethostbyname): pre-initialise the error
        return to invalid, so if we cancel, we definetly get a bad result.
        Also, for a valid return against result, not herr.
        (camel_gethostbyaddr): Likewise.

svn path=/trunk/; revision=21187
2003-05-15 01:00:56 +00:00
0297c01437 Added a note to the comment block for this function noting that uids MUST
2003-05-13  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-utils.c (imap_uid_array_to_set): Added
	a note to the comment block for this function noting that uids
	MUST be in sorted order.

	* providers/imap/camel-imap-folder.c (imap_expunge_uids_online):
	Sort the uids before splitting them into UID set chunks. The code
	that splits the uid array into sets expects the uids to be in
	sorted order. Fixes bug #42854.

	* providers/imap/camel-imap-command.c (imap_command_start):
	Re-enable camel_verbose_debug logging.

svn path=/trunk/; revision=21173
2003-05-14 17:53:47 +00:00
989f634071 If host->h_name is NULL or an empty string, default back to using the IP
2003-05-12  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/smtp/camel-smtp-transport.c (smtp_helo): If
	host->h_name is NULL or an empty string, default back to using the
	IP address rather than the hostname in the EHLO command.

svn path=/trunk/; revision=21159
2003-05-13 18:10:12 +00:00
6851cee05c Disable debugging.
* providers/imap/camel-imap-folder.c (d): Disable debugging.

* providers/imap/camel-imap-command.c (d): Disable debugging.

* providers/imap/camel-imap-search.c (d): Disable debugging.

svn path=/trunk/; revision=21153
2003-05-13 16:03:19 +00:00
a64932a775 Don't call g_utf8_validate on an empty message. Fixes a warning.
* camel-mime-part-utils.c
	(simple_data_wrapper_construct_from_parser): Don't call
	g_utf8_validate on an empty message. Fixes a warning.

svn path=/trunk/; revision=21099
2003-05-04 19:11:39 +00:00
c56bdc1cef Workaround for POS mailers like the one in bug #42045.
2003-05-01  Jeffrey Stedfast  <fejj@ximian.com>

	Workaround for POS mailers like the one in bug #42045.

	* camel-mime-utils.c (header_decode_date): Make sure the numeric
	timezone is between -1200 and 1200, otherwise it is invalid.

	* broken-date-parser.c (get_tzone): Make sure the numeric timezone
	is between -1200 and 1200, otherwise it is invalid.

svn path=/trunk/; revision=21048
2003-05-02 17:37:11 +00:00
291399aa2d Remove camel-lock.c from here because it upsets automake 1.6 for some
* Makefile.am (camel_lock_helper_SOURCES): Remove camel-lock.c
        from here because it upsets automake 1.6 for some reason
        (camel_lock_helper_LDADD): Add camel-lock.o here

svn path=/trunk/; revision=21033
2003-04-30 15:35:28 +00:00
953296d5c9 body_len needs to be a size_t instead of int
2003-04-29  Jeremy Katz  <katzj@redhat.com>

	* providers/imap/camel-imap-folder.c (parse_fetch_response):
	body_len needs to be a size_t instead of int

svn path=/trunk/; revision=21027
2003-04-30 03:09:15 +00:00
22b6bc562c Disable debugging printfs.
2003-04-22  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-utils.c: Disable debugging printfs.

svn path=/trunk/; revision=20957
2003-04-24 17:41:28 +00:00
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