platform/upstream/evolution-data-server.git
11 years agotest-server-utils: Don't rely on command line parsing for "rm -rf"
Mathias Hasselmann [Wed, 19 Dec 2012 00:41:59 +0000 (01:41 +0100)]
test-server-utils: Don't rely on command line parsing for "rm -rf"

Let's be nice to people with spaces in their path names.

11 years agoIMAPX: Support non-virtual Junk/Trash folders.
Matthew Barnes [Mon, 17 Dec 2012 16:14:44 +0000 (11:14 -0500)]
IMAPX: Support non-virtual Junk/Trash folders.

Some webmail clients designate specific IMAP folders as Junk and Trash,
such that when a message is deleted or determined to be spam, a copy of
the message is appended to the designated folder, the original message
is flagged as DELETED and the folder containing the original message is
immediately expunged.

This is significantly more expensive than simply flagging the message as
DELETED or JUNK.  But users that access their mail by both Evolution and
webmail frequently complain of seeing what appear to be duplicate Junk
and Trash folders in Evolution [1].

This commit allows IMAPX stores to be configured to mimic these webmail
clients and hide their Junk and Trash virtual folders.  IMAPX will mimic
the "copy-and-expunge" webmail client behavior each time it's commanded
to synchronize message flags with the server.

[1] So much so that it earned its own page in the user manual:
http://library.gnome.org/users/evolution/stable/mail-two-trash-folders.html.en

11 years agolibecal: Move EDataCalCallStatus back to libedata-cal.
Matthew Barnes [Sun, 16 Dec 2012 16:43:01 +0000 (11:43 -0500)]
libecal: Move EDataCalCallStatus back to libedata-cal.

I'm encountering a build break in Evolution on an older environment.

It goes something like this...

   /* In X11/X.h */
   #define Success 0

   /* In libecal/e-cal-types.h */
   typedef enum { Success, ... } EDataCalCallStatus;

After pre-processing, the compiler gets

   typedef enum { 0, ... } EDataCalCallStatus;

which of course is a syntax error.

It's our own fault for violating our own namespace.  The enum definition
was moved from libedata-cal to libecal fairly recently (by me) to resolve
a circular dependency, but it appears libecal does not really require the
enum values.  Move the typedef back to libedata-cal as a quick Band-Aid.

The EDataCalCallStatus enum is redundant anyway and I plan to remove it.
Equivalent error values are provided by EClientError and ECalClientError,
and calendar backends should be using them directly.  There's no need for
separate but equal client and server-side error value definitions.

This is technically an API break, but I'm not going to bump the libecal
soname over this.  The enum definition is clearly intended for backends,
and because it was moved to libecal only recently, I'm fairly certain no
client applications are using it.

11 years agoCamelIMAPXFolder cleanups.
Matthew Barnes [Tue, 18 Dec 2012 12:42:52 +0000 (07:42 -0500)]
CamelIMAPXFolder cleanups.

11 years agoRemoving LIBEDATASERVERUI_CURRENT/REVISION/AGE definitions
Tristan Van Berkom [Mon, 17 Dec 2012 10:29:10 +0000 (19:29 +0900)]
Removing LIBEDATASERVERUI_CURRENT/REVISION/AGE definitions

These definitions in configure.ac are now meaningless since
the removal of libedataserverui (just a cleanup).

11 years agoPost-release version bump.
Matthew Barnes [Sun, 16 Dec 2012 14:40:07 +0000 (09:40 -0500)]
Post-release version bump.

11 years agoNEWS update for 3.7.3 release.
Matthew Barnes [Sun, 16 Dec 2012 14:07:03 +0000 (09:07 -0500)]
NEWS update for 3.7.3 release.

11 years agoFix untracked files in test-server-utils.
Matthew Barnes [Sat, 15 Dec 2012 16:19:35 +0000 (11:19 -0500)]
Fix untracked files in test-server-utils.

11 years agoDeprecate E_AUTHENTICATION_SESSION_KEYRING_ERROR.
Matthew Barnes [Sat, 15 Dec 2012 15:36:04 +0000 (10:36 -0500)]
Deprecate E_AUTHENTICATION_SESSION_KEYRING_ERROR.

11 years agoSuppress g-ir-scanner warnings.
Matthew Barnes [Sat, 15 Dec 2012 13:37:38 +0000 (08:37 -0500)]
Suppress g-ir-scanner warnings.

