Commit Graph

1467 Commits

Author SHA1 Message Date
f1e3f2f0e4 Add another Sender pattern.
* camel-mime-utils.c (mail_mlist_magic): Add another Sender
	pattern.

svn path=/trunk/; revision=11399
2001-07-25 15:23:43 +00:00
fc49986ee1 Change the break into a continue, we should process as many as we can
2001-07-24  Not Zed  <NotZed@Ximian.com>

        * providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
        Change the break into a continue, we should process as many as we
        can find.

        * camel-folder.c (camel_folder_move_messages_to): If we have no
        uid's to copy, exit here before going any further.  Some code
        internally [imap] assumes there are uids to copy otherwise it can
        segfault.
        (camel_folder_copy_messages_to): Same.

svn path=/trunk/; revision=11392
2001-07-25 02:15:05 +00:00
5c9bf39bb2 oops, and just in case value is NULL...
svn path=/trunk/; revision=11363
2001-07-24 22:24:03 +00:00
443f0aba47 Handle broken mailers that send unencoded 8bit header params. And there
2001-07-24  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (header_decode_param): Handle broken mailers
	that send unencoded 8bit header params. And there was much
	rejoicing. Rah.

svn path=/trunk/; revision=11362
2001-07-24 22:23:40 +00:00
b49ab03540 New #define, and there was much rejoicing. Rah.
2001-07-24  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-url.h (CAMEL_URL_HIDE_ALL): New #define, and there was
	much rejoicing. Rah.

svn path=/trunk/; revision=11351
2001-07-24 19:55:46 +00:00
46b5e76947 Somehow this missed the commit.
2001-07-24  Not Zed  <NotZed@Ximian.com>

        * camel-operation.c (camel_operation_register, unregister): Added
        some warnings for bad cases.

svn path=/trunk/; revision=11333
2001-07-24 01:39:53 +00:00
5ef14553c1 Added some warnings for bad cases.
2001-07-24  Not Zed  <NotZed@Ximian.com>

	* camel-operation.c (camel_operation_register, unregister): Added
	some warnings for bad cases.

2001-07-23  Not Zed  <NotZed@Ximian.com>

	* camel-operation.c (camel_operation_register): Only insert a hash
	entry if we haven't already.
	(camel_operation_unregister): Only remove the has entry if the id
	is a real thread.

