Commit Graph

1745 Commits

Author SHA1 Message Date
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
Dan Winship 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
Jeffrey Stedfast 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
Jeffrey Stedfast c779a57f33 fixed a compile problem and saved errno before calling fcntl() in stream_read
svn path=/trunk/; revision=14418
2001-10-30 04:24: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
Jeffrey Stedfast 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
Dan Winship 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
Jeffrey Stedfast 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
Jeffrey Stedfast 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
Jeffrey Stedfast 44f724adfe Notify the user that PGP 2.6.x is no longer supported and use
2001-10-29  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_sign): Notify the user that PGP 2.6.x
	is no longer supported and use camel_exception_set() instead of
	setv() where appropriate.
	(pgp_clearsign): Same.
	(pgp_verify): And again here.
	(pgp_encrypt): Here too.
	(pgp_decrypt): And finally here.

svn path=/trunk/; revision=14349
2001-10-29 18:40:12 +00:00
Dan Winship 8d4283d6fc Don't free the hash table key if the folder wasn't found in the hash
* providers/imap/camel-imap-store.c (unsubscribe_folder): Don't
	free the hash table key if the folder wasn't found in the hash
	table. I'm not sure where the bug is/was that made it possible to
	add a folder to the tree after creating it failed, but now if that
	happens, it won't crash if you try to delete it again. (#11492)

svn path=/trunk/; revision=14348
2001-10-29 18:31:40 +00:00
Dan Winship d725eacdbc if the service is being connected and thinks it's online, but the session
* camel-disco-store.c (camel_disco_store_status): if the service
	is being connected and thinks it's online, but the session is
	offline, then mark the service offline as well. Fixes 13683.

svn path=/trunk/; revision=14347
2001-10-29 18:25:42 +00:00
9 c43aa966cb Turn off w() -> warnings.
2001-10-29    <NotZed@Ximian.com>

        * camel-mime-utils.c: Turn off w() -> warnings.

        * providers/imap/camel-imap-store.c (rename_folder): Also rename
        the message cache.
        (rename_folder): Fix subscribed folders table with rename(s).

        * providers/imap/camel-imap-folder.c (imap_rename): Implement,
        rename the cache dir pointer.

        * providers/imap/camel-imap-message-cache.c
        (camel_imap_message_cache_set_path): New method to set the path
        used by a message cache.

svn path=/trunk/; revision=14327
2001-10-29 08:24:00 +00:00
9 8e598e640e Fix the 'is this a matching subfolder or subfolder'' logic to match
2001-10-29    <NotZed@Ximian.com>

        * camel-vee-store.c (build_info): Fix the 'is this a matching
        subfolder or subfolder'' logic to match camel-store
        get_subfolders'.

        * camel-store.c (get_subfolders): Fix the 'is this a matching
        folder or subfolder' logic.

svn path=/trunk/; revision=14324
2001-10-29 05:06:59 +00:00
8 4b8e2db489 Changed to call ibex_move to rename it internally.
2001-10-28    <NotZed@Ximian.com>

        * providers/local/camel-local-store.c (rename_folder): Changed to
        call ibex_move to rename it internally.

svn path=/trunk/; revision=14294
2001-10-28 13:05:36 +00:00
8 4ee4cf5693 Use the right variable, not info.
2001-10-28    <NotZed@Ximian.com>

	* camel-store.c (camel_store_rename_folder): Use the right variable, not info.

svn path=/trunk/; revision=14290
2001-10-28 10:51:19 +00:00
Jeffrey Stedfast c0cf9754b8 Make sure we've actually read data before checking if p[-] is '\r' or not.
2001-10-28  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-stream-buffer.c (camel_stream_buffer_read_line): Make sure
	we've actually read data before checking if p[-] is '\r' or not.

svn path=/trunk/; revision=14288
2001-10-28 09:37:36 +00:00
Jeffrey Stedfast 2c2cdb4ee5 Same.
2001-10-28  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-tcp-stream-raw.c (stream_write): Same.

	* camel-stream-fs.c (stream_write): If errno isn't EAGAIN, just
	exit with -1 and instead of using continue (which doesn't go to
	the top of the do-while thus making our logic suck), just set w to
	0. Still seems to be a bug in select() if it's telling us the
	socket is ready for data when it really isn't but oh well.