They're far too noisy, and make it difficult to spot new C compiler
warnings, which are the only ones I care about.  We can enable them
again when we're serious about cleaning them up.  In the meantime,
they're just getting in the way.

11 years agoRevert "ESourceRegistry: Do not mandate builtin sources."
Matthew Barnes [Sat, 15 Dec 2012 12:42:14 +0000 (07:42 -0500)]
Revert "ESourceRegistry: Do not mandate builtin sources."

This reverts commit 78340f9274d5c2ee0f52507f935f97d6b92f513e.

This violates a key invariant of the get_default() and especially
get_builtin() functions: that they never return NULL.

11 years agoPorted ECalClient tests to use ETestServerFixture framework
Tristan Van Berkom [Thu, 13 Dec 2012 13:22:19 +0000 (22:22 +0900)]
Ported ECalClient tests to use ETestServerFixture framework

Now the majority of ECalClient tests use the fixture, some tests
have been moved out of the unit test targets instead and remain
as functional tests (to be run manually)

11 years agoPorted ECal tests to new test framework
Tristan Van Berkom [Thu, 13 Dec 2012 09:55:19 +0000 (18:55 +0900)]
Ported ECal tests to new test framework

NOTES:
  o Removed test-ecal-open, thats tests by the test fixture of the framework
  o Some tests fail because verification of created cal objects is broken
  o Some tests moved from the unit test suite because they dont make
    sense as unit tests (or are more difficult to port), those tests
    can still be run with a running/installed data server.

11 years agoPorted all tests in tests/ebook/client to use new test framework
Tristan Van Berkom [Wed, 12 Dec 2012 10:35:59 +0000 (19:35 +0900)]
Ported all tests in tests/ebook/client to use new test framework

'make check' now passes in ebook except for a few cases which geniunely fail.

Conflicts:

tests/libebook/client/Makefile.am
tests/libebook/client/test-client-custom-summary.c

11 years agoPorted EBook (deprecated) test cases to use the new test-server-utils scaffold.
Tristan Van Berkom [Wed, 12 Dec 2012 07:34:32 +0000 (16:34 +0900)]
Ported EBook (deprecated) test cases to use the new test-server-utils scaffold.

Note that test-ebook-remove is removed, this is executed in every test case
implicitly and asserted by the test scaffold

11 years agoAdding test-server-utils
Tristan Van Berkom [Tue, 11 Dec 2012 09:22:49 +0000 (18:22 +0900)]
Adding test-server-utils

A library with text fixtures for testing ESourceRegistry, EBookClient and
ECalClient in a self contained fashion.

11 years agoESourceRegistry: Do not mandate builtin sources.
Tristan Van Berkom [Thu, 13 Dec 2012 07:14:19 +0000 (16:14 +0900)]
ESourceRegistry: Do not mandate builtin sources.

This patch removes return_if_fail() critical warnings from
e_source_registry_ref_[default,builtin]_address_book() and
e_source_registry_ref_[default,builtin]_calendar(). This
avoids the console warnings when running make check.

Also, this patch fixes several locations in EDS where the
above functions blindly expect an #ESource to be returned.

11 years agoAdded EDS_ADDRESS_BOOK_MODULES and EDS_CALENDAR_MODULES
Tristan Van Berkom [Thu, 13 Dec 2012 06:46:45 +0000 (15:46 +0900)]
Added EDS_ADDRESS_BOOK_MODULES and EDS_CALENDAR_MODULES

Allows specification of alternative paths to search for modules
for addressbook and calendar. Note that these *replace* the default
system path, not augment it. This is intended to ensure that we
dont load installed modules from the system when running test cases.

11 years agoRemoving e-source-registry-test.c and e-test-dbus-utils.[ch]
Tristan Van Berkom [Wed, 12 Dec 2012 05:23:30 +0000 (14:23 +0900)]
Removing e-source-registry-test.c and e-test-dbus-utils.[ch]

The source registry test checks if sources can be created in the
registry, this is already asserted by e-test-server-utils in
the fixture test. Removing the e-test-dbus-utils.[ch] and
tests/tools directory in favour of new testing framework added in
test-server-utils directory.

