platform/upstream/evolution-data-server.git
13 years agoBug 661033 — Add support for E_CONTACT_FILE_AS field
Philip Withnall [Thu, 27 Oct 2011 13:02:20 +0000 (14:02 +0100)]
Bug 661033 — Add support for E_CONTACT_FILE_AS field

Add support for E_CONTACT_FILE_AS to the Google Contacts address book backend
if libgdata ≥ 0.11.0 is available. This doesn't bump EDS’ required libgdata
version.

Closes: bgo#661033

13 years agoUpdate API docs.
Matthew Barnes [Mon, 14 Nov 2011 21:15:34 +0000 (16:15 -0500)]
Update API docs.

13 years agoAdded test case to test the new backend revision property
Tristan Van Berkom [Fri, 22 Jul 2011 23:59:12 +0000 (19:59 -0400)]
Added test case to test the new backend revision property

Added a tests/libebook/client/test-client-get-revision.c to test
that the local backend supports revisions and the revisions indeed
change after modifying the addressbook in any way.

13 years agoBug #652175 - Add revision property to addressbook backend
Tristan Van Berkom [Fri, 11 Nov 2011 02:24:34 +0000 (21:24 -0500)]
Bug #652175 - Add revision property to addressbook backend

This patch adds the "revision" property definition in e-book-client.h,
e-book-backend.h and e-client.h as well as an implementation of the
revision property in the local file backend.

13 years agoUpdated Galician translations
Fran Diéguez [Sun, 13 Nov 2011 17:57:42 +0000 (18:57 +0100)]
Updated Galician translations

13 years agoRemove camel_folder_summary_decode_token().
Matthew Barnes [Sun, 13 Nov 2011 05:36:46 +0000 (00:36 -0500)]
Remove camel_folder_summary_decode_token().

No longer needed.

13 years agoRemove camel_folder_summary_encode_token().
Matthew Barnes [Sun, 13 Nov 2011 05:29:12 +0000 (00:29 -0500)]
Remove camel_folder_summary_encode_token().

No longer needed.

13 years agoRemove camel_folder_summary_set_filename().
Matthew Barnes [Sun, 13 Nov 2011 04:01:33 +0000 (23:01 -0500)]
Remove camel_folder_summary_set_filename().

No longer needed.

13 years agoRemove CamelFolderSummaryClass.summary_header_save().
Matthew Barnes [Sun, 13 Nov 2011 03:46:16 +0000 (22:46 -0500)]
Remove CamelFolderSummaryClass.summary_header_save().

No longer needed.

13 years agoRemove CamelFolderSummaryClass.summary_header_load().
Matthew Barnes [Sun, 13 Nov 2011 03:41:56 +0000 (22:41 -0500)]
Remove CamelFolderSummaryClass.summary_header_load().

No longer needed.

13 years agoRemove CamelFolderSummaryClass.content_info_migrate().
Matthew Barnes [Sun, 13 Nov 2011 03:31:09 +0000 (22:31 -0500)]
Remove CamelFolderSummaryClass.content_info_migrate().

No longer needed.

13 years agoRemove CamelFolderSummaryClass.message_info_migrate().
Matthew Barnes [Sun, 13 Nov 2011 03:27:55 +0000 (22:27 -0500)]
Remove CamelFolderSummaryClass.message_info_migrate().

No longer needed.

13 years agoRemove camel_folder_summary_migrate_infos().
Matthew Barnes [Sun, 13 Nov 2011 03:22:17 +0000 (22:22 -0500)]
Remove camel_folder_summary_migrate_infos().

No longer needed.

13 years agoRemove camel_db_migrate_vfolders_to_14().
Matthew Barnes [Sun, 13 Nov 2011 03:14:46 +0000 (22:14 -0500)]
Remove camel_db_migrate_vfolders_to_14().

No longer needed.

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Sat, 12 Nov 2011 11:03:14 +0000 (12:03 +0100)]
Updated Norwegian bokmål translation

13 years agoBug 660974 - sqlite backend: use INSERT OR IGNORE in add_folder_into_db()
Christophe Dumez [Wed, 5 Oct 2011 10:48:50 +0000 (13:48 +0300)]
Bug 660974 - sqlite backend: use INSERT OR IGNORE in add_folder_into_db()

