Commit Graph

1091 Commits

Author SHA1 Message Date
Jeffrey Stedfast 9e20b50bd1 Turn on --batch and reenable gpg keyserver lookups. (pgp_decrypt): Disable
2001-08-21  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_verify): Turn on --batch and reenable
	gpg keyserver lookups.
	(pgp_decrypt): Disable keyserver lookups if we are disconnected.

svn path=/trunk/; revision=12372
2001-08-21 22:45:41 +00:00
Dan Winship d3027e6fa9 Fix the duplicate message check so it doesn't mess up threading when a
* camel-folder-thread.c
	(camel_folder_thread_messages_new_summary): Fix the duplicate
	message check so it doesn't mess up threading when a reply appears
	in the folder before the message it's a reply to. Fixes bug #3357.
	(camel_folder_thread_messages_new): Likewise, although I don't
	think this function is used any more.

svn path=/trunk/; revision=12341
2001-08-21 14:27:48 +00:00
JP Rosevear 85f3f150b2 build a static camel for the addressbook conduit
2001-08-20  JP Rosevear  <jpr@ximian.com>

	* Makefile.am: build a static camel for the addressbook conduit

svn path=/trunk/; revision=12287
2001-08-20 13:22:23 +00:00
Ettore Perazzoli f1aa6fd9d5 s/Synchronising/Synchronizing/. (mbox_summary_sync_quick): Likewise.
* providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
s/Synchronising/Synchronizing/.
(mbox_summary_sync_quick): Likewise.
* providers/local/camel-spool-summary.c (spool_summary_sync_full):
Likewise.
(spool_summary_sync_quick): Likewise.

svn path=/trunk/; revision=12269
2001-08-20 08:27:26 +00:00
Jeffrey Stedfast e16950f052 oops, commit the ChangeLog
svn path=/trunk/; revision=12261
2001-08-20 07:34:55 +00:00
Chris Toshok a3873f9ae7 #include <sys/types.h> for mode_t on freebsd.
2001-08-19  Chris Toshok  <toshok@ximian.com>

        * camel-store.h: #include <sys/types.h> for mode_t on freebsd.

svn path=/trunk/; revision=12228
2001-08-19 21:28:30 +00:00
Jeffrey Stedfast 6dbfa6b0af Make sure the generated UID is non-NULL before appending it to the array
2001-08-19  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/pop3/camel-pop3-folder.c (pop3_generate_uids): Make
	sure the generated UID is non-NULL before appending it to the
	array of UIDs. How would this even happen? I have no clue...

svn path=/trunk/; revision=12225
2001-08-19 19:25:01 +00:00
Jeffrey Stedfast 2968652a61 Start scanning new messages at maxuid + 1 rather than uidval + 1? Maybe
2001-08-17  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-folder.c (imap_update_summary): Start
	scanning new messages at maxuid + 1 rather than uidval + 1? Maybe
	I'm missing the logic, but anyways...this might fix bug #5348.

svn path=/trunk/; revision=12170
2001-08-17 19:02:48 +00:00
Jeffrey Stedfast d103befa6d If we are online and message flags have changed in the current folder,
2001-08-16  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-store.c (imap_keepalive): If we are
	online and message flags have changed in the current folder, sync
	the flags else do a NOOP. This fixes bug #4666. Also lock around
	the NOOP command.

	* providers/imap/camel-imap-folder.c (imap_sync_online): Don't
	ever send "STORE FLAGS.SILENT ()" since Cyrus imapd doesn't like
	this (and maybe others too?) so what we'll do instead is to send
	"STORE -FLAGS.SILENT (\Seen \Answered \Deleted \Marked)" to clear
	all the flags (since this is in essence what we want to do
	anyway).