11 years agoIntroduce cancellable locks
Milan Crha [Fri, 14 Dec 2012 16:42:41 +0000 (17:42 +0100)]
Introduce cancellable locks

There are currently two cancellable lock types, one extends GMutex,
the other extends GRecMutex, in a way that the waiting for a lock
can be cancelled.

11 years agoIntroduce CamelSession::trust_prompt()
Milan Crha [Fri, 14 Dec 2012 14:25:55 +0000 (15:25 +0100)]
Introduce CamelSession::trust_prompt()

This way a trust-prompt dialog from EUserPrompter service can be used
with all its features and a view consistency between components.

11 years agoBisect Gtk+ calls into separate files
Milan Crha [Thu, 13 Dec 2012 10:46:28 +0000 (11:46 +0100)]
Bisect Gtk+ calls into separate files

This way it'll be easier to provide other
than Gtk+ GUI implementations of the prompts.

11 years agoWorkaround file description leak from e_source_registry_authenticate_sync()
Milan Crha [Wed, 12 Dec 2012 22:27:28 +0000 (23:27 +0100)]
Workaround file description leak from e_source_registry_authenticate_sync()

This workarounds a file descriptor leak (a GMainContext leak) partly
caused by GDBusConnection. See bug #690126 for more details:
https://bugzilla.gnome.org/show_bug.cgi?id=690126

It influeces also EUserPrompter.

11 years agoUpdated POTFILES.in
Piotr Drąg [Wed, 12 Dec 2012 21:19:36 +0000 (22:19 +0100)]
Updated POTFILES.in

11 years agoRemove libedataserverui.
Matthew Barnes [Mon, 10 Dec 2012 13:19:32 +0000 (08:19 -0500)]
Remove libedataserverui.

Evolution is the only consumer of libedataserverui.  The library has
been merged into Evolution's own libeutil which is not restrained by
backward-compatibility promises.

11 years agoAssamese translation updated
Nilamdyuti Goswami [Wed, 12 Dec 2012 09:25:32 +0000 (14:55 +0530)]
Assamese translation updated

11 years agolibebook-contacts: Document EBookQueryTest
Mathias Hasselmann [Fri, 7 Dec 2012 12:37:50 +0000 (13:37 +0100)]
libebook-contacts: Document EBookQueryTest

11 years agotests: Add a few missing license headers
Mathias Hasselmann [Tue, 11 Dec 2012 09:50:49 +0000 (10:50 +0100)]
tests: Add a few missing license headers

11 years ago[trust-prompt] Add certificate viewer and "issuer*" parameters
Milan Crha [Tue, 11 Dec 2012 17:38:49 +0000 (18:38 +0100)]
[trust-prompt] Add certificate viewer and "issuer*" parameters

11 years agoMake ENamedParameters a fully boxed type
Colin Walters [Mon, 10 Dec 2012 18:42:11 +0000 (13:42 -0500)]
Make ENamedParameters a fully boxed type

Introspection doesn't handle well typedefs as a general rule, but
typedefs for container types are particularly problematic.  This ends
up breaking the vala build, but the resulting .gir is also unusable by
bindings.

In this case, I think it's actually cleanest to make ENamedParameters
a fully opaque type even to C.  The parts of the Evolution code that
were peeking inside ENamedParameters really wanted a helper function
anyways to create a gchar **.

Therefore, this is a net code cleanup.

https://bugzilla.gnome.org/show_bug.cgi?id=689871

11 years agoBug #579315 - Identify filter names in filtering errors
Milan Crha [Mon, 10 Dec 2012 13:48:27 +0000 (14:48 +0100)]
Bug #579315 - Identify filter names in filtering errors

11 years agoAssamese translation updated
Nilamdyuti Goswami [Mon, 10 Dec 2012 11:40:20 +0000 (17:10 +0530)]
Assamese translation updated

11 years agoe-contact.h cleanups.
Matthew Barnes [Sun, 9 Dec 2012 16:53:24 +0000 (11:53 -0500)]
e-contact.h cleanups.

11 years agoUpdate API documentation.
Matthew Barnes [Sun, 9 Dec 2012 15:50:45 +0000 (10:50 -0500)]
Update API documentation.

11 years agoUpdated Tamil translation
Dr.T.Vasudevan [Sun, 9 Dec 2012 13:57:07 +0000 (19:27 +0530)]
Updated Tamil translation