svn path=/trunk/; revision=14286
2001-10-28 07:03:32 +00:00
8 78b66af8ce Use path not protocol as the path part of the uri of the folder_created
2001-10-28    <NotZed@Ximian.com>

	* providers/local/camel-local-folder.c
	(camel_local_folder_construct): Use path not protocol as the path
	part of the uri of the folder_created event.

	* providers/local/camel-maildir-store.c (scan_dir): If FAST is
	set, dont try and scan for unread counts.

	* providers/local/camel-local-store.c (create_folder): Implement,
	just return the folderinfo of the folder matched, not all of it.

	* camel-store.c (camel_store_rename_folder): Rename the
	camelfolders before emitting the folderchanged event (otherwise
	vstore fails to pick up change.

	* camel-store.c (camel_store_init): Always use a default dir_sep
	of '/'.

	* camel-store.h (struct _CamelStore): Added a dir_sep to the base
	store so rename and whatnot can work, temporary fix for mixed dir
	separator in folder name api's.

	* providers/imap/camel-map-store.c:
	(imap_connect_online): Also set the store's dir_sep here.
	(imap_connect_offline): "

svn path=/trunk/; revision=14275
2001-10-28 05:10:56 +00:00
Ettore Perazzoli 4ca07463a0 More fixing of the license texts.
svn path=/trunk/; revision=14217
2001-10-27 18:21:05 +00:00
Ettore Perazzoli 42606efd98 More fixing of the license texts.
svn path=/trunk/; revision=14216
2001-10-27 18:06:04 +00:00
Ettore Perazzoli 08fb7329cb Fixing the license text.
svn path=/trunk/; revision=14212
2001-10-27 16:59:46 +00:00
7 c4d87ba45a Finished implementation.
2001-10-27    <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c (rename_folder): Finished
        implementation.

        * providers/local/camel-local-folder.c (local_rename): Implement
        local rename of folder objects.

2001-10-26    <NotZed@Ximian.com>

        * camel-vee-folder.c (camel_vee_folder_class_init): Hook into
        rename function.
        (vee_rename): Implement the veefolder rename function.
        (camel_vee_folder_class_init):
        (folder_changed_change): Kill a warning with a cast.

        * camel-vee-store.c (vee_rename_folder): Emit a folder_renamed
        event properly, also call parent to do some rename stuff.

        * camel-store.h: Added a CamelRenameInfo for the rename event.

        * camel-folder.c (camel_folder_rename): New function to rename a
        folder object.
        (camel_folder_class_init): Added a renamed event.
        (folder_rename): Default impl, set full_name, and set name
        assuming the dir separator is '/'.

        * camel-store.c (camel_store_class_init): Added folder_renamed
        event.
        (camel_store_rename_folder): Rename an active folder object if we
        have one, and update the folder table.
        (rename_folder): Make a default implementation that handles
        updating the folder tree.

svn path=/trunk/; revision=14204
2001-10-27 06:00:34 +00:00
Jeffrey Stedfast 04dd664175 Don't bother checking ex since we can rely on the response being NULL on
2001-10-26  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-store.c (delete_folder): Don't bother
	checking ex since we can rely on the response being NULL on error.
	(rename_folder): Implemented.

svn path=/trunk/; revision=14201
2001-10-27 05:12:50 +00:00
Ettore Perazzoli 02dcd0aadf Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14190
2001-10-27 00:25:49 +00:00
Jeffrey Stedfast 4d55b72ada Check to make sure that the dataset is non-NULL before using and/or
2001-10-26  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-folder.c (imap_get_message): Check to
	make sure that the dataset is non-NULL before using and/or
	freeing.

svn path=/trunk/; revision=14181
2001-10-26 23:13:20 +00:00
Jeffrey Stedfast d09dd29be0 Check for EWOULDBLOCK too? (stream_read): Same. (stream_flush): Return 0
2001-10-26  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-tcp-stream-raw.c (stream_write): Check for EWOULDBLOCK
	too?
	(stream_read): Same.
	(stream_flush): Return 0 always, fsync() and tcp sockets don't
	play nice :-)

	* providers/imap/camel-imap-message-cache.c
	(camel_imap_message_cache_get): Lets try putting a
	camel_stream_reset() here. Logic being that the stream may have
	been read from since it was cached and thus our caller may try
	reading from it and get no data from it since it is already at the
	EOS. This may fix bug #12943.