Use "INSERT OR IGNORE" SQL request instead of having two steps
(existence check + insert). This simplifies the code and is
probably more efficient.

13 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 11 Nov 2011 17:16:42 +0000 (18:16 +0100)]
Updated Spanish translation

13 years agoBug #660972 - Unable to publish free/busy information
Milan Crha [Fri, 11 Nov 2011 14:42:39 +0000 (15:42 +0100)]
Bug #660972 - Unable to publish free/busy information

13 years agoBug #660646 - »IDLE« should not be translated in settings dialog
Milan Crha [Fri, 11 Nov 2011 11:03:57 +0000 (12:03 +0100)]
Bug #660646 - »IDLE« should not be translated in settings dialog

13 years agoBug #662473 - Moving mails between local folders removes labels
Milan Crha [Fri, 11 Nov 2011 09:30:09 +0000 (10:30 +0100)]
Bug #662473 - Moving mails between local folders removes labels

13 years agoBug #659736 - Do not report change on property set when not changed
Milan Crha [Thu, 10 Nov 2011 16:31:23 +0000 (17:31 +0100)]
Bug #659736 - Do not report change on property set when not changed

13 years agoBug #662929 - POP3 prevents expunge of local Inbox in offline
Milan Crha [Wed, 9 Nov 2011 14:24:29 +0000 (15:24 +0100)]
Bug #662929 - POP3 prevents expunge of local Inbox in offline

13 years agoBug 663219 Crash in imapx_completion at camel-imapx-server.c:2037
Chenthill Palanisamy [Wed, 9 Nov 2011 07:45:23 +0000 (13:15 +0530)]
Bug 663219 Crash in imapx_completion at camel-imapx-server.c:2037

13 years agoAdded test-client-suppress-notifications.c test
Tristan Van Berkom [Sat, 25 Jun 2011 01:50:14 +0000 (21:50 -0400)]
Added test-client-suppress-notifications.c test

Added a test that asserts e_book_client_view_set_flags() apis are
working and that the backend bahaves properly when the default
E_BOOK_CLIENT_VIEW_NOTIFY_INITIAL flag is unset.

13 years agoBug #652171 Added e_book_client_view_set_flags()
Tristan Van Berkom [Fri, 24 Jun 2011 22:25:24 +0000 (18:25 -0400)]
Bug #652171 Added e_book_client_view_set_flags()

This commit adds a EBookClientViewFlags to EBookClientView with
an initial flag value E_BOOK_CLIENT_VIEW_FLAGS_NOTIFY_INITIAL
to control whether the initial contact notifications are sent.
The default is to send notifications, if the flag is unset then
only future notifications are issued.

13 years agoKill gtk-doc tmpl files.
Matthew Barnes [Mon, 7 Nov 2011 15:58:33 +0000 (10:58 -0500)]
Kill gtk-doc tmpl files.

Bump our gtk-doc requirement to 1.14 and use --flavour no-tmpl.

13 years agoIntroduce e_gdbus_templates_init_main_thread()
Milan Crha [Mon, 7 Nov 2011 09:23:07 +0000 (10:23 +0100)]
Introduce e_gdbus_templates_init_main_thread()

This is required to properly distinguish between EGDbusTemplates'
sync calls from the main thread and from a dedicated thread, because
the check with g_main_context_is_owner (g_main_context_default ())
doesn't work when there is no main loop running. The call to
e_gdbus_templates_init_main_thread() is good to do, but it is not
mandatory.

13 years agoAdd camel_operation_cancel_all().
Matthew Barnes [Sat, 5 Nov 2011 05:00:46 +0000 (01:00 -0400)]
Add camel_operation_cancel_all().

Replaces camel_operation_cancel(NULL).

For non-NULL cases, use g_cancellable_cancel() instead.

13 years agoRemove camel_operation_uncancel().
Matthew Barnes [Sat, 5 Nov 2011 04:42:35 +0000 (00:42 -0400)]
Remove camel_operation_uncancel().

Use g_cancellable_reset() instead.

13 years agoRemove camel_operation_cancel_check().
Matthew Barnes [Sat, 5 Nov 2011 04:36:17 +0000 (00:36 -0400)]
Remove camel_operation_cancel_check().

