Matthew Barnes [Wed, 2 Oct 2013 03:05:54 +0000 (23:05 -0400)]
Remove unused camel_cipher_context_import_keys_sync().
Also removes the unused asynchronous functions:
camel_cipher_context_import_keys()
camel_cipher_context_import_keys_finish()
Matthew Barnes [Wed, 2 Oct 2013 02:39:01 +0000 (22:39 -0400)]
Remove unused camel_index_names().
Matthew Barnes [Wed, 2 Oct 2013 02:35:58 +0000 (22:35 -0400)]
Remove unused camel_index_new().
Matthew Barnes [Wed, 2 Oct 2013 02:34:40 +0000 (22:34 -0400)]
CamelIndexNameClass: Remove unused sync() method.
Matthew Barnes [Wed, 2 Oct 2013 02:34:01 +0000 (22:34 -0400)]
Remove unused camel_index_name_new().
Matthew Barnes [Wed, 2 Oct 2013 02:32:26 +0000 (22:32 -0400)]
Remove unused camel_index_cursor_reset().
Matthew Barnes [Wed, 2 Oct 2013 02:28:59 +0000 (22:28 -0400)]
Remove unused camel_index_cursor_new().
Matthew Barnes [Tue, 1 Oct 2013 21:59:12 +0000 (17:59 -0400)]
CamelGpgContext: Use g_file_new_tmp() in swrite().
g_file_new_tmp() creates a GFileIOStream, which we then wrap in a
CamelStream for use with CamelDataWrapper.
Matthew Barnes [Tue, 1 Oct 2013 20:25:14 +0000 (16:25 -0400)]
CamelDataCache: Use GFileIOStream.
Return pure CamelStreams with an underlying GFileIOStream,
instead of CamelStreamFs.
Matthew Barnes [Tue, 1 Oct 2013 16:08:14 +0000 (12:08 -0400)]
Camel: Port mime-filter tests to use GIO streams.
Matthew Barnes [Tue, 1 Oct 2013 14:33:09 +0000 (10:33 -0400)]
Add CamelFilterOutputStream.
CamelFilterOutputStream is similar to GConverterOutputStream, except it
operates on a CamelMimeFilter instead of a GConverter.
This class is meant to be a temporary solution until all of Camel's MIME
filters are ported to the GConverter interface.
Matthew Barnes [Tue, 1 Oct 2013 14:19:07 +0000 (10:19 -0400)]
Add CamelFilterInputStream.
CamelFilterInputStream is similar to GConverterInputStream, except it
operates on a CamelMimeFilter instead of a GConverter.
This class is meant to be a temporary solution until all of Camel's MIME
filters are ported to the GConverter interface.
Matthew Barnes [Tue, 1 Oct 2013 15:20:35 +0000 (11:20 -0400)]
Remove unused camel_session_build_password_prompt().
Matthew Barnes [Tue, 1 Oct 2013 15:06:06 +0000 (11:06 -0400)]
Remove unused camel_folder_summary_guess_content_info().
Matthew Barnes [Tue, 1 Oct 2013 15:18:33 +0000 (11:18 -0400)]
Add indices for new symbols in 3.12 to API documentation.
Matthew Barnes [Tue, 1 Oct 2013 15:05:02 +0000 (11:05 -0400)]
Update Camel API documentation.
Matthew Barnes [Mon, 30 Sep 2013 17:22:58 +0000 (13:22 -0400)]
Bug 708730 - CalDAV: Improve handling of invalid access tokens
If e_source_get_oauth2_access_token_sync() fails, rather than dumping
the error message to stderr where users won't see it, stash the GError
within the CalDAV backend to be retrieved when the backend falls back
to caldav_authenticate().
This both returns a descriptive error message to the client application
and prevents an inappropriate password prompt while authenticating with
an access token instead of a password.
Milan Crha [Mon, 30 Sep 2013 12:46:52 +0000 (14:46 +0200)]
Fix some "may be used uninitialized" compiler warnings
Milan Crha [Mon, 30 Sep 2013 11:26:52 +0000 (13:26 +0200)]
Bug #704869 - Make CamelSaslGssapi usable out of Camel
Matthew Barnes [Fri, 27 Sep 2013 16:45:06 +0000 (12:45 -0400)]
Add camel_session_ref_proxy_resolver().
Replaces camel_session_get_socks_proxy().
Returns a GProxyResolver for the given CamelService.
camel_network_connect_sync() now calls this and hands the returned
GProxyResolver off to its GSocketClient just prior to connecting.
Matthew Barnes [Fri, 27 Sep 2013 17:19:46 +0000 (13:19 -0400)]
Remove other GLib 2.35.x checks.
Matthew Barnes [Fri, 27 Sep 2013 16:01:55 +0000 (12:01 -0400)]
Remove all g_type_init() calls.
g_type_init() is deprecated in GLib 2.36.
Matthew Barnes [Fri, 27 Sep 2013 15:51:53 +0000 (11:51 -0400)]
Bump minimum GLib requirement to 2.36.
Needed for g_socket_client_set_proxy_resolver().
Matthew Barnes [Fri, 27 Sep 2013 11:56:52 +0000 (07:56 -0400)]
CamelSession: Simplify trust_prompt() signature.
Let the CamelSession subclass encode the certificate data if it needs to.
That's an Evolution-specific implementation detail Camel doesn't need to
know about. The method signature is now:
CamelCertTrust (*trust_prompt) (CamelSession *session,
CamelService *service,
GTlsCertificate *certificate,
GTlsCertificateFlags errors);
Matthew Barnes [Fri, 27 Sep 2013 01:05:21 +0000 (21:05 -0400)]
Remove unused camel_getnameinfo().
Matthew Barnes [Fri, 27 Sep 2013 00:18:56 +0000 (20:18 -0400)]
Remove unused CamelTcpStream.
Matthew Barnes [Thu, 26 Sep 2013 23:56:49 +0000 (19:56 -0400)]
Remove unused CamelTcpStreamRaw.
Matthew Barnes [Thu, 26 Sep 2013 23:48:54 +0000 (19:48 -0400)]
Remove unused CamelTcpStreamSSL.
Matthew Barnes [Thu, 26 Sep 2013 23:37:38 +0000 (19:37 -0400)]
CamelNetworkService: Transition to GTcpConnection.
camel_network_service_connect_sync() now returns a CamelStream with a
base GTcpConnection instead of a CamelTcpStream. CamelNetworkService
handles peer certificate acceptance during the TLS handshake.
This also adds camel_network_service_starttls() to be called after
issuing a STARTTLS command to a server. This function replaces the
GTcpConnection with a GTlsConnection in the given CamelStream.
Proxy support is temporarily disabled until I can rework a few things.
New functions:
camel_network_service_starttls()
Matthew Barnes [Thu, 26 Sep 2013 20:30:34 +0000 (16:30 -0400)]
Add camel_stream_ref_base_stream().
Replaces camel_stream_get_base_stream().
Now that the base stream is replacable, this needs to be thread-safe.
Matthew Barnes [Thu, 26 Sep 2013 19:35:36 +0000 (15:35 -0400)]
Add camel_stream_set_base_stream().
Replaces the GIOStream passed to camel_stream_new(). The new base
stream should wrap the original base stream, such as when adding
Transport Layer Security after issuing a STARTTLS command.
Matthew Barnes [Wed, 25 Sep 2013 21:13:44 +0000 (17:13 -0400)]
CamelCertDB: Remove unused enum.
Matthew Barnes [Wed, 25 Sep 2013 21:09:28 +0000 (17:09 -0400)]
CamelCert: Change 'rawcert' from GByteArray to GBytes.
More efficient, and nicer when working with GIO streams.
Matthew Barnes [Wed, 25 Sep 2013 13:36:14 +0000 (09:36 -0400)]
CamelStream: Add a "base-stream" property.
CamelStream is no longer an abstract class. It can now act as a thin
GIOStream wrapper by way of camel_stream_new().
This is a step towards elminating CamelStream itself. The plan is to
start removing CamelStream subclasses and using GIO streams directly,
until only CamelStream remains. Then replace CamelStream arguments
with GIOStream/GInputStream/GOutputStream in higher level APIs like
CamelDataWrapper.
Matthew Barnes [Wed, 25 Sep 2013 13:49:04 +0000 (09:49 -0400)]
Remove unused CamelStreamVFSOpenMethod enum.
Matthew Barnes [Wed, 25 Sep 2013 12:28:15 +0000 (08:28 -0400)]
Remove unused CamelStreamVFS.
Piotr Drąg [Tue, 24 Sep 2013 23:36:43 +0000 (01:36 +0200)]
Updated POTFILES.in
Matthew Barnes [Sun, 22 Sep 2013 21:49:05 +0000 (17:49 -0400)]
trust-prompt: Show a GcrCertificateWidget in the dialog.
Replaces the ugly CertificateViewer widget.
Yuri Myasoedov [Tue, 24 Sep 2013 09:13:15 +0000 (13:13 +0400)]
Updated Russian translation
victory [Mon, 23 Sep 2013 20:58:01 +0000 (05:58 +0900)]
l10n: Update Japanese translation
Matthew Barnes [Mon, 23 Sep 2013 15:27:42 +0000 (11:27 -0400)]
Remove camel_store_free_folder_info().
Use camel_folder_info_free() instead.
Matthew Barnes [Mon, 23 Sep 2013 15:10:16 +0000 (11:10 -0400)]
Remove camel_store_free_folder_info_full().
Use camel_folder_info_free() instead.
CamelStore's free_folder_info() method now defaults to an equivalent
implementation, but even that is about to be removed since all known
subclasses set the method to camel_store_free_folder_info_full().
Matthew Barnes [Mon, 23 Sep 2013 14:55:27 +0000 (10:55 -0400)]
Remove unused camel_store_free_folder_info_nop().
Matthew Barnes [Mon, 23 Sep 2013 12:36:59 +0000 (08:36 -0400)]
Remove camel_folder_free_message_info().
Use camel_message_info_unref() instead.
Matthew Barnes [Mon, 23 Sep 2013 12:31:19 +0000 (08:31 -0400)]
Remove camel_folder_ref_message_info().
Use camel_message_info_ref() instead.
Matthew Barnes [Sun, 22 Sep 2013 15:41:50 +0000 (11:41 -0400)]
CamelCertDB: Remove unused cert_set_string() method.
Matthew Barnes [Sun, 22 Sep 2013 15:41:19 +0000 (11:41 -0400)]
CamelCertDB: Remove unused cert_get_string() method.
Matthew Barnes [Sun, 22 Sep 2013 15:28:18 +0000 (11:28 -0400)]
CamelCertDB: Remove unused CamelCert get/set functions.
Matthew Barnes [Sun, 22 Sep 2013 15:26:15 +0000 (11:26 -0400)]
CamelTcpStreamSSL: Just get/set CamelCert members directly.
It's not like using the camel-certdb.h macros are any more thread-safe.
Matthew Barnes [Sun, 22 Sep 2013 16:04:38 +0000 (12:04 -0400)]
CamelTCPStreamSSL: Remove dead code.
Matthew Barnes [Sun, 22 Sep 2013 15:08:15 +0000 (11:08 -0400)]
CamelCertDB: Further cleanups.
Matthew Barnes [Sun, 22 Sep 2013 14:50:30 +0000 (10:50 -0400)]
CamelCertDB: Derive directly from GObject.
CamelObject offers nothing of interest here.
Matthew Barnes [Sun, 22 Sep 2013 14:49:12 +0000 (10:49 -0400)]
Remove unused CamelCertDBFlags.
Matthew Barnes [Sun, 22 Sep 2013 14:47:25 +0000 (10:47 -0400)]
CamelCertDB: Move remaining members to private section.
Matthew Barnes [Sun, 22 Sep 2013 14:30:26 +0000 (10:30 -0400)]
Add camel_cert_unref().
Replaces camel_certdb_cert_unref(); removes the CamelCertDB argument.
Matthew Barnes [Sun, 22 Sep 2013 14:26:10 +0000 (10:26 -0400)]
Add camel_cert_ref().
Replaces camel_certdb_cert_ref(); removes the CamelCertDB argument.
Matthew Barnes [Sun, 22 Sep 2013 14:23:33 +0000 (10:23 -0400)]
Add camel_cert_new().
Replaces camel_certdb_cert_new(); removes the CamelCertDB argument.
Matthew Barnes [Sun, 22 Sep 2013 14:21:46 +0000 (10:21 -0400)]
CamelCertDB: Remove unnecessary 'alloc_lock' mutex.
Matthew Barnes [Sun, 22 Sep 2013 14:18:08 +0000 (10:18 -0400)]
CamelCertDB: Remove ability to subclass CamelCert.
Not utilized; overengineered API.
Matthew Barnes [Sun, 22 Sep 2013 14:08:09 +0000 (10:08 -0400)]
CamelCertDB: Remove unused 'cert_chunks' member.
Checked but never set -- always NULL.
Matthew Barnes [Sun, 22 Sep 2013 14:05:17 +0000 (10:05 -0400)]
CamelCertDB: Remove unused 'ref_lock' mutex.
Matthew Barnes [Sun, 22 Sep 2013 14:04:47 +0000 (10:04 -0400)]
CamelCert: Use atomic operations to track reference count.
Matthew Barnes [Sun, 22 Sep 2013 13:55:33 +0000 (09:55 -0400)]
Remove unused CamelCertDBLock enum.
Matthew Barnes [Sun, 22 Sep 2013 13:54:58 +0000 (09:54 -0400)]
Remove unused camel_certdb_unlock().
Matthew Barnes [Sun, 22 Sep 2013 13:54:16 +0000 (09:54 -0400)]
Remove unused camel_certdb_lock().
Matthew Barnes [Sun, 22 Sep 2013 13:53:13 +0000 (09:53 -0400)]
CamelCertDB: Use the internal mutexes directly.
Matthew Barnes [Sun, 22 Sep 2013 13:36:38 +0000 (09:36 -0400)]
Remove unused CamelFolderLock enum.
Matthew Barnes [Sun, 22 Sep 2013 13:35:48 +0000 (09:35 -0400)]
camel_folder_(un)lock: Remove 'lock' enum argument.
CAMEL_FOLDER_REC_LOCK is the only option.
Matthew Barnes [Sun, 22 Sep 2013 13:31:31 +0000 (09:31 -0400)]
Remove unused CAMEL_FOLDER_CHANGE_LOCK.
Matthew Barnes [Sun, 22 Sep 2013 13:30:40 +0000 (09:30 -0400)]
CamelFolder: Use the internal 'change_lock' mutex directly.
Matthew Barnes [Sun, 22 Sep 2013 13:17:17 +0000 (09:17 -0400)]
Remove unused CamelVeeFolderLock enum.
Matthew Barnes [Sun, 22 Sep 2013 13:16:41 +0000 (09:16 -0400)]
Remove unused camel_vee_folder_unlock().
Matthew Barnes [Sun, 22 Sep 2013 13:16:14 +0000 (09:16 -0400)]
Remove unused camel_vee_folder_lock().
Matthew Barnes [Sun, 22 Sep 2013 13:48:37 +0000 (09:48 -0400)]
CamelVeeFolder: Remove unused 'summary_lock' mutex.
Matthew Barnes [Sun, 22 Sep 2013 13:15:29 +0000 (09:15 -0400)]
CamelVeeFolder: Use the internal mutexes directly.
Matthew Barnes [Sun, 22 Sep 2013 13:04:08 +0000 (09:04 -0400)]
Remove unused CamelTransportLock enum.
Matthew Barnes [Sun, 22 Sep 2013 13:03:33 +0000 (09:03 -0400)]
Remove unused camel_transport_unlock().
Matthew Barnes [Sun, 22 Sep 2013 13:02:55 +0000 (09:02 -0400)]
Remove unused camel_transport_lock().
Matthew Barnes [Sun, 22 Sep 2013 13:01:50 +0000 (09:01 -0400)]
CamelTransport: Use the internal 'send_lock' mutex directly.
Matthew Barnes [Sun, 22 Sep 2013 12:58:59 +0000 (08:58 -0400)]
Remove unused CamelStoreLock enum.
Matthew Barnes [Sun, 22 Sep 2013 12:54:12 +0000 (08:54 -0400)]
camel_store_(un)lock: Remove 'lock' enum argument.
CAMEL_STORE_FOLDER_LOCK is the only option.
Matthew Barnes [Sun, 22 Sep 2013 11:59:44 +0000 (07:59 -0400)]
Remove unused CamelDataWrapperLock enum.
Matthew Barnes [Sun, 22 Sep 2013 11:59:13 +0000 (07:59 -0400)]
Remove unused camel_data_wrapper_unlock().
Matthew Barnes [Sun, 22 Sep 2013 11:58:41 +0000 (07:58 -0400)]
Remove unused camel_data_wrapper_lock().
Matthew Barnes [Sun, 22 Sep 2013 11:57:21 +0000 (07:57 -0400)]
CamelDataWrapper: Use the internal 'stream_lock' mutex directly.
Matthew Barnes [Sun, 22 Sep 2013 11:54:36 +0000 (07:54 -0400)]
Remove unused CamelFolderSummaryLock enum.
Matthew Barnes [Sun, 22 Sep 2013 11:39:59 +0000 (07:39 -0400)]
camel_folder_summary_(un)lock: Remove 'lock' enum argument.
CAMEL_FOLDER_SUMMARY_SUMMARY_LOCK is the only remaining option.
Matthew Barnes [Mon, 16 Sep 2013 15:11:47 +0000 (11:11 -0400)]
Add camel_message_info_unref().
Replaces camel_message_info_free().
CamelMessageInfo is reference-counted, so naming the unreferencing
function "free" is very misleading.
Matthew Barnes [Mon, 16 Sep 2013 14:46:26 +0000 (10:46 -0400)]
Remove CAMEL_FOLDER_SUMMARY_ALLOC_LOCK.
We use GLib's slab allocator, no additional locking required.
Matthew Barnes [Mon, 16 Sep 2013 14:38:36 +0000 (10:38 -0400)]
Remove CAMEL_FOLDER_SUMMARY_FILTER_LOCK.
This is a private mutex, don't expose it in the public API.
Matthew Barnes [Mon, 16 Sep 2013 14:33:51 +0000 (10:33 -0400)]
Remove CAMEL_FOLDER_SUMMARY_IO_LOCK.
Not even the private 'io_lock' mutex was used.
Matthew Barnes [Mon, 16 Sep 2013 14:26:04 +0000 (10:26 -0400)]
Remove CAMEL_FOLDER_SUMMARY_REF_LOCK.
No longer used, reference counting operations are now atomic.
Matthew Barnes [Mon, 16 Sep 2013 14:24:44 +0000 (10:24 -0400)]
CamelMessageInfo: Use atomic operations to track reference count.
Matthew Barnes [Thu, 19 Sep 2013 20:02:37 +0000 (16:02 -0400)]
Remove camel_folder_summary_add_from_message().
Trivial function, not worth the API bloat. Do this instead:
info = camel_folder_summary_info_new_from_message (summary, message, NULL);
camel_folder_summary_add (summary, info);
Matthew Barnes [Thu, 19 Sep 2013 19:50:34 +0000 (15:50 -0400)]
Remove camel_folder_summary_add_from_parser().
Trivial function, not worth the API bloat. Do this instead:
info = camel_folder_summary_info_new_from_parser (summary, parser);
camel_folder_summary_add (summary, info);
Matthew Barnes [Thu, 19 Sep 2013 19:35:15 +0000 (15:35 -0400)]
Remove camel_folder_summary_add_from_header().
Trivial function, not worth the API bloat. Do this instead:
info = camel_folder_summary_info_new_from_header (summary, headers);
camel_folder_summary_add (summary, info);
Matthew Barnes [Thu, 19 Sep 2013 14:51:09 +0000 (10:51 -0400)]
CamelFolderSummary: Remove unused migration gunk.
Matthew Barnes [Mon, 16 Sep 2013 14:14:02 +0000 (10:14 -0400)]
CamelFolderSummary cleanups.
Matthew Barnes [Mon, 16 Sep 2013 16:17:58 +0000 (12:17 -0400)]
CamelStoreSummary: Move 'store_info_size' to class struct.
Allocation size varies by CamelStoreSummary subclass, not by instance.
Matthew Barnes [Thu, 19 Sep 2013 00:05:55 +0000 (20:05 -0400)]
CamelVeeMessageInfo: Remove unused 'old_flags' member.
Set in various places but never used.