11 years agoRemove introspection of libecal.
Matthew Barnes [Sat, 8 Dec 2012 20:51:19 +0000 (15:51 -0500)]
Remove introspection of libecal.

A great deal of the calendar API exposes data structures from libical.
libical is not a GObject library, and is therefore not introspectable.
This is unfortunate, but the API has been this way for over a decade.

The g-ir-scanner skips functions with data types it does not understand.
Therefore a great deal of the calendar API is omitted from introspection
and the resulting language bindings are not actually useful. This causes
confusion and disappointment, judging by the number of times I've had to
explain this to programmers in the #evolution channel.

Annotating the calendar API for introspection is still good practice.
But until this situation changes, let's not give the false impression
that E-D-S calendars are accessible from non-C languages by producing
a less-than-useful GIR file.

Remove the introspection.

11 years agoCamelIMAPXFolder: Fix a memory leak.
Matthew Barnes [Sat, 8 Dec 2012 19:41:23 +0000 (14:41 -0500)]
CamelIMAPXFolder: Fix a memory leak.

11 years agoIMAPX: Support the QUOTA extension (RFC 2087).
Matthew Barnes [Sat, 8 Dec 2012 19:22:41 +0000 (14:22 -0500)]
IMAPX: Support the QUOTA extension (RFC 2087).

11 years agocamel-imapx-utils.h: Readability cleanups.
Matthew Barnes [Sat, 8 Dec 2012 13:52:21 +0000 (08:52 -0500)]
camel-imapx-utils.h: Readability cleanups.

11 years agoEnable introspection scanner warnings
Milan Crha [Sat, 8 Dec 2012 09:01:56 +0000 (10:01 +0100)]
Enable introspection scanner warnings

11 years agoAdd missing linker flag.
Matthew Barnes [Fri, 7 Dec 2012 23:04:42 +0000 (18:04 -0500)]
Add missing linker flag.

11 years agoIntroduce evolution-user-prompter service
Milan Crha [Fri, 7 Dec 2012 21:48:39 +0000 (22:48 +0100)]
Introduce evolution-user-prompter service

This is used to prompt users for input, mainly from book or calendar
backends. The service is extensible, thus the backend can provide its
own dialogs and use them.

11 years agoFixed test-client-custom-summary to actually pass
Tristan Van Berkom [Fri, 7 Dec 2012 09:00:42 +0000 (18:00 +0900)]
Fixed test-client-custom-summary to actually pass

Was missing a vcard modification to test for EVC_N component, also
enhanced test case to test both apis for each case and added one
case to check the special '%' escape char is working.

11 years agoReviving async client test
Tristan Van Berkom [Fri, 9 Nov 2012 09:33:03 +0000 (18:33 +0900)]
Reviving async client test

Now test-client-async.c also tests adding of contacts to a newly created book,
instead of relying on the system book.

11 years agoAdd e_queue_transfer().
Matthew Barnes [Thu, 6 Dec 2012 14:11:03 +0000 (09:11 -0500)]
Add e_queue_transfer().

Transfers the contents of one GQueue on to the tail of another GQueue.

Mostly because I'm tired of writing "while" loops, and this does it more
efficiently anyway.

11 years agotests: Add configured datadir to the D-Bus dirs
Mathias Hasselmann [Thu, 6 Dec 2012 13:14:40 +0000 (14:14 +0100)]
tests: Add configured datadir to the D-Bus dirs

This helps to really pick the locally built factories for tests,
without the need to fiddle with XDG_DATA_DIRS. Ideally we'd even use
service files for the currently build's uninstalled service binaries,
but that seems too much work right now.

11 years agotests: Port test-client-custom-summary.c to gtest
Mathias Hasselmann [Thu, 6 Dec 2012 12:51:23 +0000 (13:51 +0100)]
tests: Port test-client-custom-summary.c to gtest

Less copy-and-paste, easier to extend, more intuitive messages
on failed assertions, and one missing assertion caught.

11 years agotests: Use absolute paths for SRCDIR
Mathias Hasselmann [Thu, 6 Dec 2012 12:19:30 +0000 (13:19 +0100)]
tests: Use absolute paths for SRCDIR

That way a few tests can be run from top_builddir, instead of their builddir.