svn path=/trunk/; revision=11329
2001-07-24 00:56:11 +00:00
77e62d04c7 Slight fix for when source == destination (we don't want to do this action
2001-07-23  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-filter-driver.c (do_move): Slight fix for when source ==
	destination (we don't want to do this action because on-demand
	filtering would then delete the messages it supposedly "moved").

svn path=/trunk/; revision=11304
2001-07-23 16:59:17 +00:00
833bb47399 Added some operation progress reporting. Actual data transfer is 'tricky'
2001-07-23  Not Zed  <NotZed@Ximian.com>

	* providers/smtp/camel-smtp-transport.c (smtp_auth, smtp_helo,
	send_to): Added some operation progress reporting.  Actual data
	transfer is 'tricky' because of the layers used.
	(smtp_auth): Instead of checking exception_is_set, use
	challenge==NULL to test if sasl_challenge_base64 failed.

	* providers/local/camel-mbox-summary.c (mbox_summary_sync): Remove
	peters changes below and put in a better fix.  These functions
	already return -1 on error, just use that, and not worry about
	building our own exception redundantly.

	* camel-service.c (camel_get_host_byname): Turn the progress into
	a transient event.

svn path=/trunk/; revision=11301
2001-07-23 02:35:21 +00:00
b34714d95b More usage fixes for CamelException. Check our own exception for
2001-07-20  Peter Williams  <peterw@ximian.com>

	* providers/local/camel-mbox-summary.c (mbox_summary_sync): More
	usage fixes for CamelException. Check our own exception for
	summary_update and xfer it out if an error occurred.

svn path=/trunk/; revision=11273
2001-07-20 21:01:30 +00:00
8a644defbf Pull up test fixes to get them building again
2001-07-20  JP Rosevear  <jpr@ximian.com>

	* Pull up test fixes to get them building again

svn path=/trunk/; revision=11270
2001-07-20 20:55:53 +00:00
f1738a4b78 renamed to camel_charset_to_iconv() to make it just a little more
2001-07-20  Not Zed  <NotZed@Ximian.com>

        * camel-charset-map.c (camel_charset_get_iconv_friendly_name):
        renamed to camel_charset_to_iconv() to make it just a little more

svn path=/trunk/; revision=11254
2001-07-20 04:59:46 +00:00
25ea76f3a7 Convert to the iconv-friendly charset names.
2001-07-19  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-filter-charset.c
	(camel_mime_filter_charset_new_convert): Convert to the
	iconv-friendly charset names.

	* providers/imap/camel-imap-store.c (create_folder): Fixed a
	compiler warning about returning without a value in a non-void
	function. Blah.

	* camel-mime-part.c (process_header): Pass the locale charset as
	the default_charset to header_decode_string().

	* camel-folder-summary.c (camel_folder_summary_format_string):
	Pass the locale charset as the default_charset to
	header_decode_string().
	(content_info_new): Same.

	* camel-mime-message.c (process_header): Pass the locale charset
	as the default_charset to header_decode_string().

	* camel-mime-utils.c (append_8bit): New helper function who's
	purpose is similar to append_latin1() but for 8bit text that we
	are assuming is not latin1.
	(header_decode_text): Now takes a default_charset parameter and
	calls append_8bit when appropriate.
	(header_decode_string): Also takes a default_charset parameter
	now.
	(header_decode_mailbox): Pass NULL as the default_charset to
	header_decode_string().

svn path=/trunk/; revision=11250
2001-07-20 00:08:50 +00:00
fde6b5b8bb Fixed a compiler warning about returning without a value in a non-void
2001-07-19  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-store.c (create_folder): Fixed a
	compiler warning about returning without a value in a non-void
	function. Blah.

svn path=/trunk/; revision=11247
2001-07-19 23:15:51 +00:00
49e81a0bda Modified to treat the return value from camel_charset_locale_name() as a
2001-07-19  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_verify): Modified to treat the return
	value from camel_charset_locale_name() as a const char*.

	* camel-sasl-digest-md5.c (digest_response): Modified to treat the
	return value from camel_charset_locale_name() as a const char*.

	* camel-charset-map.c (camel_charset_locale_name): Modify to
	return const char* by returning the static locale_charset which is
	created inside of camel_charset_map_init().
	(camel_charset_map_init): Find the locale charset here and set the
	static variable.

svn path=/trunk/; revision=11245
2001-07-19 23:11:13 +00:00
85a02926e6 In camel:
2001-07-19  Peter Williams  <peterw@ximian.com>

	Policy change: NULL url's are no longer allowed in CamelFolderInfos. They used
	to signify that the folder was, in IMAP jargon, NoSelect; now the same effect
	is achieved by adding a "noselect=yes" parameter to the end of the URL. As far
	as I know, IMAP is the only affected provider.

	* providers/imap/camel-imap-store.c (delete_folder): New function. Implement
	folder deletion.
	(camel_imap_store_class_init): Set the delete_folder class function here.
	(get_folder_status): New function. Utility wrapper around the STATUS command.
	(create_folder): If the parent folder is NoSelect but is empty, delete it
	and recreate it as a a subfolder-containing folder. If it is NoSelect but
	contains messages, set an exception.
	(parse_list_response_as_folder_info): Always set the FolderInfo's URL, but
	add a NoSelect parameter if it isn't selectable.
	(get_folder_info_online): Change logic of removing the namespace to reflect
	URL change. Same for logic of checking unread counts.
	(get_folder_info_online): Use get_folder_status to simplify this.

	* camel-store.c (camel_folder_info_build): When creating
	dummy parents, copy the child's URL and set the NoSelect
	parameter.

In mail:

2001-07-19  Peter Williams  <peterw@ximian.com>

	Track the NoSelect changes in Camel.

	* mail-callbacks.c (create_folders): We don't need to check if
	the URL is NULL or not anymore.

	* component-factory.c (create_noselect_control): New
	function. Create a dummy control for folders that can't contain
	messages (ie \NoSelect)
	(create_view): If the URI says the folder is noselect, make a
	dummy control. FIXME: still should merge in the global UI
	elements.
	(xfer_folder): Don't allow the operation if the destination is
	NoSelect.
	(destination_folder_handle_motion): Ditto.
	(destination_folder_handle_drop): Ditto.

svn path=/trunk/; revision=11237
2001-07-19 21:35:43 +00:00
3f9e744cab No need for `acharset' anymore. (check_html_charset): Return a const char*
2001-07-19  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-part-utils.c
	(simple_data_wrapper_construct_from_parser): No need for
	`acharset' anymore.
	(check_html_charset): Return a const char* and also use
	camel_charset_get_iconv_friendly_name() internally.

svn path=/trunk/; revision=11236
2001-07-19 21:08:14 +00:00
8a56749aa6 Remove my iso8859-1 -> iso-8859-1 hack and use
2001-07-19  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (rfc2047_decode_word): Remove my iso8859-1 ->
	iso-8859-1 hack and use camel_charset_get_iconv_friendly_name()
	instead.
	(rfc2184_decode): Use camel_charset_get_iconv_friendly_name()

	* camel.c (camel_init): Call camel_charset_map_init().

	* camel-charset-map.c (camel_charset_map_init): New function to
	initialize the charset-equivalent lookup table. To be called by
	camel_init().
	(camel_charset_get_iconv_friendly_name): New function to try and
	convert a charset into something that iconv is more likely to
	accept.

svn path=/trunk/; revision=11235
2001-07-19 21:00:27 +00:00
a7155df7c1 Revert 7/11/2001 patch for IMAP INBOX filtering at NotZed's request.
2001-07-19  Peter Williams  <peterw@ximian.com>

       * Revert 7/11/2001 patch for IMAP INBOX filtering at NotZed's
       request.

svn path=/trunk/; revision=11226
2001-07-19 15:38:51 +00:00
e8aa23866a Clean up some exception misusage.
2001-07-17  Peter Williams  <peterw@ximian.com>

	Clean up some exception misusage.

	* providers/imap/camel-imap-command.c (camel_imap_command): Use
	our own internal exception for sending the string and transfer it
	to @ex if anything goes wrong.
	(imap_read_response): Use our own internal exception for reading
	the untagged responses and blah blah blah.

	* camel-session.c (get_service): Use our own internal exception
	when constructing the service and transfer it to @ex if anything
	goes wrong.

	* camel-remote-store.c (remote_recv_line): Instead of having
	gboolean exception, use our own internal exception and copy
	it to @ex if anything goes wrong.

	* camel-store.c (store_sync): Create an internal exception
	because sync_folder() checks it for validity. Transfer it to
	@ex when done.

	* camel-exception.c (camel_exception_get_description): If @ex is
	NULL, complain - passing NULL exceptions to Camel is okay, but
	there should be no circumstances under which they're then
	examined.
	(camel_exception_get_id): Same here,
	(camel_exception_xfer): NULL-protect and warn if transferring from
	a NULL exception.

svn path=/trunk/; revision=11177
2001-07-17 21:22:20 +00:00
14f7d6039f Use CAMEL_VTRASH_NAME.
2001-07-17  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-store.c (init_trash): Use CAMEL_VTRASH_NAME.

	* camel-vtrash-folder.h: #define CAMEL_VTRASH_NAME

svn path=/trunk/; revision=11158
2001-07-17 16:08:47 +00:00
749286686b Given: 4 EXISTS 1 EXPUNGE We have to pass 3, not 4 to
* providers/imap/camel-imap-command.c (camel_imap_response_free):
	Given:
		* 4 EXISTS
		* 1 EXPUNGE
	We have to pass 3, not 4 to camel_imap_folder_changed for the
	exists count. Fixes ximian bug #2112 (finally!).