svn path=/trunk/; revision=14180
2001-10-26 22:54:02 +00:00
Jeffrey Stedfast 7ef153696b Check for EWOULDBLOCK too? (stream_read): Same.
2001-10-26  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-tcp-stream-raw.c (stream_write): Check for EWOULDBLOCK too?
	(stream_read): Same.

	* providers/imap/camel-imap-message-cache.c
	(camel_imap_message_cache_get): Lets try putting a
	camel_stream_reset() here. Logic being that the stream may have
	been read from since it was cached and thus our caller may try
	reading from it and get no data from it since it is already at the
	EOS. This may fix bug #12943.

svn path=/trunk/; revision=14179
2001-10-26 22:52:15 +00:00
Jeffrey Stedfast ddec7bf225 Lets try putting a camel_stream_reset() here. Logic being that the stream
2001-10-26  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-message-cache.c
	(camel_imap_message_cache_get): Lets try putting a
	camel_stream_reset() here. Logic being that the stream may have
	been read from since it was cached and thus our caller may try
	reading from it and get no data from it since it is already at the
	EOS. This may fix bug #12943.

svn path=/trunk/; revision=14165
2001-10-26 20:03:02 +00:00
5 5b449d9ca7 Remove the stupid warning that should never have been there in the first
2001-10-25    <NotZed@Ximian.com>

        * camel-search-private.c (utf8_get): Remove the stupid warning
        that should never have been there in the first place.

        * camel-sasl-digest-md5.c (digest_response): s/iconv/e_iconv/

        * camel-pgp-context.c (pgp_verify): "

        * camel-mime-utils.c (rfc2047_decode_word, rfc2047_decode_word,
        append_8bit, rfc2047_encode_word, rfc2184_decode,
        header_decode_param): "

        * camel-mime-part-utils.c (convert_buffer, convert_buffer): "

        * camel-mime-filter-charset.c (reset, complete, filter): "

svn path=/trunk/; revision=14113
2001-10-26 00:37:52 +00:00
Dan Winship d9545bc20c Don't let fi->name be NULL.
* providers/imap/camel-imap-store.c (unsubscribe_folder): Don't
	let fi->name be NULL.

svn path=/trunk/; revision=14079
2001-10-25 00:27:39 +00:00
Jeffrey Stedfast 1569d31133 updated the SIMULATE_FLAKY_NETWORK code
svn path=/trunk/; revision=13995
2001-10-24 22:15:47 +00:00
Jeffrey Stedfast 66c5805817 Same as in the TcpStreamRaw code. (stream_write): And again here...
2001-10-24  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-stream-fs.c (stream_read): Same as in the TcpStreamRaw code.
	(stream_write): And again here...

	* camel-tcp-stream-raw.c (stream_read): Handle the EAGAIN error
	case as well.
	(stream_write): Same here, this might fix the SMTP truncation
	thing? I hope?

svn path=/trunk/; revision=13993
2001-10-24 21:09:35 +00:00
Dan Winship 66efbe69a2 Remove an extra * in one of the regexps that glibc apparently doesn't mind
* camel-mime-utils.c (mail_list_magic): Remove an extra * in one
	of the regexps that glibc apparently doesn't mind but bsd does.

svn path=/trunk/; revision=13942
2001-10-23 16:18:47 +00:00
3 51d6b1c4ea made d(x) x recompile again.
2001-10-23    <NotZed@Ximian.com>

        * providers/local/camel-mbox-summary.c: made d(x) x recompile again.