Use g_cancellable_is_cancelled() instead.

13 years agoRemove camel_operation_cancel_fd().
Matthew Barnes [Sat, 5 Nov 2011 04:22:33 +0000 (00:22 -0400)]
Remove camel_operation_cancel_fd().

Use g_cancellable_get_fd() instead.

13 years agoRemove camel_operation_cancel_prfd().
Matthew Barnes [Fri, 4 Nov 2011 22:49:11 +0000 (18:49 -0400)]
Remove camel_operation_cancel_prfd().

No longer needed by anything.  Also allowed me to remove all the
CamelMsgPort muck in CamelOperation, which simplifies things nicely.

13 years agoUse the same technique in imapx_parser_thread().
Matthew Barnes [Fri, 4 Nov 2011 22:12:28 +0000 (18:12 -0400)]
Use the same technique in imapx_parser_thread().

Call PR_Interrupt() from a GCancellable::cancelled signal handler to
cancel the blocking PR_Poll() call in imapx_parser_thread().

13 years agoCamelTcpStreamRaw: Use PR_Interrupt() to cancel blocked I/O.
Matthew Barnes [Fri, 4 Nov 2011 21:47:53 +0000 (17:47 -0400)]
CamelTcpStreamRaw: Use PR_Interrupt() to cancel blocked I/O.

Call PR_Interrupt() from a GCancellable::cancelled signal handler to
cancel blocking PR_Connect(), PR_Read() and PR_Write() calls.

Way easier and more responsive than using camel_operation_cancel_prfd().

13 years agocamel_settings_load_from_url(): Forgot to handle "auth-mechanism".
Matthew Barnes [Fri, 4 Nov 2011 17:16:00 +0000 (13:16 -0400)]
camel_settings_load_from_url(): Forgot to handle "auth-mechanism".

13 years agocamel_settings_save_to_url(): Forgot to handle "auth-mechanism".
Matthew Barnes [Fri, 4 Nov 2011 17:15:12 +0000 (13:15 -0400)]
camel_settings_save_to_url(): Forgot to handle "auth-mechanism".

13 years agoCamelNetworkSettings: host and user should never be NULL.
Matthew Barnes [Fri, 4 Nov 2011 16:11:17 +0000 (12:11 -0400)]
CamelNetworkSettings: host and user should never be NULL.

Otherwise it creates nuisance runtime warnings when binding the
properties to widgets like GtkEntry.

13 years agoUpdated Galician translations
Fran Diéguez [Fri, 4 Nov 2011 12:29:35 +0000 (13:29 +0100)]
Updated Galician translations

13 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 2 Nov 2011 12:54:17 +0000 (13:54 +0100)]
Updated Spanish translation

13 years agoBug #655167 - Messages moved from IMAP Inbox reappear
Michel Dänzer [Wed, 2 Nov 2011 07:35:56 +0000 (08:35 +0100)]
Bug #655167 - Messages moved from IMAP Inbox reappear

13 years agoAdded test case showing photo data stored as uris.
Tristan Van Berkom [Sat, 23 Jul 2011 00:06:38 +0000 (20:06 -0400)]
Added test case showing photo data stored as uris.

The test asserts:
  o binary inlined photos added to the EBook come out
    as uris in the EBookView signals
  o that it is still possible to use an external uri that the
    addressbook does not recognize at which point the addressbook
    is simply expected to store the provided URI string without
    any extra management (the test does this, however it only
    asserts that a uri is indeed returned).
  o When sharing an addressbook owned uri fetched from one contact
    and assigning it to the next contact, the second contact's uri
    is still accessible on disk after deleting the first contact.

13 years agoMake local addressbook backend store image data as URIs.
Tristan Van Berkom [Sat, 23 Jul 2011 00:05:21 +0000 (20:05 -0400)]
Make local addressbook backend store image data as URIs.

Whenever the local address book receives a uri as a binary
blob it proceeds to transform it to a uri accessbile on
the system somewhere under $XDG_DATA_HOME. The local backend
cleans up old photo uris when contacts are removed or modified
to use new photos.

Additionally, whenever it is detected that the user is
cross-referencing a uri which belongs to another contact,
a hard-link will be created to the addressbook owned file
on disk and a new uri will be assigned to any additional
contacts which try to share a uri owned by the addressbook.