svn path=/trunk/; revision=11133
2001-07-16 19:23:33 +00:00
f6b64ae1df If the message info for an expunged message is NULL, then just break out -
2001-07-14  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
	If the message info for an expunged message is NULL, then just
	break out - maybe a message was expunged that we were never
	notified even existed?

svn path=/trunk/; revision=11106
2001-07-15 00:57:09 +00:00
aabc9c14ea Added a hack to convert charsets in the format iso8859-1 to iso-8859-1
2001-07-13  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (rfc2047_decode_word): Added a hack to
	convert charsets in the format iso8859-1 to iso-8859-1 because it
	seems to be more iconv friendly. It has been reported that on some
	systems, iconv doesn't know about iso8859-1 while it *does* know
	about iso-8859-1. See bug #4530.

svn path=/trunk/; revision=11094
2001-07-13 18:53:08 +00:00
54e037a91c Let people install as non-root, but give them a bigass warning so they're
2001-07-13  Peter Williams  <peterw@ximian.com>

	* Makefile.am (install-exec-local): Let people install as non-root,
	but give them a bigass warning so they're not allowed to complain when
	it doesn't work right.

	* camel-remote-store.c (sync_remote_folder): New function:
	hash table callback.
	(remote_disconnect): If cleanly disconnecting, sync our folders. Fixes
	deadlocks on exit (folders syncing after store disconnects) and also makes
	sense.

svn path=/trunk/; revision=11090
2001-07-13 17:35:51 +00:00
f2757356ba We now use a structure as the bucket data rather than just a cache level
2001-07-13  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-uid-cache.c (camel_uid_cache_new): We now use a structure
	as the bucket data rather than just a cache level so set the save
	state to TRUE.
	(maybe_write_uid): We only save the uid if the cache levels are
	the same *and* if the save state is TRUE.
	(free_uid): Free the state value.
	(camel_uid_cache_get_new_uids): New uids that get added to the
	cache start with a save state of FALSE.
	(camel_uid_cache_save_uid): Set the save state of the uid to
	TRUE. What should we do if the uid isn't already in the cache?
	Currently I make it add the uid, but maybe it shouldn't?

	* providers/imap/camel-imap-folder.c (imap_filter_timeout): Update
	to reflect CamelFilterDriver API changes.

	* camel-filter-driver.c (camel_filter_driver_filter_folder): Take
	a cache argument so we can tell the cache whether or not the uid
	should be saved (meaning we have successfully filtered it).

svn path=/trunk/; revision=11084
2001-07-13 15:06:14 +00:00
89341d76ec Okay, I've decided that that user is just on crack. We don't want to allow
2001-07-12  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-filter-driver.c (camel_filter_driver_filter_message):
	Okay, I've decided that that user is just on crack. We don't want
	to allow filtering of deleted messages or we could get some
	unexpected behavior.
	(do_move): Oops. My last fix needs to be after the if-statement,
	not inside it.
	(do_copy): And here too.

svn path=/trunk/; revision=11068
2001-07-12 21:17:14 +00:00
cfac9223a0 Okay, I've decided that that user is just on crack. We don't want to allow
2001-07-12  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-filter-driver.c (camel_filter_driver_filter_message):
	Okay, I've decided that that user is just on crack. We don't want
	to allow filtering of deleted messages or we could get some
	unexpected behavior.

svn path=/trunk/; revision=11048
2001-07-12 17:41:51 +00:00
a61afbdb02 Only set p->copied and p->deleted if the messages are copied without an
2001-07-12  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-filter-driver.c (do_move): Only set p->copied and
	p->deleted if the messages are copied without an exception.
	(do_copy): Same - but obviously we don't set the p->deleted here
	at all.
	(camel_filter_driver_filter_message): Since users complained that
	they couldn't filter deleted messages for "safe keeping" (WTF?
	safe keeping? why were they deleted in the first place then??), I
	have taken out the code that optimized filtering by not allowing
	deleted messages to be filtered. This fixes bug #4473.

	Note: Users have a warped sense of logic.