svn path=/trunk/; revision=12136
2001-08-16 23:31:34 +00:00
Jeffrey Stedfast cd0dd54c2b Don't ever send "STORE FLAGS.SILENT ()" since Cyrus imapd doesn't like
2001-08-16  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-folder.c (imap_sync_online): Don't
	ever send "STORE FLAGS.SILENT ()" since Cyrus imapd doesn't like
	this (and maybe others too?) so what we'll do instead is to send
	"STORE -FLAGS.SILENT (\Seen \Answered \Deleted \Marked)" to clear
	all the flags (since this is in essence what we want to do
	anyway).

svn path=/trunk/; revision=12131
2001-08-16 22:17:30 +00:00
Peter Williams 6255c3d1d5 Fix this again. Sigh. Problem of namespace = "" may not yet be completely
2001-08-16  Peter Williams  <peterw@ximian.com>

	* providers/imap/camel-imap-store.c (imap_connect_online): Fix this
	again. Sigh. Problem of namespace = "" may not yet be completely
	solved.

svn path=/trunk/; revision=12095
2001-08-16 17:38:56 +00:00
Peter Williams 5fc7eeebc0 New function. Try to approximate the SSL error into errno.
2001-08-15  Peter Williams  <peterw@ximian.com>

	* camel-tcp-stream-openssl.c (ssl_error_to_errno): New function. Try
	to approximate the SSL error into errno.
	(errlib_error_to_errno): New function, try to approximate OpenSSl's
	error library's error (ERR_*) into errno.
	(stream_read): Try to set errno using ssl_error_to_errno.
	(stream_write): Same.
	(open_ssl_connection): Same.

svn path=/trunk/; revision=12065
2001-08-15 20:05:26 +00:00
Peter Williams 580a9b1815 Oh crap, huge killer typo.
2001-08-15  Peter Williams  <peterw@ximian.com>

	* providers/imap/camel-imap-store.c (imap_connect_online): Oh crap,
	huge killer typo.

svn path=/trunk/; revision=12048
2001-08-15 14:05:49 +00:00
Peter Williams 545c3e8a64 Canonicalize store->namespace to end in store->dir_sep, once both values
2001-08-14  Peter Williams  <peterw@ximian.com>

       * providers/imap/camel-imap-store.c (imap_connect_online):
       Canonicalize store->namespace to end in store->dir_sep, once both
       values are known. The %F-related code makes this
       assumption. Probably fixes a bug reported on the mailing list.