13 years agoBug #663062 - Missing attachment icon on a message with it
Milan Crha [Tue, 1 Nov 2011 11:33:26 +0000 (12:33 +0100)]
Bug #663062 - Missing attachment icon on a message with it

13 years agoAvoid possible crash when url->path is NULL
Milan Crha [Tue, 1 Nov 2011 09:58:05 +0000 (10:58 +0100)]
Avoid possible crash when url->path is NULL

13 years agoAdd a comment explaining CamelStore's mode field.
Matthew Barnes [Sat, 29 Oct 2011 15:16:03 +0000 (11:16 -0400)]
Add a comment explaining CamelStore's mode field.

I was about to get rid of this field thinking it was unused, but as
usual it's a GroupWise-specific hack for non-writable proxy accounts.
Add a comment to the header file for future reference.

13 years agoRemove g_thread_init() calls.
Matthew Barnes [Wed, 26 Oct 2011 19:33:19 +0000 (15:33 -0400)]
Remove g_thread_init() calls.

g_type_init() already calls it, and has for several GLib releases.

13 years agoIMAP: Split off a new mutex for commands and responses.
Matthew Barnes [Tue, 25 Oct 2011 21:19:39 +0000 (17:19 -0400)]
IMAP: Split off a new mutex for commands and responses.

Define a new public GStaticRecMutex named "command_and_response_lock"
on CamelImapStore for IMAP command and response operations to use.

Fixes some deadlocks I was encountering due to the overreliance on
CAMEL_SERVICE_REC_CONNECT_LOCK, particularly during authentication.

13 years agocamel_imap_store_connected() cleanup.
Matthew Barnes [Tue, 25 Oct 2011 18:55:39 +0000 (14:55 -0400)]
camel_imap_store_connected() cleanup.

If camel_service_connect_sync() set a GError, don't overwrite it with a
generic "you must be working online" message.  The connect_sync() error
message has useful information to help identify the real problem.

13 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 25 Oct 2011 18:58:58 +0000 (20:58 +0200)]
Updated Slovenian translation

13 years agoBug 662524 - POP3: Use a safer default value for "delete-after-days"
Matthew Barnes [Tue, 25 Oct 2011 15:08:10 +0000 (11:08 -0400)]
Bug 662524 - POP3: Use a safer default value for "delete-after-days"

Default to not deleting mail kept on the POP3 server at all rather than
automatically deleting after X days.  Helps avoid accidental data loss.

13 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 25 Oct 2011 08:45:20 +0000 (10:45 +0200)]
Updated Spanish translation

13 years agoBug #660182 - Error dialog on LDAP query with multiple referrals
Milan Crha [Tue, 25 Oct 2011 07:58:25 +0000 (09:58 +0200)]
Bug #660182 - Error dialog on LDAP query with multiple referrals

13 years agoBug 662643 - camel_url_decode_path() crashes on empty string
Matthew Barnes [Mon, 24 Oct 2011 21:51:10 +0000 (17:51 -0400)]
Bug 662643 - camel_url_decode_path() crashes on empty string

13 years agoMove remaining CamelURL elements to CamelSettings.
Matthew Barnes [Thu, 20 Oct 2011 21:24:04 +0000 (17:24 -0400)]
Move remaining CamelURL elements to CamelSettings.

This is a continuation of the CamelSettings work I started in 3.1.

CamelService no longer stores a CamelURL.  The URL components are being
moved to CamelSettings.

For network services, the host, port, user and authentication mechanism
URL components now live in CamelNetworkSettings.

For local services, the path URL component (aka, the file path to the
root of the local mail store) now lives in CamelLocalSettings.

For now these new settings are configured the same as other settings:
through camel_settings_load_from_url().  But again, that function will
be dropped as soon as we move to key files for account data storage.

Also:

- Remove camel_service_get_url(), which is no longer used.

- camel_session_add_service() now takes a protocol name instead of a
  URL string.  The protocol name must match a registered CamelProvider.

- camel_service_get_camel_url() is renamed camel_service_new_camel_url().
  It now returns a new CamelURL which must be freed with camel_url_free().
  The returned CamelURL is built from user, host, port and path settings,
  and does not have any parameters.  You MUST access settings through
  CamelSettings now.