svn path=/trunk/; revision=11047
2001-07-12 17:26:39 +00:00
b88f6b9593 Removed. (check_html_charset): Replaced with this.
2001-07-12  Not Zed  <NotZed@Ximian.com>

        * camel-mime-part-utils.c (extract_metatag_charset): Removed.
        (check_html_charset): Replaced with this.
        (simple_data_wrapper_construct_from_parser): Call
        check_html_charset if we dont have a charset on the content-type,
        and we have text/html data.
        (check_html_charset): We also need to do qp/base64 decoding
        ourselves, sigh.

        * camel-mime-utils.c (html_meta_param_list_decode): Removed.  This
        was very wrong, the rules for mail headers vastly different from
        rules for decoding html elements.
        (rfc2184_decode): Move the malloc inside the iconv_open worked,
        otherwise we have a memleak.

        * camel-mime-filter-html.c (camel_mime_filter_html_finalize, init,
        run, reset): Changed to use camelhtmlparser, and fixed a tiny
        memleak.

        * camel-html-parser.c: Made the html indexer tokeniser re-usable.
        ONLY TO BE USED INTERNAL TO CAMEL HOWEVER.
        (tokenise_step): Slight fix to non-quoted values.

svn path=/trunk/; revision=11028
2001-07-12 05:02:11 +00:00
05e4067b62 Removed some code i wasn't supposed to commit.
2001-07-12  Not Zed  <NotZed@Ximian.com>

        * camel-folder-summary.c
        (camel_folder_summary_info_new_from_message): Removed some code i
        wasn't supposed to commit.

        * providers/local/camel-local-summary.c (local_summary_add): Only
        set info->size if it is not zero.
        (local_summary_add): If we dont get a size from the info passed
        in, calculate it using a null stream write.  Should do #4392.

svn path=/trunk/; revision=11025
2001-07-12 02:22:23 +00:00
768ef5c60b New function to extract a meta-tag charset value if it exists.
2001-07-11  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-part-utils.c (extract_metatag_charset): New function
	to extract a meta-tag charset value if it exists.
	(simple_data_wrapper_construct_from_parser): Along the same lines
	as the code I previously ripped out, but this time use the
	mime-parser's seek ability to help us along. Currently I read up
	to a 2k buffer size - this is probably overkill, 1k is probably
	plenty.

	* camel-mime-utils.c (html_meta_param_list_decode): When we get to
	an `=', we must skip past it before trying to grab the param
	value. duh.

svn path=/trunk/; revision=11021
2001-07-11 23:56:31 +00:00
1606416242 Ripped out my code since it was never being used since the mime parser is
2001-07-11  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-part-utils.c
	(simple_data_wrapper_construct_from_parser): Ripped out my code
	since it was never being used since the mime parser is not using a
	seekable stream (ever?) which pretty much means my code needs to
	be done someplace else.

svn path=/trunk/; revision=11016
2001-07-11 21:10:52 +00:00
5d208f8e61 Run the filter in its own thread to prevent locking issues.
2001-07-11  Peter Williams  <peterw@ximian.com>

	* providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
	Run the filter in its own thread to prevent locking issues.
	(imap_filter_timeout): New function that does the filtering called
	as a CamelSession timeout.

svn path=/trunk/; revision=11011
2001-07-11 19:12:22 +00:00
96496c1392 Create the messageinfo itself, so we can properly set the size.
2001-07-11  Not Zed  <NotZed@Ximian.com>

        * camel-filter-driver.c (camel_filter_driver_filter_mbox): Create
        the messageinfo itself, so we can properly set the size.

        * camel-movemail.c (camel_movemail_solaris): Write out the from
        line between each message.

2001-07-10  Not Zed  <NotZed@Ximian.com>

        * providers/local/camel-local-summary.c (local_summary_add): Copy
        the size across from the source message info if supplied.

        * camel-stream-null.c: Added a 'written' member which keeps track
        of how much has been written to the stream.

        * camel-movemail.c (camel_movemail): If we have BROKEN_SPOOL
        defined, then use the solaris movemail to quote from lines that
        sendmail didn't.
        (camel_movemail_solaris): Compile this in if BROKEN_SPOOL defined.

svn path=/trunk/; revision=10989
2001-07-11 07:28:40 +00:00
e39d94c5ef New function to parse an HTML meta-tag.
2001-07-10  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (html_meta_param_list_decode): New function
	to parse an HTML meta-tag.

	* camel-mime-part-utils.c
	(simple_data_wrapper_construct_from_parser): If the Content-Type
	did not contain a charset parameter and it's also a text/html
	part, we have 1 last place to look - in the META html tags. *sigh*

	* camel-mime-message.c (camel_mime_message_get_source):
	s/gint/unsigned since that's what it should be.

svn path=/trunk/; revision=10976
2001-07-10 22:06:56 +00:00
ebd5da4c95 Forget the passphrase if the user has set that option. (pgp_clearsign):
2001-07-09  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_sign): Forget the passphrase if the
	user has set that option.
	(pgp_clearsign): Same.
	(pgp_encrypt): And here...
	(pgp_decrypt): And finally here.
	(camel_pgp_context_new): Take a `remember' argument.