svn path=/trunk/; revision=12040
2001-08-15 02:48:00 +00:00
Jeffrey Stedfast ed5d621b6d After talking to NotZed, it turns out I was wrong after all. (store_sync):
2001-08-13  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-store.c (camel_store_get_folder): After talking to NotZed,
	it turns out I was wrong after all.
	(store_sync): Create a copy of the folder-cache that owns a ref on
	each of the folders so that if one of the folders get's finalized
	inside store_sync(), we don't run into any locking issues. This is
	mostly meant to solve a problem in IMAP (#6089).

svn path=/trunk/; revision=12032
2001-08-14 19:42:40 +00:00
Jeffrey Stedfast ed41e07a8b We need to be ref'ing the folder if/when we add it to the hash. This may
2001-08-13  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-store.c (camel_store_get_folder): We need to be ref'ing
	the folder if/when we add it to the hash. This may fix bug #6089?
	(camel_store_get_folder): Nevermind, reverted the fix.
	(camel_store_get_folder): No, I wasn't on crack before after
	all...if we don't ref here, then we're open to a race condition
	later.

svn path=/trunk/; revision=11973
2001-08-13 22:44:57 +00:00
Peter Williams 23aba87f9b Fix a leak.
2001-08-13  Peter Williams  <peterw@ximian.com>

	* providers/imap/camel-imap-store.c (delete_folder): Fix a leak.

	* providers/imap/camel-imap-utils.c (imap_namespace_concat): Bleah,
	handle when namespace = NULL (can happen upon initial open of mailbox.)

	* providers/imap/camel-imap-command.c (imap_command_strdup_vprintf):
	Don't crash when %F'ing with an empty folder name and NULL namespace.

svn path=/trunk/; revision=11971
2001-08-13 22:31:20 +00:00
Jeffrey Stedfast f4132b5946 We need to be ref'ing the folder if/when we add it to the hash. This may
2001-08-13  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-store.c (camel_store_get_folder): We need to be ref'ing
	the folder if/when we add it to the hash. This may fix bug #6089?
	(camel_store_get_folder): Nevermind, reverted the fix.

svn path=/trunk/; revision=11969
2001-08-13 22:22:38 +00:00
Jeffrey Stedfast 106b05d139 We need to be ref'ing the folder if/when we add it to the hash. This may
2001-08-13  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-store.c (camel_store_get_folder): We need to be ref'ing
	the folder if/when we add it to the hash. This may fix bug #6089?

svn path=/trunk/; revision=11968
2001-08-13 22:17:00 +00:00
Ettore Perazzoli fc6e6a3041 s/summarising/summarizing/. (summary_rebuild): Likewise.
* providers/local/camel-spool-summary.c (summary_rebuild):
s/summarising/summarizing/.
(summary_rebuild): Likewise.

* providers/local/camel-mbox-summary.c (mbox_summary_sync_full):
s/summarise/summarize/.
(mbox_summary_sync_quick): Likewise.
(summary_rebuild): Likewise.
(mbox_summary_check): Likewise.

svn path=/trunk/; revision=11919
2001-08-11 20:51:04 +00:00
Jeffrey Stedfast a16770842e Added an assert - at this point a backtrace would be more useful than a
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-utils.c (imap_quote_string): Added an
	assert - at this point a backtrace would be more useful than a
	transaction log for debugging.

svn path=/trunk/; revision=11902
2001-08-10 22:07:46 +00:00
Jeffrey Stedfast 7dcd2540eb Return FALSE here, not NULL.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-command.c (imap_command_start): Return
	FALSE here, not NULL.

svn path=/trunk/; revision=11893
2001-08-10 18:35:46 +00:00
Jeffrey Stedfast 6b6972e26e Don't g_strdup() the uid into the trigger_event call.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-folder.c (imap_rescan): Don't
	g_strdup() the uid into the trigger_event call.

svn path=/trunk/; revision=11891
2001-08-10 18:33:22 +00:00
Jeffrey Stedfast 7bad37e711 Set the total bytes expected to 0 if the response is empty too.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
	Set the total bytes expected to 0 if the response is empty too.
	(pop3_refresh_info): Return of there was an error generating pop3
	uids.

svn path=/trunk/; revision=11886
2001-08-10 18:16:47 +00:00
Jeffrey Stedfast 45f6b55148 Set the total bytes expected to 0 if the response is empty too.
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
	Set the total bytes expected to 0 if the response is empty too.

svn path=/trunk/; revision=11885
2001-08-10 18:11:03 +00:00
Jeffrey Stedfast 8907111d47 regfree the pattern before continue'ing. This was showing up quite a bit
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (header_raw_check_mailing_list): regfree the
	pattern before continue'ing. This was showing up quite a bit under
	purify.

svn path=/trunk/; revision=11867
2001-08-10 04:06:53 +00:00
Jeffrey Stedfast a1dbf7e2b8 A quoted string cannot contain \n's so check for those as well.
2001-08-09  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-utils.c (imap_parse_string_generic): A
	quoted string cannot contain \n's so check for those as well.
	(imap_atom_specials): Update this to fix bug #6553.

svn path=/trunk/; revision=11845
2001-08-09 22:48:12 +00:00
Jon Trowbridge f94b2023ad Remove trailing stuff from URLs before returning. (Done in an evil way,
2001-08-08  Jon Trowbridge  <trow@ximian.com>

	* camel-filter-search.c (get_source): Remove trailing stuff from
	URLs before returning.  (Done in an evil way, not in the good way
	suggested by fejj. :)) (Bug #4876)

svn path=/trunk/; revision=11808
2001-08-09 02:27:40 +00:00
jacob berkman dd1fd6f7f6 check for NULL name and addr (fixes a bug i was about to report)
2001-08-08  jacob berkman  <jacob@ximian.com>

	* camel-search-private.c (camel_search_header_match): check for
	NULL name and addr (fixes a bug i was about to report)

svn path=/trunk/; revision=11786
2001-08-08 14:34:33 +00:00
Not Zed 5dfe756f5f Properly determine match type to pass to header_match.
2001-08-08  Not Zed  <NotZed@Ximian.com>

        * camel-filter-search.c (check_header): Properly determine match
        type to pass to header_match.
        (address_matches_exactly): Removed, effectively added to
        camel_search_header_match.

        * camel-folder-search.c (check_header): Properly determine the
        match type to pass to header_match.

        * camel-search-private.c (camel_search_header_match): Add a new
        parameter 'type' which is the type of header we're matching
        against.  ASIS means utf8 format, ADDRESS means an internet
        address ('formatted'), ADDRESS_ENCODED means a raw address header,
        ENCODED means rfc 2047 encoded text.
        (header_match): Move original logic here, have search_header_match
        call it as appropriate for the 'type' of match.

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

        * camel-session.c (camel_session_class_init): Only init the vee
        provider struct once (if we're subclassed this will get called
        multiple times).

        * camel-object.c (obj_finalize): Removed a bit of a debug that
        crept in with jacob's poolv patch (?).

svn path=/trunk/; revision=11772
2001-08-08 09:37:40 +00:00
Jeffrey Stedfast a039733f70 New function to do danw's address "is" comparison (as specified in bug
2001-08-07  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-filter-search.c (address_matches_exactly): New function to
	do danw's address "is" comparison (as specified in bug #5886.
	(check_header): Special-case address-type headers when we are
	doing an exact match to use the address_matches_exactly function.

svn path=/trunk/; revision=11738
2001-08-07 19:55:34 +00:00
Jeffrey Stedfast 83b2e9c05c Modify to take a headers_only argument which will then only fetch message
2001-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
	Modify to take a headers_only argument which will then only fetch
	message headers.
	(pop3_generate_uids): Pass in TRUE for headers_only.
	(pop3_get_message): Pass in FALSE for headers_only and move the
	camel_operation() stuff out of get_message_stream and in to here
	instead.
	(pop3_generate_uids): We also need to be using i+ 1 as the id
	since we are starting at 0.

svn path=/trunk/; revision=11722
2001-08-07 02:39:28 +00:00
Jeffrey Stedfast 7216ef8129 New internal function to get a message stream by message sequence id (so
2001-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/pop3/camel-pop3-folder.c (pop3_get_message_stream):
	New internal function to get a message stream by message sequence
	id (so that we can share code between pop3_get_message and
	pop3_generate_uids).
	(pop3_get_message): Use pop3_get_message_stream.
	(pop3_generate_uids): New function to generate UIDs based on the
	message - this fixes bug #1256.
	(pop3_refresh_info): If the server doesn't support UIDL, call
	pop3_generate_uids to get our list of UIDs.

	* providers/imap/camel-imap-store.c (get_folder_info_online):
	Don't strstr for noselect=yes, that's just plain broken.

svn path=/trunk/; revision=11721
2001-08-07 02:03:22 +00:00
Jeffrey Stedfast ee486f95dc Don't strstr for noselect=yes, that's just plain broken.
2001-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-store.c (get_folder_info_online):
	Don't strstr for noselect=yes, that's just plain broken.

svn path=/trunk/; revision=11714
2001-08-06 22:17:18 +00:00
Dan Winship 58e53223b1 Fix off-by-one error in cleaning up deleted messages at the end of the
* providers/imap/camel-imap-folder.c (imap_rescan): Fix off-by-one
	error in cleaning up deleted messages at the end of the folder.
	Fixes bug #5585 and maybe others.

svn path=/trunk/; revision=11712
2001-08-06 21:55:09 +00:00
Dan Winship 4cbbf6af0b Do a refresh_info on the selected folder before looking at its unread
* providers/imap/camel-imap-store.c (get_folder_info_online): Do a
	refresh_info on the selected folder before looking at its unread
	count. Should fix bug #4944.

svn path=/trunk/; revision=11710
2001-08-06 21:19:13 +00:00
Peter Williams f789abbd42 Completely hide the namespace from everything external to the IMAP code,
2001-08-06  Peter Williams  <peterw@ximian.com>

	Completely hide the namespace from everything external to the IMAP
	code, which Dan W says is the way it should be.

	* providers/imap/camel-imap-command.c
	(imap_command_strdup_vprintf): Add a new %F argument, which is like
	%S but will add the namespace (for folder names).
	(camel_imap_command): Use %F here.

	* providers/imap/camel-imap-utils.c (imap_parse_list_response):
	Changed to strip out the namespec when returning *folder. In order
	to do this we need to be passed the CamelImapStore.
	(imap_concat): Move to here from camel-imap-store.c, un-static
	(imap_namespace_concat): New function, adds the namespace to the
	folder name, unless it's INBOX.

	* providers/imap/camel-imap-utils.h: Prototypes.

	* providers/imap/camel-imap-store.c (imap_connect_online): Extra
	arg to imap_parse_list_response.
	(imap_connect_offline): Here too.
	(get_folder_status): Use %F.
	(get_folder_online): Here too.
	(delete_folder): Here too.
	(create_folder): Here too, and arg to imap_parse_list_response.
	(parse_list_response_as_folder_info): Arg to i_p_l_r.
	(get_subscribed_folders_by_hand): Use %F.
	(get_folders_online): Here too.
	(get_folder_info_online): Instead of checking for NULL @name, check
	for name = NULL or "", and set to "" instead of namespace. Pass ""
	instead of namespace to camel_folder_info_build.
	(subscribe_folder): Use %F.
	(unsubscribe_folder): Here too.

	* providers/imap/camel-imap-folder.c (imap_get_full_name): This
	now just returns folder->full_name.
	(do_append): Use %F
	(do_copy): Here too.

svn path=/trunk/; revision=11705
2001-08-06 19:00:32 +00:00
Jeffrey Stedfast b37678ea31 Always do --no-auto-key-retrieve.
2001-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_verify): Always do --no-auto-key-retrieve.

svn path=/trunk/; revision=11703
2001-08-06 17:28:28 +00:00
Jeffrey Stedfast c6daf26ade Minor changes to the iconv code so that it does the check in the return
2001-08-03  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_verify): Minor changes to the iconv
	code so that it does the check in the return value of iconv() just
	like the code in camel-mime-utils.c in case this fixes Bo Rosen's
	gpg bugs (but I doubt this will change anything?).

svn path=/trunk/; revision=11622
2001-08-03 20:36:24 +00:00
Jeffrey Stedfast 733175aaec First check to make sure that service->url->authmech is non-NULL before
2001-08-03  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/smtp/camel-smtp-transport.c (smtp_connect): First
	check to make sure that service->url->authmech is non-NULL before
	passing it into strcmp to avoid a segfault.

svn path=/trunk/; revision=11618
2001-08-03 18:16:59 +00:00
Jeffrey Stedfast 7d143c9c44 Sigh, if gpg returns '1' it means that the key is bad but it did succeede
2001-08-03  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_decrypt): Sigh, if gpg returns '1' it
	means that the key is bad but it did succeede in decrypting the
	block so to make users happy (even though I find this a
	questionable action) we are going to ignore the error and show it
	to the user anyway. This fixes bug #6136.