11 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 5 Dec 2012 19:07:14 +0000 (20:07 +0100)]
Updated Spanish translation

11 years agoDo not generate a ChangeLog file from 'git log'
Milan Crha [Wed, 5 Dec 2012 07:46:58 +0000 (08:46 +0100)]
Do not generate a ChangeLog file from 'git log'

11 years agoFix a script name (with-session-bus-eds.sh) in a Makefile.am
Milan Crha [Wed, 5 Dec 2012 07:18:41 +0000 (08:18 +0100)]
Fix a script name (with-session-bus-eds.sh) in a Makefile.am

11 years agoapi-docs: Fix two small typos
Mathias Hasselmann [Wed, 5 Dec 2012 00:00:01 +0000 (01:00 +0100)]
api-docs: Fix two small typos

11 years agoAssamese translation updated
Nilamdyuti Goswami [Tue, 4 Dec 2012 09:23:14 +0000 (14:53 +0530)]
Assamese translation updated

11 years agoBug #371469 - Add port to connection refused error messages
Milan Crha [Mon, 3 Dec 2012 17:55:52 +0000 (18:55 +0100)]
Bug #371469 - Add port to connection refused error messages

11 years agoBug #512714 - Error string "Host lookup failed: Name or Service not known"
Milan Crha [Mon, 3 Dec 2012 17:16:21 +0000 (18:16 +0100)]
Bug #512714 - Error string "Host lookup failed: Name or Service not known"

11 years agoBug #529743 - Add "Any header" filter and search folder condition
Milan Crha [Mon, 3 Dec 2012 12:27:33 +0000 (13:27 +0100)]
Bug #529743 - Add "Any header" filter and search folder condition

11 years agoUpdated Tamil translation
Dr.T.Vasudevan [Sun, 2 Dec 2012 09:54:41 +0000 (15:24 +0530)]
Updated Tamil translation

11 years agoUpdated Tamil translation
Dr.T.Vasudevan [Sun, 2 Dec 2012 09:39:12 +0000 (15:09 +0530)]
Updated Tamil translation

11 years agoUpdated Tamil translation
Dr.T.Vasudevan [Sun, 2 Dec 2012 08:53:08 +0000 (14:23 +0530)]
Updated Tamil translation

11 years agoFix few issues found by Coverity scan
Milan Crha [Fri, 30 Nov 2012 10:06:18 +0000 (11:06 +0100)]
Fix few issues found by Coverity scan

11 years agoFix Copy&Paste error found by Coverity scan
Milan Crha [Fri, 30 Nov 2012 07:38:21 +0000 (08:38 +0100)]
Fix Copy&Paste error found by Coverity scan

11 years agoAdding test case for e_book_client_get_contacts_uids()
Tristan Van Berkom [Thu, 29 Nov 2012 11:34:25 +0000 (20:34 +0900)]
Adding test case for e_book_client_get_contacts_uids()

11 years agoExtending test-client-custom-summary to try e_book_client_get_contacts_uids()
Tristan Van Berkom [Thu, 29 Nov 2012 11:32:15 +0000 (20:32 +0900)]
Extending test-client-custom-summary to try e_book_client_get_contacts_uids()

11 years agoEBookBackendSqliteDB: Fix e_book_backend_sqlitedb_search_uids()
Tristan Van Berkom [Thu, 29 Nov 2012 10:07:39 +0000 (19:07 +0900)]
EBookBackendSqliteDB: Fix e_book_backend_sqlitedb_search_uids()

Since we started using table aliases, this API was missed.

11 years agoESourceRegistry: Disconnect signal handlers from GSettings in dispose
Milan Crha [Thu, 29 Nov 2012 11:19:34 +0000 (12:19 +0100)]
ESourceRegistry: Disconnect signal handlers from GSettings in dispose

11 years agoUse version-based GLib/GDK/GTK+ warnings.
Matthew Barnes [Wed, 28 Nov 2012 19:31:24 +0000 (14:31 -0500)]
Use version-based GLib/GDK/GTK+ warnings.

Use GLIB_VERSION_MAX_ALLOWED and GDK_VERSION_MAX_ALLOWED to warn if we
accidentally use symbols that were introduced in versions subsequent to
our minimum requirement.