svn path=/trunk/; revision=10932
2001-07-09 21:31:09 +00:00
f2f3c4bf7f Oops, e_poolv_set free's it for us, so dont double-free here.
2001-07-09  Not Zed  <NotZed@Ximian.com>

        * providers/local/camel-maildir-summary.c (maildir_summary_sync):
        Oops, e_poolv_set free's it for us, so dont double-free here.

svn path=/trunk/; revision=10902
2001-07-09 03:42:50 +00:00
7cc3d5f443 Changed so we dont have the list changing under us, just going to the next
2001-07-06  Not Zed  <NotZed@Ximian.com>

        * camel-vee-folder.c (camel_vee_folder_finalise): Changed so we
        dont have the list changing under us, just going to the next node
        before we call a function that might change the list is
        potentially dangerous (slight mod of peters fix).  Hmm, i think it
        would've double-unref'd it too(?)

svn path=/trunk/; revision=10900
2001-07-09 01:49:41 +00:00
a29542eef6 openssl_table is gone. we now store/get the stream from the SSL_CTX's
2001-07-08  Chris Toshok  <toshok@ximian.com>

	* camel-tcp-stream-openssl.c (camel_tcp_stream_openssl_finalize):
	openssl_table is gone.  we now store/get the stream from the
	SSL_CTX's app_data.
	(stream_read): rework the non-blocking case to account for SSL
	possibly buffering data (in which case select will block even
	though data is ready to be read), and to account for FreeBSD's
	strange behavior of returning -1/EAGAIN even though select said
	the fd was ready to be read.
	(ssl_verify): openssl_table is gone.
	(open_ssl_connection): set the SSL_CTX's app_data to be the
	stream, remove the openssl_table code.

svn path=/trunk/; revision=10894
2001-07-08 22:15:30 +00:00
b663fac4ab Don't allow in to be NULL, so instead of doing if (in == NULL) return;,
2001-07-06  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (header_encode_param): Don't allow in to be
	NULL, so instead of doing if (in == NULL) return;, make it a
	g_return_val_if_fail and later we can make it an assert or
	something.

svn path=/trunk/; revision=10868
2001-07-06 21:59:14 +00:00
e6d686b055 Fixes bug #1138.
2001-07-06  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/local/camel-maildir-store.c (get_inbox): Fixes bug
	#1138.

svn path=/trunk/; revision=10860
2001-07-06 20:55:16 +00:00
71a7db0625 Make the `day-of-month' digit take up 2 chars by using "%2d". Fixes bug
2001-07-06  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/local/camel-mbox-summary.c
	(camel_mbox_summary_build_from): Make the `day-of-month' digit
	take up 2 chars by using "%2d". Fixes bug #3989 for lame mailers
	like Pine.