svn path=/trunk/; revision=11617
2001-08-03 18:02:12 +00:00
Not Zed 99e55fbc6b special case popb4smtp auth before we try and connect, and do the magic
2001-08-03  Not Zed  <NotZed@Ximian.com>

        * providers/smtp/camel-smtp-transport.c (smtp_connect): special
        case popb4smtp auth before we try and connect, and do the magic
        here first.

2001-08-02  Not Zed  <NotZed@Ximian.com>

        * providers/smtp/camel-smtp-transport.c (smtp_connect): Check for
        POPB4SMTP separate to the esmtp auth list.
        (smtp_auth): If creating the sasl object means it is
        already authenticated, then exit early.  Sort of 'clean hack' to
        help popb4smtp work.
        (smtp_auth): Unref the sasl object, clean up a memleak i think.

        * providers/smtp/camel-smtp-provider.c
        (camel_provider_module_init): Added POPB4SMTP auth type.

        * camel-sasl.c (camel_sasl_authtype): Added POPB4SMTP type.

        * camel-sasl-popb4smtp.c: New file for pop before smtp
        'authentication'.

        * Makefile.am (libcamel_la_SOURCES, HEADERS): Add
        camel-sasl-popb4smtp.[ch].

svn path=/trunk/; revision=11615
2001-08-03 15:33:57 +00:00
Not Zed 0ff44374fd If we fail to get the lock, make sure we close our locking fd, and reset
2001-08-01  Not Zed  <NotZed@Ximian.com>

        * providers/local/camel-mbox-folder.c (mbox_lock): If we fail to
        get the lock, make sure we close our locking fd, and reset it.
        Fixes the crash part of 5095.