Use GLIB_VERSION_MIN_REQUIRED and GDK_VERSION_MIN_REQUIRED to suppress
deprecation warnings by version so we can clean them up incrementally.
The initial values produce no deprecation warnings.

11 years agoEFlag: Suppress deprecation warning on g_cond_timed_wait().
Matthew Barnes [Wed, 28 Nov 2012 20:18:19 +0000 (15:18 -0500)]
EFlag: Suppress deprecation warning on g_cond_timed_wait().

11 years agoBug #671620 - Support signing with multiple OpenPGP keys
Milan Crha [Wed, 28 Nov 2012 14:30:15 +0000 (15:30 +0100)]
Bug #671620 - Support signing with multiple OpenPGP keys

11 years agoBug #688366 - WebDAV book can cause high CPU usage
Milan Crha [Wed, 28 Nov 2012 11:43:33 +0000 (12:43 +0100)]
Bug #688366 - WebDAV book can cause high CPU usage

This fixes two issues:
a) high CPU on invalid XML response from a server
b) ensures priv->uri ends with a forward slash, thus new contacts are created
   inside given folder, not on the same level as the folder

11 years agoUpdated Telugu Translations
Krishnababu Krothapalli [Wed, 28 Nov 2012 10:02:28 +0000 (15:32 +0530)]
Updated Telugu Translations

11 years agoaddressbook tests: Update the path to the service
Murray Cumming [Tue, 27 Nov 2012 12:13:15 +0000 (13:13 +0100)]
addressbook tests: Update the path to the service

11 years agoaddressbook tests: Run with private D-Bus session and environment.
Murray Cumming [Tue, 28 Jun 2011 09:12:56 +0000 (11:12 +0200)]
addressbook tests: Run with private D-Bus session and environment.

* tests/: Add a tools/ directory with .sh files from
  libfolks/tests/tools/, to let us start and stop a private D-Bus
  session, and set XDG_* environment variables for local use of EDS,
  when running tests.
* tests/libebook/client/Makefile.am: Set TESTS_ENVIRONMENT to
  run the tests with the private D-Bus session.

11 years agoBug #684175 - Check email value in e_destination_set_contact()
Paul Menzel [Tue, 27 Nov 2012 08:30:09 +0000 (09:30 +0100)]
Bug #684175 - Check email value in e_destination_set_contact()

11 years agoFix regression on fields-of-interest as much as possible.
Tristan Van Berkom [Mon, 26 Nov 2012 12:19:07 +0000 (21:19 +0900)]
Fix regression on fields-of-interest as much as possible.

Since the new summary configurations normalize summary column
values, it's become impossible to construct contacts from summary
columns, however this is untrue for the UID & REV fields which are
not normalized, for those fields it's still possible to construct
contacts from the summary (and UID / REV is anyway the main known use
case of the fields-of-interest feature).

11 years agoAssamese translation updated
Nilamdyuti Goswami [Mon, 26 Nov 2012 10:14:57 +0000 (15:44 +0530)]
Assamese translation updated

11 years agoSimplify e_contact_attr_list_free().
Matthew Barnes [Sat, 24 Nov 2012 02:13:07 +0000 (21:13 -0500)]
Simplify e_contact_attr_list_free().

g_list_free_full() makes it a one-liner.

11 years agoSimplify e_contact_attr_list_copy().
Matthew Barnes [Sat, 24 Nov 2012 02:11:26 +0000 (21:11 -0500)]
Simplify e_contact_attr_list_copy().

g_list_copy_deep() makes it a one-liner.

11 years agoBug #688926 - SIGABRT on call_old_file_Sync
Daniele Rondina [Fri, 23 Nov 2012 13:07:51 +0000 (14:07 +0100)]
Bug #688926 - SIGABRT on call_old_file_Sync

11 years agoEBookBackendSqliteDB: Avoid errors on conflicting summaries
Tristan Van Berkom [Fri, 23 Nov 2012 09:45:33 +0000 (18:45 +0900)]
EBookBackendSqliteDB: Avoid errors on conflicting summaries

Added function introspect_summary() to derive the summary information
from a running database.

Now the initialization of the DB is a bit safer:
  o First collect configured summary
  o Create Database (if it doesnt exist) with the configured summary
  o Now derive the summary from the existing database

This ensures that inserts/selects run with the summary configuration
which matches the actual running database, regardless if the DB was
configured with the actual ESourceBackendSummarySetup passed or previously
configured with something else.