svn path=/trunk/; revision=10858
2001-07-06 20:30:25 +00:00
15aeda78aa Set the pipe fd's to nonblocking.
2001-07-06  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (crypto_exec_with_passwd): Set the pipe fd's
	to nonblocking.

svn path=/trunk/; revision=10847
2001-07-06 16:52:44 +00:00
eda4386f98 Make sure that after the finalization event has happened and the
2001-07-06  Peter Williams  <peterw@ximian.com>

	* camel-object.c (camel_object_unref): Make sure that after the
	finalization event has happened and the finalization functions
	have been called that the object still has a zero refcount.

svn path=/trunk/; revision=10844
2001-07-06 13:00:48 +00:00
ccbc3a3688 Add locking to camel_nntp_get_grouplist_from_server().
2001-07-06  Joe Shaw  <joe@ximian.com>

	* providers/nntp/camel-nntp-grouplist.c: Add locking to
	camel_nntp_get_grouplist_from_server().

	* providers/nntp/camel-nntp-resp-codes.h: Added
	NNTP_EXTENSIONS_SUPPORTED (202).

	* providers/nntp/camel-nntp-store.c (camel_nntp_store_get_extensions):
	Check for both NNTP_LIST_FOLLOWS and NNTP_EXTENSIONS_SUPPORTED from
	a LIST EXTENSIONS request. (Dunno if NNTP_LIST_FOLLOWS ever comes
	out of this, but that's what was already there...) Also, put some
	locking around it.
	(finalize): e_mutex_destroy() the command lock
	(camel_nntp_store_init): e_mutex_new() the command lock.

	* providers/nntp/camel-nntp-store.h: Add locking macros.

svn path=/trunk/; revision=10838
2001-07-06 04:11:27 +00:00
fec83fec7d Added an assert to make sure that `mi' isn't NULL.
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-folder-summary.c (camel_message_info_string): Added an
	assert to make sure that `mi' isn't NULL.
	(camel_message_info_set_string): Same.

	* providers/imap/camel-imap-command.c (camel_imap_response_free):
	Create and use a temporary CamelException for use with
	camel_imap_folder_changed.

svn path=/trunk/; revision=10834
2001-07-05 22:59:46 +00:00
652c3e8225 Send the --no-auto-key-retrieve argument to gpg if we are in offline mode
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_verify): Send the
	--no-auto-key-retrieve argument to gpg if we are in offline mode
	so that we don't have to worry about gpg hanging if it can't
	connect to the key servers, because now it shouldn't even attempt
	to.

svn path=/trunk/; revision=10831
2001-07-05 20:37:30 +00:00
ea4d1ae39e Send the --no-auto-key-retrieve argument to gpg so that we don't have to
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_verify): Send the
	--no-auto-key-retrieve argument to gpg so that we don't have to
	worry about gpg hanging if it can't connect to the key servers,
	because now it shouldn't even attempt to.

svn path=/trunk/; revision=10827
2001-07-05 20:07:46 +00:00
1421494ea6 use X509_STORE_CTX_get_ex_data to get at the SSL* - don't use the
2001-07-05  Chris Toshok  <toshok@ximian.com>

	* camel-tcp-stream-openssl.c (ssl_verify): use
	X509_STORE_CTX_get_ex_data to get at the SSL* - don't use the
	X509_STORE_CTX to look up our stream, since it's not what we used
	to insert our stream into the hashtable.
	(open_ssl_connection): insert the stream into the hashtable before
	calling SSL_connect, as this can cause ssl_verify to be called,
	and we need to look up the stream there.  remove the stream from
	the hashtable if there's an error connecting.
	(stream_connect): pass the CamelTcpStreamOpenSSL* to
	open_ssl_connection since it handles the hashtable stuff.  remove
	hashtable stuff from here.

svn path=/trunk/; revision=10819
2001-07-05 19:11:50 +00:00