- CamelServices need to be prepared for CamelSettings values changing or
  even the entire CamelSettings object being replaced at any time.  Most
  services were already prepared, but I caught a few services caching
  settings during initialization.  Always consult CamelSettings when a
  setting value is needed so the service is acting on a fresh value.

- Camel's SONAME is hereby bumped (yet again) for 3.3.2.

13 years agoCall g_thread_init() conditionally
Milan Crha [Mon, 24 Oct 2011 07:42:17 +0000 (09:42 +0200)]
Call g_thread_init() conditionally

13 years agoPost-release version bump.
Matthew Barnes [Sun, 23 Oct 2011 02:06:12 +0000 (22:06 -0400)]
Post-release version bump.

13 years agoNEWS update for 3.3.1 release.
Matthew Barnes [Sun, 23 Oct 2011 01:17:36 +0000 (21:17 -0400)]
NEWS update for 3.3.1 release.

13 years agoAvoid a crash in camel_session_get_service_by_url().
Matthew Barnes [Sat, 22 Oct 2011 01:45:02 +0000 (21:45 -0400)]
Avoid a crash in camel_session_get_service_by_url().

Check that we found a CamelProvider before dereferencing it.

13 years agoAdd camel_folder_refresh_info()/_finish().
Matthew Barnes [Sat, 22 Oct 2011 00:47:44 +0000 (20:47 -0400)]
Add camel_folder_refresh_info()/_finish().

I forget to write wrapper functions for CamelFolderClass.refresh_info()
and CamelFolderClass.refresh_info_finish() even though the class methods
have been there for awhile.

Thanks to Srini for pointing this out.

13 years agoUpdated Slovenian translation
Matej Urbančič [Fri, 21 Oct 2011 19:22:00 +0000 (21:22 +0200)]
Updated Slovenian translation

13 years agoAdded test to show that fields-of-interest is working in libecal
Tristan Van Berkom [Thu, 18 Aug 2011 17:41:43 +0000 (19:41 +0200)]
Added test to show that fields-of-interest is working in libecal

Test is based on test-client-get-view.c, this version of the test
sets fields-of-interest to UID, RECURRENCE-ID and LAST-MODIFIED
fields, tests that all those fields are returned and asserts that
the event summary (which is indeed set) is always NULL.

13 years agoUpdated Polish translation
Piotr Drąg [Fri, 21 Oct 2011 15:44:21 +0000 (17:44 +0200)]
Updated Polish translation

13 years agoUpdated Polish translation
Piotr Drąg [Fri, 21 Oct 2011 15:40:26 +0000 (17:40 +0200)]
Updated Polish translation

13 years agoUpdated Polish translation
Piotr Drąg [Fri, 21 Oct 2011 15:38:43 +0000 (17:38 +0200)]
Updated Polish translation

13 years agoBug #660870 - Empty Contacts list when pressing "To:" in composer
Milan Crha [Fri, 21 Oct 2011 13:45:11 +0000 (15:45 +0200)]
Bug #660870 - Empty Contacts list when pressing "To:" in composer

13 years agoRevert "Remove of -Werror-deprecated-function-declaration", it doesn't work
Kjartan Maraas [Fri, 21 Oct 2011 09:02:52 +0000 (11:02 +0200)]
Revert "Remove of -Werror-deprecated-function-declaration", it doesn't work

13 years agoBug #660656 - Fix e_iterator_get annotation
Alban Browaeys [Fri, 21 Oct 2011 07:40:16 +0000 (09:40 +0200)]
Bug #660656 - Fix e_iterator_get annotation

13 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Thu, 20 Oct 2011 19:24:04 +0000 (22:24 +0300)]
Updated Belarusian translation.

13 years agoRemove -Werror-deprecated-function-declaration to make it build for the 3.4 moduleset
Kjartan Maraas [Thu, 20 Oct 2011 19:01:37 +0000 (21:01 +0200)]
Remove -Werror-deprecated-function-declaration to make it build for the 3.4 moduleset

13 years agoBug #527614 - Valgrind shows a nice amount of lost memory
Milan Crha [Thu, 20 Oct 2011 07:01:55 +0000 (09:01 +0200)]
Bug #527614 - Valgrind shows a nice amount of lost memory