svn path=/trunk/; revision=11538
2001-08-01 06:46:39 +00:00
Not Zed 6f22eb642b Slightly re-arranged filter/change notification logic. If we;re filtering,
2001-08-01  Not Zed  <NotZed@Ximian.com>

	* providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
	Slightly re-arranged filter/change notification logic.  If we;re
	filtering, freeze the folder till we're finished to smooth the ui
	for new mail.

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

	* camel-folder.c (camel_folder_init): Chagned mutexes to
	e_mutexes, folder lock recursive.  This fixes the imap filtering
	bug, or at least some cases of it.
	(camel_folder_finalize): Free mutexes.

	* camel-private.h (CamelFolderPrivate): Changed mutexes to
	e_mutexes.

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

	* camel-folder.c (camel_folder_change_info_*): Change the
	return if fail's into asserts.
	(camel_folder_change_info_free): Don't let it accept a NULL
	argument.  This isn't g_lib so we dont have to.

svn path=/trunk/; revision=11537
2001-08-01 04:57:01 +00:00
Jeffrey Stedfast a58cd1586c Fix the fix that fixes broken mailer behavior. We want to make sure that
2001-07-27  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (header_decode_param): Fix the fix that fixes
	broken mailer behavior. We want to make sure that the user's
	locale charset is non-NULL before we pass it off to
	iconv_open(). If it *is* NULL, we want to use iso-8859-1.

