1. 27 Mar, 2001 8 commits
    • Not Zed's avatar
      Unref the html filter when done. (summary_build_content_info): Disable · f964f65b
      Not Zed authored
      2001-03-27  Not Zed  <NotZed@Ximian.com>
      
              * camel-folder-summary.c (camel_folder_summary_finalize): Unref
              the html filter when done.
              (summary_build_content_info): Disable using the html parser to
              help index html mails until it gets sorted out.
      
      svn path=/trunk/; revision=8975
      f964f65b
    • Not Zed's avatar
      Fix a cut n paste bug, we want uid_removed not uid_changed deref, fixes · 0fc9632e
      Not Zed authored
      2001-03-27  Not Zed  <NotZed@Ximian.com>
      
      	* camel-vee-folder.c (folder_changed): Fix a cut n paste bug, we
      	want uid_removed not uid_changed deref, fixes bug #1999.
      
      svn path=/trunk/; revision=8973
      0fc9632e
    • Dan Winship's avatar
      add an argument to say whether or not you want "PLAIN" in the list (so you · 0a12cd8b
      Dan Winship authored
      	* camel-sasl.c (camel_sasl_authtype_list): add an argument to say
      	whether or not you want "PLAIN" in the list (so you don't end up
      	with "Password" twice in the config dialog).
      
      	* providers/imap/camel-imap-provider.c (camel_provider_module_init):
      	* providers/imap/camel-imap-store.c (query_auth_types): We don't
      	want PLAIN.
      
      	* providers/smtp/camel-smtp-provider.c (camel_provider_module_init):
      	* providers/smtp/camel-smtp-transport.c (query_auth_types): But we
      	do.
      
      svn path=/trunk/; revision=8972
      0a12cd8b
    • Dan Winship's avatar
      Add an "extra_conf" field to CamelProvider with structures and defines and · 4c42c93d
      Dan Winship authored
      	* camel-provider.h: Add an "extra_conf" field to CamelProvider
      	with structures and defines and stuff, for providers to specify
      	additional configuration options that they want. Also add a
      	"supports ssl" flag to the provider flags.
      
      	* camel-remote-store.c: add a "default_ssl_port" field.
      	(remote_construct): If the URL has the "use_ssl" parameter, set
      	the store's use_ssl flag.
      	(remote_connect): If using SSL and no port specified, use the
      	default_ssl_port rather than the default_port.
      
      	* providers/smtp/camel-smtp-provider.c (smtp_provider): add
      	CAMEL_PROVIDER_SUPPORTS_SSL and CAMEL_URL_ALLOW_USER. (The config
      	gui code knows that the ALLOW_USER and ALLOW_AUTH go together.)
      	(ssmtp_provider): gone
      
      	* providers/smtp/camel-smtp-transport.c (smtp_construct): Set a
      	flag if "use_ssl" param is set.
      	(smtp_connect): Check the CamelSmtpTransport use_ssl flag rather
      	than checking if this is smtp or ssmtp.
      
      	* providers/imap/camel-imap-provider.c (imap_conf_entries): Add a
      	bunch of IMAP-specific configuration options, like "check for new
      	mail in all folders" (default TRUE), "show only subscribed
      	folders" (default TRUE), "ignore server-supplied namespace", and
      	"apply filters to INBOX" (not yet implemented).
      	(imap_provider): We support SSL and we no longer allow a path in
      	the URL. (namespace is handled via extra_conf)
      	(simap_provider): Gone
      
      	* providers/imap/camel-imap-store.c (camel_imap_store_init): Set
      	default_ssl_port, don't set CAMEL_STORE_SUBSCRIPTIONS here
      	(construct): remove simap stuff, deal with "use_lsub",
      	"namespace", "check_all", and "filter" parameters. Set base_url
      	to not include params.
      	(imap_store_setup_online): Don't ask for the namespace if it was
      	set explicitly. Don't get subscribed folders if !use_lsub.
      	(imap_concat): Fix a bug.
      	(get_folder_info): Support for not checking all folders.
      
      	* providers/pop3/camel-pop3-provider.c (pop3_conf_entries): "keep
      	on server" (currently still implemented by the mailer code, not
      	here), "delete after N days" (not yet implemented).
      	(pop3_provider): we support SSL
      	(spop_provider): gone
      
      	* providers/pop3/camel-pop3-store.c (camel_pop3_store_init): Set
      	default_ssl_port
      	(pop3_connect): Remove spop code
      
      svn path=/trunk/; revision=8968
      4c42c93d
    • Dan Winship's avatar
      Fix parsing of params. (output_param): And unparsing... · 26b82892
      Dan Winship authored
      	* camel-url.c (camel_url_new_with_base): Fix parsing of params.
      	(output_param): And unparsing...
      
      svn path=/trunk/; revision=8967
      26b82892
    • Dan Winship's avatar
      Rewrite to use imap_store->namespace, not service->url->path · 6b7d4b65
      Dan Winship authored
      	* providers/imap/camel-imap-folder.c (imap_get_full_name): Rewrite
      	to use imap_store->namespace, not service->url->path
      
      svn path=/trunk/; revision=8966
      6b7d4b65
    • Jeffrey Stedfast's avatar
      Move all of the camel_vee_folder_construct() internals here. · 7e4fb782
      Jeffrey Stedfast authored
      2001-03-26  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-vee-folder.c (vee_folder_construct): Move all of the
      	camel_vee_folder_construct() internals here.
      	(camel_vee_folder_construct): This function basically becomes a
      	wrapper for vee_folder_construct and also checks to make sure that
      	the UNMATCHED vfodler is constructed otherwise constructs it.
      	(camel_vee_folder_new): Call vee_folder_construct() instead so
      	that we don't get into a dead-lock.
      
      svn path=/trunk/; revision=8964
      7e4fb782
    • Jeffrey Stedfast's avatar
      Use camel_vtrash_folder_new() to create the vtrash folder now. · efddd51d
      Jeffrey Stedfast authored
      2001-03-26  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-store.c (init_trash): Use camel_vtrash_folder_new() to
      	create the vtrash folder now.
      
      	* camel-vtrash-folder.[c,h]: New subclass of CamelVeeFolder for
      	our vTrash folders.
      
      	* camel-folder.c (camel_folder_copy_messages_to): Don't watch for
      	vtrash folders anymore.
      	(camel_folder_move_messages_to): Same.
      
      	* camel-vee-folder.c (camel_vee_folder_class_init): Update.
      	(vee_move_messages_to): Rewrite to use the new move API.
      
      	* camel-filter-driver.c (do_copy): Updated to reflect
      	copy_message_to changes. Create a temporary uid array and use
      	that.
      	(do_move): Same.
      	(camel_filter_driver_filter_message): And again, here...
      
      	* providers/imap/camel-imap-folder.c (imap_copy_messages_to):
      	Update to the new API.
      	(imap_move_messages_to): Same.
      	(get_uid_set): New function to create a `set' string based on an
      	array of UIDs for use with imap_copy_messages_to.
      
      	* camel-folder.c (camel_folder_copy_messages_to): Replaces
      	camel_folder_copy_message_to
      	(camel_folder_move_message_to): Replaces
      	camel_folder_move_message_to.
      
      svn path=/trunk/; revision=8960
      efddd51d
  2. 26 Mar, 2001 7 commits
    • Not Zed's avatar
      Added folder_created event here. · 1d80d46e
      Not Zed authored
      2001-03-27  Not Zed  <NotZed@Ximian.com>
      
              * camel-vee-store.c (vee_get_folder): Added folder_created event
              here.
      
              * camel-vee-folder.c (unmatched_finalise): Removed, moved into
              main finalise code.
              (message_changed): Just create a new change entry and promote it
              to a folder_changed thing.
              (vee_sync): Always rebuild folder on sync, even when not expunge.
              (folder_changed): If not autoupdating, make sure we remove any
              removed entries.
              (vee_folder_build_folder):
              (vee_folder_remove_folder): NOP if we're called on
              folder_unmatched.
              (vee_search_by_expression): Only search each folder once.  Should
              we also order the result in summary order?
      
      2001-03-20  Not Zed  <NotZed@Ximian.com>
      
              * camel-store.c (init_trash): Fix calling for vee_folder_new().
      
              * camel-folder-summary.c (camel_folder_summary_remove_index):
              Optimise slightly, use ptr_array_remove_index rather than have to
              search for the index by using summary_remove.
      
              * camel-vee-folder.h: Removed local member from VeeFolder, since
              it was never used.
      
              * camel-vee-store.c (camel_vee_store_finalise): Setup finalise
              function.
      
              * camel-vee-folder.c (camel_vee_folder_set_expression): New
              function to set the query of an existing vfolder.
              (camel_vee_folder_construct): New function for
              convenience/subclasses.
              (camel_vee_folder_new): Removed exception parameter, no longer
              needed (since we dont search yet).
              (camel_vee_folder_new): Changed to use folder_construct, and no
              longer raise the folder created signal.
              (vee_folder_build_folder): Make it return error on exception, so
              we can work without exceptions.
              (vee_folder_remove_folder): Use remove index rather than
              remove_uid, this is ok since we have the summary locked for our
              own access.
              (camel_vee_folder_add_folder): Only add the folder to the
              unmatched private if it is not a private folder.
              (camel_vee_folder_remove_folder): Only remove the folder from
              unmatched if it is not private.
              (vee_expunge): Just call sync with expunge set.
              (vee_sync): If expunging, also refresh the search.
              (vee_folder_build_folder): We do our own locking now, removed from
              callers, also trigger changed events here too (within locks),
              fixed callers appropriately.
              (vee_folder_remove_folder): Do our own locking, and trigger
              changed events.
              (vee_folder_add_info): Renamed of vee_folder_add, we now take a
              hash of the folder name, rather than use the folders address.
              (hash_folder): Convert a folder name into an 8 character hash.
              (vee_get_message, vee_search_by_expression, vee_set_message_flags,
              vee_set_message_user_flag, vee_move_message_to): Changed the uid
              to be an 8 byte hash + original uid, with no ':' anymore.
      
      svn path=/trunk/; revision=8957
      1d80d46e
    • Jeffrey Stedfast's avatar
      When writing the last token (if not rfc2047 encoded), don't use · 4b93e802
      Jeffrey Stedfast authored
      2001-03-26  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-mime-utils.c (header_decode_text): When writing the last
      	token (if not rfc2047 encoded), don't use g_string_append_len, use
      	append_latin1.
      
      svn path=/trunk/; revision=8954
      4b93e802
    • Jeffrey Stedfast's avatar
      Don't spew a warning if the message-id wasn't set by the application, not · b86d822e
      Jeffrey Stedfast authored
      2001-03-26  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-mime-message.c (write_to_stream): Don't spew a warning if
      	the message-id wasn't set by the application, not a big deal since
      	we create one right here.
      
      svn path=/trunk/; revision=8952
      b86d822e
    • Dan Winship's avatar
      Rename this from "PLAIN" to "Password": there's no reason the user needs · 5be44051
      Dan Winship authored
      	* camel-sasl-plain.c (camel_sasl_plain_authtype): Rename this from
      	"PLAIN" to "Password": there's no reason the user needs to see the
      	SASL mechanism name.
      
      svn path=/trunk/; revision=8950
      5be44051
    • Dan Winship's avatar
      keep a reference on the store's current_folder. · f1e4609a
      Dan Winship authored
      	* providers/imap/camel-imap-command.c (camel_imap_command): keep a
      	reference on the store's current_folder.
      
      	* providers/imap/camel-imap-store.c (camel_imap_store_finalize):
      	(imap_disconnect): unref the current_folder before clearing it.
      
      svn path=/trunk/; revision=8945
      f1e4609a
    • Dan Winship's avatar
      Add missing accessor. · c92c8b1f
      Dan Winship authored
      	* camel-url.c (camel_url_get_param): Add missing accessor.
      
      svn path=/trunk/; revision=8943
      c92c8b1f
    • Dan Winship's avatar
      New. Return the provider for a URL. · d3ce110b
      Dan Winship authored
      	* camel-session.c (camel_session_get_provider): New. Return
      	the provider for a URL.
      
      svn path=/trunk/; revision=8941
      d3ce110b
  3. 25 Mar, 2001 4 commits
    • Dan Winship's avatar
      eh, changed my mind, put the exception back in camel_url_new() · a0b95ac7
      Dan Winship authored
      svn path=/trunk/; revision=8934
      a0b95ac7
    • Dan Winship's avatar
      New URL parser with full RFC1808 relative URL support. Yum. · 182c699c
      Dan Winship authored
      	* camel-url.c (camel_url_new_with_base): New URL parser with full
      	RFC1808 relative URL support. Yum.
      	(camel_url_new): Wrapper around camel_url_new_with_base now.
      	Removed the CamelException since no one ever used it...
      
      	* tests/Makefile.am: add misc subdir
      
      	* tests/misc/url.c: relative URL test cases from RFC 1808
      
      	* camel-session.c (camel_session_get_service): Update
      	camel_url_new call.
      
      svn path=/trunk/; revision=8933
      182c699c
    • Jeffrey Stedfast's avatar
      Don't use copy_to if the source folder doesn't support summary info's. · 14c2e4a8
      Jeffrey Stedfast authored
      2001-03-25  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-filter-driver.c (do_copy): Don't use copy_to if the source
      	folder doesn't support summary info's.
      	(do_move): Same.
      	(camel_filter_driver_filter_message): And again here.  I think
      	this will fix the problem of "colour" tags not staying with the
      	message when it's copied to a folder during the filter process.
      
      svn path=/trunk/; revision=8925
      14c2e4a8
    • Jeffrey Stedfast's avatar
      Do charset conversion on the username param here if needed. · 35f59fdc
      Jeffrey Stedfast authored
      2001-03-24  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-sasl-digest-md5.c (digest_response): Do charset conversion
      	on the username param here if needed.
      	(parse_server_challenge): Protect against possibly empty-string
      	charset values.
      
      svn path=/trunk/; revision=8920
      35f59fdc
  4. 23 Mar, 2001 1 commit
    • Jon Trowbridge's avatar
      Added. Call me old-fashioned, but I just prefer to have a real API rather · 4f26eac1
      Jon Trowbridge authored
      2001-03-23  Jon Trowbridge  <trow@ximian.com>
      
              * gui/widgets/e-minicard-widget.c (e_minicard_widget_set_card):
              Added.  Call me old-fashioned, but I just prefer to have a real
              API rather than doing everything via gtk_object_get/set-type
              calls.
              (e_minicard_widget_set_arg): Changed to call
              e_minicard_widget_set_card.
      
              * backend/ebook/e-book-util.c: Small changes to get rid of
              compiler warnings.  (Casting out const, removed unused variables,
              etc.)  Removed some debugging messages.
      
              * gui/component/addressbook-factory.c (main): Added call
              to e_address_popup_factory_init.
      
              * gui/component/e-address-popup.c: Added.  A popup gadget that is
              invoked (as a bonobo control) when an address is left-clicked in
              the mailer.  The addressbook is queries, and the address is either
              displayed as a minicard (if it already exists) or in a "generic
              format".  A button is provided for editting/adding the contact.
              Some of the semantics of this widget are a bit... non-standard,
              because of bonobo issues.  I can't really seem to replicate
              popup-menu behavior because of how bonobo propogates events, etc.
              so I've tried to produce something that I think is non-annoying.
              YMMV.
      
      2001-03-23  Jon Trowbridge  <trow@ximian.com>
      
              * mail-display.c (handle_embedded_address_object): #ifdef away
              some code I don't quite want to delete yet.
              (html_button_press_event): Remove some of Radek's placeholder
              code, replace it with code to create my AddressPopup bonobo
              control.
      
              * mail-format.c: Remove some obsolete code that if #ifdef-ed out
              a while ago.
      
              * mail-ops.c (send_queue_send): Strip out the X-Evolution-Identity
              header when sending.
      
      2001-03-23  Jon Trowbridge  <trow@ximian.com>
      
              * camel-filter-driver.c (camel_filter_driver_filter_message):
              Don't call camel_mime_message_set_identity.  (The call is
              commented out, left over from some earlier experimentation that I
              want to be able to remember later...)
      
              * camel-mime-message.c (camel_mime_message_set_identity): Added.
              A function to set the X-Evolution-Identity header.
      
      svn path=/trunk/; revision=8916
      4f26eac1
  5. 22 Mar, 2001 1 commit
    • Dan Winship's avatar
      Don't look at untagged responses other than "* BYE"... · 62af13a3
      Dan Winship authored
      	* providers/imap/camel-imap-command.c (imap_read_response): Don't
      	look at untagged responses other than "* BYE"...
      	(camel_imap_response_free): ...do it here instead...
      	(camel_imap_response_free_without_processing): ...but not here.
      
      	* providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
      	Remove the "EXISTS" line from the response so
      	camel_imap_response_free won't try to process it.
      	(camel_imap_folder_selected): If we get an EXISTS response mixed
      	in with the FETCH responses, record the new EXISTS value.
      	Use camel_imap_response_free_without_processing so that an EXISTS
      	response won't cause a loop.
      	(imap_rescan): Use camel_imap_response_free_without_processing.
      	(imap_update_summary): Use
      	camel_imap_response_free_without_processing. If an EXISTS response
      	shows up, call imap_update_summary again to get the new messages.
      	(imap_protocol_get_summary_specifier): Use BODY.PEEK[0], not
      	RFC822.HEADER for prev IMAP4rev1, since the FETCH parser won't
      	deal with RFC822.HEADER responses.
      
      	* providers/imap/camel-imap-store.c (get_folder_info): Fix an
      	uninitialized variable
      
      svn path=/trunk/; revision=8905
      62af13a3
  6. 21 Mar, 2001 2 commits
    • Dan Winship's avatar
      add a "GList *authtypes", so you can get the list of authtypes used by a · 5d562c3d
      Dan Winship authored
      	* camel-provider.h: (CamelProvider) add a "GList *authtypes", so
      	you can get the list of authtypes used by a provider without
      	needing to have an actual CamelService object handy. (Will be
      	needed by the new config druid.)
      	(CAMEL_PROVIDER_ALLOWS, CAMEL_PROVIDER_NEEDS): New macros to test
      	the URL part stuff, since the way it works is too complicated and
      	everyone always does it wrong.
      
      	* camel-service.c (camel_service_query_auth_types): Remove the
      	@connected arg again: if you don't want to connect, you can just
      	get the list of authtypes off the provider.
      	(camel_service_free_auth_types): Remove this. All existing
      	implementations do authtypes the same way, so just say the caller
      	should "g_list_free" the list. (Oh, look, removing this function
      	doesn't actually cause the mailer to not build. How 'bout that.)
      	(construct, get_path): Use the new URL part macros.
      
      	* camel-remote-store.c (remote_query_auth_types): Update
      	(remote_free_auth_types): Nuke
      	(camel_remote_store_authtype_list): New function for use by
      	subclasses.
      
      	* providers/imap/camel-imap-provider.c:
      	* providers/pop3/camel-pop3-provider.c:
      	* providers/smtp/camel-smtp-provider.c: Update CamelProvider
      	structures.
      	(camel_provider_module_init): Put all the SSL parts together so
      	there's only 1 #ifdef. Set up the provider authtypes field using
      	the SASL, CamelRemoteStore, and standard authtypes, as
      	appropriate. Copy that from the normal provider to the SSL
      	provider.
      
      	* providers/local/camel-local-provider.c:
      	* providers/sendmail/camel-sendmail-provider.c:
      	* camel-session.c: Update CamelProvider structures.
      
      	* providers/imap/camel-imap-store.c (query_auth_types):
      	* providers/pop3/camel-pop3-store.c (query_auth_types): Update
      
      	* providers/smtp/camel-smtp-store.c (query_auth_types): Update.
      	Remove the no_authtype, because that's what "ALLOW_AUTH" rather
      	than "NEED_AUTH" means.
      	(free_auth_types): Nuke.
      
      svn path=/trunk/; revision=8872
      5d562c3d
    • Jeffrey Stedfast's avatar
      Return -1 on fail. (camel_filter_driver_filter_folder): Same. · 0ec6ccc4
      Jeffrey Stedfast authored
      2001-03-21  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-filter-driver.c (camel_filter_driver_filter_message):
      	Return -1 on fail.
      	(camel_filter_driver_filter_folder): Same.
      	(camel_filter_driver_filter_mbox): Same.
      	(camel_filter_driver_filter_folder): Return -1 if an exception was
      	set as well.
      
      2001-03-19  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-tcp-stream-openssl.c (camel_tcp_stream_openssl_finalize):
      	Free the expected host.
      	(camel_tcp_stream_openssl_new): Now takes a Service and an
      	expected_host. Set them.
      
      svn path=/trunk/; revision=8871
      0ec6ccc4
  7. 20 Mar, 2001 2 commits
    • Dan Winship's avatar
      Function to check if the store is online and set an exception if not. · fbb7448b
      Dan Winship authored
      	* providers/imap/camel-imap-store.c
      	(camel_imap_store_check_online): Function to check if the store is
      	online and set an exception if not. Currently controlled by an
      	environment variable, but eventually there will be both a global
      	(session-level) setting and a per-store setting.
      	(construct): Set up storage_path and base_url here rather than at
      	connect-time.
      	(imap_auth_loop): Split out from imap_connect.
      	(imap_setup_online): Split out from imap_connect. Do the
      	post-authentication connection setup, and cache the results to
      	disk.
      	(imap_setup_offline): Set up a CamelImapStore with information
      	saved from a previous imap_setup_online.
      	(imap_connect): If online, do connect_to_server(),
      	imap_auth_loop(), and imap_setup_online(). Otherwise, do
      	imap_setup_offline().
      	(get_folder, get_folder_info): Add offline support.
      	(create_folder, subscribe_folder, unsubscribe_folder): Disable
      	these when offline (for now).
      
      	* providers/imap/camel-imap-folder.c (camel_imap_folder_new):
      	Remove the sync'ing-with-server stuff... it's done by
      	camel_imap_folder_selected now, which only gets called if the
      	store is online.
      	(camel_imap_folder_selected): add the code removed from
      	camel_imap_folder_new. Besides simplifying the folder_new and
      	summary_new code, this also means now that we'll DTRT if a
      	folder's UIDVALIDITY changes while we're connected. Also, when
      	that happens, clear the message cache explicitly.
      	(imap_refresh_info, imap_sync): These are no-ops when offline.
      	(imap_expunge, imap_append_message, imap_copy_message_to,
      	imap_search_by_expression): These don't yet work offline.
      	(imap_get_message, camel_imap_folder_fetch_data): Return an error
      	when trying to fetch a non-cached body part when we're offline.
      
      	* providers/imap/camel-imap-summary.c (camel_imap_summary_new):
      	Rewrite to not check the validity here. (We'll do it from
      	camel_imap_folder_selected instead.)
      
      	* providers/imap/camel-imap-command.c (camel_imap_command): Call
      	camel_imap_folder_selected even when the selection is all we're
      	doing, to match the changes in camel-imap-folder.c.
      
      	* providers/imap/camel-imap-message-cache.c
      	(camel_imap_message_cache_clear): New function to clear out a
      	message cache.
      
      svn path=/trunk/; revision=8851
      fbb7448b
    • Christopher James Lahey's avatar
      Added $(EXTRA_GNOME_CFLAGS) · 262ee812
      Christopher James Lahey authored
      2001-03-19  Christopher James Lahey  <clahey@ximian.com>
      
      	* Makefile.am (INCLUDES): Added $(EXTRA_GNOME_CFLAGS)
      
      svn path=/trunk/; revision=8838
      262ee812
  8. 19 Mar, 2001 4 commits
    • Jeffrey Stedfast's avatar
      Set the errbuf to NULL after freeing it? I don't think this should fix bug · 7f57f509
      Jeffrey Stedfast authored
      2001-03-19  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* providers/pop3/camel-pop3-store.c (pop3_connect): Set the errbuf
      	to NULL after freeing it? I don't think this should fix bug #1801
      	but I guess it can't hurt.
      
      svn path=/trunk/; revision=8818
      7f57f509
    • Jeffrey Stedfast's avatar
      Protect against a possibly NULL exception. · d6d7dc41
      Jeffrey Stedfast authored
      2001-03-18  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-remote-store.c (remote_recv_line): Protect against a
      	possibly NULL exception.
      
      svn path=/trunk/; revision=8811
      d6d7dc41
    • Jeffrey Stedfast's avatar
      Document and modify to return a boolean value denoting whether or not · 93314d90
      Jeffrey Stedfast authored
      2001-03-18  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-filter-driver.c (camel_filter_driver_filter_message):
      	Document and modify to return a boolean value denoting whether or
      	not errors occured during processing.
      	(camel_filter_driver_filter_mbox): Same as above and also modified
      	to check return codes of filter_message rather than relying only
      	on whether or not the exception was set (as it's possible to pass
      	in NULL for the exception).
      	(camel_filter_driver_filter_folder): Same as above.
      
      	* camel-mime-utils.c (header_param_list_format_append): Quote the
      	param value if it contains whitespace as well.
      
      svn path=/trunk/; revision=8808
      93314d90
    • Jeffrey Stedfast's avatar
      Quote the param value if it contains whitespace as well. · 5e96f5b6
      Jeffrey Stedfast authored
      2001-03-18  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-mime-utils.c (header_param_list_format_append): Quote the
      	param value if it contains whitespace as well.
      
      svn path=/trunk/; revision=8804
      5e96f5b6
  9. 17 Mar, 2001 4 commits
    • Jeffrey Stedfast's avatar
      Don't include system include dir. · c768305c
      Jeffrey Stedfast authored
      2001-03-17  Jeffrey Stedfast <fejj@ximian.com>
      
      	* Makefile.am: Don't include system include dir.
      
      	* camel.c: Use quotes around the nss.h include so it doesn't try
      	to use the systen nss.h file.
      
      	* camel-tcp-stream-ssl.c: Same here.
      
      svn path=/trunk/; revision=8786
      c768305c
    • Not Zed's avatar
      Modified patch from Dan Berger <dberger@ix.netcom.com> to re-check the · b167baaa
      Not Zed authored
      2001-03-17  Not Zed  <NotZed@Ximian.com>
      
              * providers/local/camel-maildir-summary.c (maildir_summary_sync):
              Modified patch from Dan Berger <dberger@ix.netcom.com> to re-check
              the maildir directory for new/updated messages at sync time.
      
      svn path=/trunk/; revision=8781
      b167baaa
    • Not Zed's avatar
      Implemented. (ref_message_info): And default implementation. · a570bb03
      Not Zed authored
      2001-03-17  Not Zed  <NotZed@Ximian.com>
      
              * camel-folder.c (camel_folder_ref_message_info): Implemented.
              (ref_message_info): And default implementation.
      
              * camel-folder.h: Added ref_message_info virtual method.
      
      2001-03-16  Not Zed  <NotZed@Ximian.com>
      
              * camel-folder-thread.c
              (camel_folder_thread_messages_new_summary): New function to create
              a thread tree from a supplied summary array.
              (camel_folder_thread_messages_destroy): Handle thread trees
              generated by the above function properly.
      
      svn path=/trunk/; revision=8774
      a570bb03
    • Jeffrey Stedfast's avatar
      Same. · 76b2ad66
      Jeffrey Stedfast authored
      2001-03-16  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-private.h: Same.
      
      	* camel-remote-store.h: Fixed #include to use <>'s instead of ""'s
      
      svn path=/trunk/; revision=8767
      76b2ad66
  10. 16 Mar, 2001 5 commits
    • Jeffrey Stedfast's avatar
      removed camel-stream-ssl.c and camel-stream-ssl.h · 6e914a33
      Jeffrey Stedfast authored
      svn path=/trunk/; revision=8765
      6e914a33
    • Jeffrey Stedfast's avatar
      Print info about the issuer of the certificate. · a9df5de4
      Jeffrey Stedfast authored
      2001-03-16  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel-tcp-stream-ssl.c (ssl_bad_cert): Print info about the
      	issuer of the certificate.
      
      	* providers/smtp/camel-smtp-transport.c (smtp_connect): Use
      	camel_tcp_stream_get_socket().
      
      	* camel-tcp-stream-openssl.c (stream_get_socket): Implemented.
      
      	* camel-tcp-stream-ssl.c (stream_get_socket): Implemented.
      
      	* camel-tcp-stream-raw.c (stream_get_socket): Implemented.
      
      	* camel-tcp-stream.c (camel_tcp_stream_get_socket): New function.
      
      svn path=/trunk/; revision=8764
      a9df5de4
    • Kjartan Maraas's avatar
      Added #include <config.h> · c6fdf16c
      Kjartan Maraas authored
      2001-03-16  Kjartan Maraas  <kmaraas@gnome.org>
      
      	* providers/pop3/camel-pop3-folder.c: Added #include <config.h>
      
      svn path=/trunk/; revision=8762
      c6fdf16c
    • Dan Winship's avatar
      Don't use getdomainname: it's NIS crap, not DNS. · 2eda2f02
      Dan Winship authored
      	* camel-mime-utils.c (header_msgid_generate): Don't use
      	getdomainname: it's NIS crap, not DNS.
      
      svn path=/trunk/; revision=8761
      2eda2f02
    • Jeffrey Stedfast's avatar
      Don't use the hardcoded cert db directory, use the one passed in. · 403205b1
      Jeffrey Stedfast authored
      2001-03-15  Jeffrey Stedfast  <fejj@ximian.com>
      
      	* camel.c (camel_init): Don't use the hardcoded cert db directory,
      	use the one passed in.
      
      	* camel-tcp-stream-ssl.c (ssl_get_client_auth): Wrote the default
      	implementation. Not that we'll use this though, since this is the
      	default implementation provided by NSS anyway. This more or less
      	serves as a reference in case we want to change anything.
      	(ssl_auth_cert): Same.
      	(ssl_bad_cert): Changed the prompt string and free it when we're
      	done.
      
      svn path=/trunk/; revision=8753
      403205b1
  11. 15 Mar, 2001 2 commits
    • Dan Winship's avatar
      translate NIL to "" in fetch body part response · e1fc4b43
      Dan Winship authored
      svn path=/trunk/; revision=8744
      e1fc4b43
    • Dan Winship's avatar
      First batch of disconnected IMAP-related stuff. This adds local · 1f9d06c2
      Dan Winship authored
      	caching of message parts, but NOT any actual disconnected support.
      	(But it should speed up IMAP use.)
      
      	* providers/imap/camel-imap-message-cache.c: New class for caching
      	message data to disk, and removing it when it's no longer
      	relevant. Will eventually also support merging message parts
      	together to save on files. Or maybe using a db instead of files?
      
      	* providers/imap/camel-imap-private.h: Add a cache_lock to
      	CamelImapFolderPrivate. This lock must be recursive, so make both
      	locks EMutexes rather than GMutex.
      
      	* providers/imap/camel-imap-folder.c (parse_fetch_response): "The
      	only FETCH response parser you need!" Replaces the various
      	almost-correct bits of code formerly scattered throughout this
      	file with a single fully-correct function that can handle any
      	FETCH response at any time, so we don't get confused by seeing a
      	flags update when we were only expecting a message body, etc.
      	(camel_imap_folder_fetch_data): FETCH a message body part either
      	from the cache or the server
      	(camel_imap_folder_changed): Remove expunged messages from the
      	message cache.
      	(camel_imap_folder_new): Change to take a directory instead of a
      	summary file name. Create a CamelImapMessageCache for the folder.
      	(imap_finalize): Unref the message cache.
      	(camel_imap_folder_selected, imap_rescan, get_content,
      	get_message, imap_get_message, imap_update_summary): Redone a
      	bunch to use parse_fetch_data, CamelImapMessageCache, etc.
      
      	* providers/imap/camel-imap-store.c (get_folder): Pass directory
      	name to camel_imap_folder_new, not summary filename. Use
      	e_path_to_physical to generate a path with /subfolders/ inserted
      	between directory components.
      
      	* providers/imap/camel-imap-wrapper.c (camel_imap_wrapper_new):
      	Call camel_imap_folder_fetch_data (with cache_only TRUE) and if
      	the data is cached, return an online datawrapper rather than an
      	offline one.
      	(write_to_stream): Use camel_imap_folder_fetch_data (with
      	cache_only FALSE) here too
      
      	* providers/imap/camel-imap-utils.c (imap_skip_list): Renamed from
      	skip_list and made non-static.
      
      svn path=/trunk/; revision=8743
      1f9d06c2