13 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 19 Oct 2011 14:40:07 +0000 (16:40 +0200)]
Updated Spanish translation

13 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 19 Oct 2011 14:38:06 +0000 (16:38 +0200)]
Updated Spanish translation

13 years agoFix compiler warnings from GOA code in book factory
Milan Crha [Wed, 19 Oct 2011 11:56:28 +0000 (13:56 +0200)]
Fix compiler warnings from GOA code in book factory

13 years agoReally implement e_cal_client_view_set_fields_of_interest().
Tristan Van Berkom [Sat, 15 Oct 2011 15:34:32 +0000 (11:34 -0400)]
Really implement e_cal_client_view_set_fields_of_interest().

As discussed on bug https://bugzilla.gnome.org/show_bug.cgi?id=652180,
this patch adds many '_component' variants to functions that are named
with '_object', all the '_component' variants take an 'icalcomponent *'
instead of an ical string.

The magic filtering happens in e_data_cal_view_get_component_string()
which creates an ical string representation while omitting properties
that are not mentioned in the fields of interest.

13 years ago[l10n] Updated German translation
Mario Blättermann [Tue, 18 Oct 2011 20:16:19 +0000 (22:16 +0200)]
[l10n] Updated German translation

13 years ago[l10n] Updated German translation
Mario Blättermann [Tue, 18 Oct 2011 20:15:33 +0000 (22:15 +0200)]
[l10n] Updated German translation

13 years agoAvoid possible deadlock with CamelStoreSummary locks
Milan Crha [Tue, 18 Oct 2011 18:12:29 +0000 (20:12 +0200)]
Avoid possible deadlock with CamelStoreSummary locks

Recently added store_summary_sync_folder_summary_count_cb() could
cause deadlock when locking SUMMARY_LOCK first, and then calling
functions which lock REF_LOCK before SUMMARY_LOCK. Locking REF_LOCK
first avoids this.

13 years agoBug #661549 - Avoid fetching from backend when calculating summary
Milan Crha [Tue, 18 Oct 2011 11:07:54 +0000 (13:07 +0200)]
Bug #661549 - Avoid fetching from backend when calculating summary

13 years agoBug #656603 - Add support for generating vCard 2.1 in libebook
Bartosz Szatkowski [Tue, 18 Oct 2011 10:29:07 +0000 (12:29 +0200)]
Bug #656603 - Add support for generating vCard 2.1 in libebook

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Tue, 18 Oct 2011 05:43:30 +0000 (07:43 +0200)]
Updated Norwegian bokmål translation

13 years agoUpdated Galician translations
Fran Diéguez [Mon, 17 Oct 2011 22:13:13 +0000 (00:13 +0200)]
Updated Galician translations

13 years agoUpdated Japanese translation
OKANO Takayoshi [Mon, 17 Oct 2011 16:43:35 +0000 (01:43 +0900)]
Updated Japanese translation

13 years agol10n: updated Italian translation
Luca Ferretti [Mon, 17 Oct 2011 08:06:41 +0000 (10:06 +0200)]
l10n: updated Italian translation

13 years agoUpdate libedata-book API docs.
Matthew Barnes [Sun, 16 Oct 2011 21:26:52 +0000 (17:26 -0400)]
Update libedata-book API docs.

13 years agoUpdate libebook API docs.
Matthew Barnes [Sun, 16 Oct 2011 21:22:20 +0000 (17:22 -0400)]
Update libebook API docs.

13 years agoUpdate libedata-cal API docs.
Matthew Barnes [Sun, 16 Oct 2011 21:15:58 +0000 (17:15 -0400)]
Update libedata-cal API docs.

13 years agoUpdate libedataserver API docs.
Matthew Barnes [Sun, 16 Oct 2011 21:13:10 +0000 (17:13 -0400)]
Update libedataserver API docs.

13 years agoUpdate Camel API docs.
Matthew Barnes [Sun, 16 Oct 2011 21:02:38 +0000 (17:02 -0400)]
Update Camel API docs.

13 years agoUpdated Korean translation
Changwoo Ryu [Sun, 16 Oct 2011 18:08:33 +0000 (03:08 +0900)]
Updated Korean translation

13 years agoUpdated British English translation
Bruce Cowan [Sun, 16 Oct 2011 13:42:13 +0000 (14:42 +0100)]
Updated British English translation