svn path=/trunk/; revision=11448
2001-07-27 16:41:55 +00:00
Jeffrey Stedfast d5f77c20a8 Allow the url to be NULL just like the libc free convention.
2001-07-26  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-url.c (camel_url_free): Allow the url to be NULL just like
	the libc free convention.

svn path=/trunk/; revision=11437
2001-07-26 21:56:12 +00:00
Dan Winship 8e10bc6959 Send an IMAP command, but don't wait for responses.
* providers/imap/camel-imap-command.c (camel_imap_command_start):
	Send an IMAP command, but don't wait for responses.
	(camel_imap_command_response): Read a single line of response from
	the server.
	(camel_imap_command, etc): Reimplement in terms of the new code.

	* providers/imap/camel-imap-folder.c (imap_rescan): Use
	camel_imap_command_start and camel_imap_command_response, and
	call camel_operation_progress after each line read from the
	server.
	(imap_update_summary): Likewise, although with more fudging on the
	precentages... Also, fix this so that if none of the new messages
	are cached, it only does a single FETCH, and if some of them are
	cached, it does two FETCHes (one to get the UIDs, FLAGS, and
	SIZEs, and another to get the bodies of all of the messages that
	aren't cached now that it knows the relevant UIDs). This should
	speed up startup a bunch (especially if you have high bandwidth
	but also high latency to the IMAP server).

svn path=/trunk/; revision=11430
2001-07-26 19:07:40 +00:00
Dan Winship 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
Not Zed 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
Jeffrey Stedfast 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