svn path=/trunk/; revision=13932
2001-10-23 06:20:06 +00:00
2 83d1650e48 No, use Storing, as the other code does :p (spool_summary_check): Check
2001-10-22    <NotZed@Ximian.com>

        * providers/local/camel-spool-summary.c (summary_rebuild): No, use
        Storing, as the other code does :p
        (spool_summary_check): Check for consistency.

svn path=/trunk/; revision=13904
2001-10-22 22:40:58 +00:00
Jon Trowbridge e74ade400c s/summarising/summarizing/. (spool_summary_check): s/summarise/summarize/.
2001-10-22  Jon Trowbridge  <trow@ximian.com>

	* providers/local/camel-spool-summary.c (summary_rebuild):
	s/summarising/summarizing/.
	(spool_summary_check): s/summarise/summarize/.

svn path=/trunk/; revision=13902
2001-10-22 22:34:46 +00:00
Jeffrey Stedfast b80a058e55 If we are kludging around a inline-pgp signed part, do some charset
2001-10-22  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-mime.c (camel_pgp_mime_part_verify): If we are
	kludging around a inline-pgp signed part, do some charset
	conversion to protect any 8bit text.

svn path=/trunk/; revision=13896
2001-10-22 21:50:21 +00:00
Michael Zucci 7429141682 Use search_type_mlist for mailing list searches.
* camel-filter-search.c, camel-folder-search.c (check_header): Use
	search_type_mlist for mailing list searches.

	* camel.c (camel_init): call camel-mime-utils-init func.

	* camel-mime-utils.c: Changed mail mail_list_magic to include a
	domain part, also pre-compile all the patterns.  They are all
	backward compatible except List-Id: which now uses the
	mail-address-like <list-name.host.name> part rather than the
	plain-text part (which might've been blank anyway).
	(camel_mime_utils_init): Initialisation function to setup any
	static data required by camel-mime-utils at run-time.  We now
	setup the base64/charset class tables here, so it doesn't need to
	be done statically.
	(camel_mime_special_table, camel_mime_base64_rank): No longer
	statically initialise these.
	(main): Removed + the tests at the end of the file.
	(header_raw_check_mailing_list): Dont compile regex's here,
	already compiled in utils_init.  Use the regex patterns to remove
	leading <'s from addresses.  Also, if there is a domain part
	matched, add that after a '@' is added.

	camel-search-private.c:
	(camel_search_header_match): Added SEARCH_TYPE_MLIST for mlist
	search types.  It ignores the domain part if either (but not both)
	of the values dont have it.

svn path=/trunk/; revision=13894
2001-10-22 21:08:05 +00:00
Michael Zucci 42d022008a (camel_search_header_match): Oops, missing i=0.
svn path=/trunk/; revision=13891
2001-10-22 19:12:06 +00:00
2 0787edd7b8 Match check against all addresses in a multiple address match. Should fix
2001-10-22    <NotZed@Ximian.com>

        * camel-search-private.c (camel_search_header_match): Match check
        against all addresses in a multiple address match.  Should fix
        #13051.

svn path=/trunk/; revision=13885
2001-10-22 18:29:01 +00:00
Dan Winship 824967d843 Add a hack: if the multipart/signed part has a "x-inline-pgp-hack"
* camel-pgp-mime.c (camel_pgp_mime_part_verify): Add a hack: if
       the multipart/signed part has a "x-inline-pgp-hack" parameter in
       its Content-Type, don't pass the MIME headers as part of the data
       to be verified.

svn path=/trunk/; revision=13881
2001-10-22 17:44:50 +00:00
Rodrigo Moya c8c5e7d994 added $GNOME_INCLUDEDIR to INCLUDES, needed for latest libgnome, which
2001-10-22  Rodrigo Moya <rodrigo@ximian.com>

	* Makefile.am: added $GNOME_INCLUDEDIR to INCLUDES, needed for latest
	libgnome, which install headers in $(prefix)/gnome-1.0

svn path=/trunk/; revision=13878
2001-10-22 17:10:14 +00:00