13 years agosmtp: Adapt to Camel's new authentication API.
Matthew Barnes [Sat, 15 Oct 2011 13:51:35 +0000 (09:51 -0400)]
smtp: Adapt to Camel's new authentication API.

13 years agopop3: Adapt to Camel's new authentication API.
Matthew Barnes [Sat, 15 Oct 2011 13:51:22 +0000 (09:51 -0400)]
pop3: Adapt to Camel's new authentication API.

13 years agonntp: Adapt to Camel's new authentication API.
Matthew Barnes [Sat, 15 Oct 2011 13:51:05 +0000 (09:51 -0400)]
nntp: Adapt to Camel's new authentication API.

13 years agoimapx: Adapt to Camel's new authentication API.
Matthew Barnes [Sat, 15 Oct 2011 13:50:52 +0000 (09:50 -0400)]
imapx: Adapt to Camel's new authentication API.

13 years agoimap: Adapt to Camel's new authentication API.
Matthew Barnes [Sat, 15 Oct 2011 13:50:06 +0000 (09:50 -0400)]
imap: Adapt to Camel's new authentication API.

13 years agoCamel: New authentication API.
Matthew Barnes [Sat, 15 Oct 2011 13:35:43 +0000 (09:35 -0400)]
Camel: New authentication API.

Currently each provider has to implement its own authentication loop.

The idea for these changes is add a CamelSession method that executes
a common authentication loop for all providers:

    CamelSessionClass:

    gboolean  (*authenticate_sync)   (CamelSession *session,
                                      CamelService *service,
                                      const gchar *mechanism,
                                      GCancellable *cancellable,
                                      GError **error);

    void      (*authenticate)        (CamelSession *session,
                                      CamelService *service,
                                      const gchar *mechanism,
                                      gint io_priority,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data);

    gboolean  (*authenticate_finish) (CamelSession *session,
                                      GAsyncResult *result,
                                      GError **error);

Each CamelService is then responsible for implementing a new
authenticate method that makes only ONE authentication attempt and
returns an appropriate status code:

    CamelServiceClass:

    CamelAuthenticationResult
              (*authenticate_sync)   (CamelService *service,
                                      const gchar *mechanism,
                                      GCancellable *cancellable,
                                      GError **error);

    void      (*authenticate)        (CamelService *service,
                                      const gchar *mechanism,
                                      gint io_priority,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data);

    CamelAuthenticationResult
              (*authenticate_finish) (CamelService *service,
                                      GAsyncResult *result,
                                      GError **error);

The status codes are defined by the CamelAuthenticationResult enum:

    CAMEL_AUTHENTICATION_SUCCESS    : auth credentials were accepted
    CAMEL_AUTHENTICATION_FAILURE    : auth credentials were rejected
    CAMEL_AUTHENTICATION_ERROR      : something went horribly wrong!

CAMEL_AUTHENTICATION_SUCCESS and CAMEL_AUTHENTICATION_ERROR both
terminate the authentication loop, but CAMEL_AUTHENTICATION_FAILURE
cycles the loop and asks the CamelService to retry authentication,
usually after prompting the user to enter a different password.

13 years agoUpdaged Galician translations
Fran Dieguez [Sat, 15 Oct 2011 14:36:25 +0000 (16:36 +0200)]
Updaged Galician translations

13 years agoRequire libgdata >= 0.10.
Matthew Barnes [Thu, 13 Oct 2011 01:09:05 +0000 (21:09 -0400)]
Require libgdata >= 0.10.

Drop all the backward-compatibility cruft.

13 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 12 Oct 2011 15:28:32 +0000 (17:28 +0200)]
Updated Spanish translation

13 years agoBug #661448 - e_util_copy_*_slist(): Avoid using append function
Christophe Dumez [Tue, 11 Oct 2011 11:02:57 +0000 (14:02 +0300)]
Bug #661448 - e_util_copy_*_slist(): Avoid using append function

The current implementation calls g_slist_append() for each element
of the list to copy. However, g_slist_append() is expensive
because it iterate over the whole destination list.

This patch alters the behavior to first make a deep copy of the
list and then concatenate the destination list and the list copy.
The concatenation only iterates of the destination list once.