11 years agoBug #688795 - Crash under e_cal_backend_contacts_start_view()
Milan Crha [Thu, 22 Nov 2012 16:13:49 +0000 (17:13 +0100)]
Bug #688795 - Crash under e_cal_backend_contacts_start_view()

11 years agoBug #202576 - A way to refresh IMAP folder list
Milan Crha [Thu, 22 Nov 2012 15:15:55 +0000 (16:15 +0100)]
Bug #202576 - A way to refresh IMAP folder list

11 years agoAssamese translation updated
Nilamdyuti Goswami [Thu, 22 Nov 2012 14:17:43 +0000 (19:47 +0530)]
Assamese translation updated

11 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 22 Nov 2012 10:30:02 +0000 (11:30 +0100)]
Updated Spanish translation

11 years agoEBookBackendSexp: Fixed to use the new e_util_utf8_normalize() function
Tristan Van Berkom [Tue, 20 Nov 2012 06:40:59 +0000 (15:40 +0900)]
EBookBackendSexp: Fixed to use the new e_util_utf8_normalize() function

11 years agoAdded test case to create a book with custom summary fields and fetch a contact.
Tristan Van Berkom [Mon, 8 Oct 2012 07:43:06 +0000 (16:43 +0900)]
Added test case to create a book with custom summary fields and fetch a contact.

This test case configures some summary fields and indexes and then performs
some queries and asserts the results. Notably the configured summary uses multi valued
fields E_CONTACT_TEL and E_CONTACT_EMAIL.

Some extra vcards are added to the test data directory in order to have some
mixed up emails and phone numbers to test with

11 years agoEBookBackendFile: Use the new ESourceBackendSummarySetup to configure the summary
Tristan Van Berkom [Wed, 7 Nov 2012 08:31:10 +0000 (17:31 +0900)]
EBookBackendFile: Use the new ESourceBackendSummarySetup to configure the summary

11 years agoEBookBackendSqliteDB: Added e_book_backend_sqlitedb_new_full()
Tristan Van Berkom [Wed, 7 Nov 2012 08:19:57 +0000 (17:19 +0900)]
EBookBackendSqliteDB: Added e_book_backend_sqlitedb_new_full()

This is a major refactor of EBookBackendSqliteDB and adds a few
features. The new_full() variant for creating the SQLiteDB makes
the summary fields and indexes configurable.

String types, Boolean Types and Attribute List types of EContactFields
are all supported by the summary.

The summary fields can all have Prefix or Suffix indexes.

In order to actually hit the created indexes, all field data
is normalized with g_utf8_casefold(), for Suffix indexes,
additional columns are maintained with the data in reverse
(this allows us to run prefix searches in reverse which use
the indexes when asked to perform a suffix search)

Furthermore the patch also deprecates:
   e_book_backend_sqlitedb_is_summary_query () and
   e_book_backend_sqlitedb_is_summary_fields ()
in favour of some new apis which take the given EBookBackendSqliteDB in context.

Note also that since attribute list summary fields are supported,
we've dropped the custom hackery which checks related email_1, email_2, email_3
and email_4 fields... instead the E_CONTACT_EMAIL field should simply
be used to store however many emails are assigned to a given contact.

11 years agoAdded ESourceBackendSummarySetup extension
Tristan Van Berkom [Mon, 8 Oct 2012 05:18:10 +0000 (14:18 +0900)]
Added ESourceBackendSummarySetup extension

Firstly this extension allows configuration which EContactFields
should be indexed as "summary fields".

Secondly, the configured summary fields can have indexes, those indexes
can be of type PREFIX or SUFFIX

11 years agoAdded e_util_utf8_normalize()
Tristan Van Berkom [Mon, 19 Nov 2012 11:19:43 +0000 (20:19 +0900)]
Added e_util_utf8_normalize()

A utility function to lowercase/remove accents from a utf8 string

11 years agoAdded e_enum_from_string() and e_enum_to_string() utilities in e-data-server-utiils
Tristan Van Berkom [Mon, 15 Oct 2012 06:45:35 +0000 (15:45 +0900)]
Added e_enum_from_string() and e_enum_to_string() utilities in e-data-server-utiils

11 years agoBug #680201 - Backup restore doesn't migrate accounts from GConf
Milan Crha [Wed, 21 Nov 2012 18:56:44 +0000 (19:56 +0100)]
Bug #680201 - Backup restore doesn't migrate accounts from GConf

11 years agoBug #687670 - Signing with both pgp and S/MIME causes a broken signature
Milan Crha [Wed, 21 Nov 2012 16:55:15 +0000 (17:55 +0100)]
Bug #687670 - Signing with both pgp and S/MIME causes a broken signature

11 years agoBug #677378 - Crash in imapx_query_auth_types_sync()
Milan Crha [Wed, 21 Nov 2012 11:34:29 +0000 (12:34 +0100)]
Bug #677378 - Crash in imapx_query_auth_types_sync()

11 years agoBug #688479 - Empty name selector dialog on open
Milan Crha [Tue, 20 Nov 2012 19:08:15 +0000 (20:08 +0100)]
Bug #688479 - Empty name selector dialog on open

11 years agoBug 688639 – SMTP: Correctly deal with 535 authentication error
Paul Menzel [Tue, 20 Nov 2012 17:59:05 +0000 (18:59 +0100)]
Bug 688639 – SMTP: Correctly deal with 535 authentication error

Entering a wrong password, Evolution would fail to send messages using SMTP with the following error.

    Bad authentication response from server.

The log file of the mail server – Exim 4 in this case – contains the following error.

    cram_md5_server authenticator failed for myhost.example.org ([10.10.10.10]) [xx.xxx.xxx.xxx]: 535 Incorrect authentication data (set_id=joey)

Looking at the code after the rewrite in

    commit 68c269a66bd484768b9c1517e7dc2dd30f682485
    Author: Matthew Barnes <mbarnes@redhat.com>
    Date:   Sat Oct 15 09:51:35 2011 -0400

        smtp: Adapt to Camel's new authentication API.

present since git tag EVOLUTION_DATA_SERVER_3_3_1, accidentally changed the logic not acting correctly, when receiving a 535 authentication error response and therefore was overridden by the next code block and the variable `result` changed to `CAMEL_AUTHENTICATION_ERROR` instead of `CAMEL_AUTHENTICATION_REJECTED`, which resulted in the situation where the password was not reset and therefore the user not asked to reenter it.

Changing the logic, so the variable is not overridden successfully fixes the issue.

11 years agoBug #688660 - Crash on webdav contact cache update
Milan Crha [Tue, 20 Nov 2012 15:35:41 +0000 (16:35 +0100)]
Bug #688660 - Crash on webdav contact cache update

11 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 20 Nov 2012 14:50:30 +0000 (15:50 +0100)]
Updated Spanish translation

11 years agoFixing e_book_backend_sexp_match_contact() for emails and phone numbers
Tristan Van Berkom [Thu, 8 Nov 2012 08:13:07 +0000 (17:13 +0900)]
Fixing e_book_backend_sexp_match_contact() for emails and phone numbers

This patch fixes the match function to match any phone number or email
found in a given vcard, not only the restrictive list of phone number
and email types defined in the EContactField enumeration.

11 years agoEContact: Added boxed type E_CONTACT_TYPE_ATTR_LIST and e_contact_field_type()
Tristan Van Berkom [Fri, 5 Oct 2012 09:35:05 +0000 (18:35 +0900)]
EContact: Added boxed type E_CONTACT_TYPE_ATTR_LIST and e_contact_field_type()

This boxed type is used in place of pointer types for properties
installed on EContact which are returned lists of strings.

This does not effect the behavior of e_contact_set()/e_contact_get(),
only it allows e_contact_field_type() to return a distinct type
for those fields, allowing automated code to introspect those useful
contact field types.

The e_contact_field_type() convenience function is used to fetch the GType
for a given field when used with EContact (this allows more automated
routines to be written for EContactFields).

11 years agoECalClientView cleanups.
Matthew Barnes [Sun, 18 Nov 2012 12:50:49 +0000 (07:50 -0500)]
ECalClientView cleanups.

Let ECalClientView create its own D-Bus proxy object by implementing
GInitableIface and adding "connection" and "object-path" construct-only
GObject properties.

This eliminates e-cal-client-view-private.h and adds the following
public accessor functions:

   e_cal_client_view_get_connection()
   e_cal_client_view_get_object_path()