platform/upstream/evolution-data-server.git
13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 4 Aug 2010 12:19:42 +0000 (14:19 +0200)]
Updated Norwegian bokmål translation

13 years agofree response objects in e_gw_container_get_connection - bgo#622366
Michael Meeks [Tue, 3 Aug 2010 16:29:10 +0000 (17:29 +0100)]
free response objects in e_gw_container_get_connection - bgo#622366

13 years agocleanup, and fix for substantial GWise / soap mail leak, bgo#622366
Michael Meeks [Tue, 3 Aug 2010 15:59:11 +0000 (16:59 +0100)]
cleanup, and fix for substantial GWise / soap mail leak, bgo#622366

13 years agoPost-release version bump.
Matthew Barnes [Tue, 3 Aug 2010 01:04:34 +0000 (21:04 -0400)]
Post-release version bump.

13 years agoNEWS update for 2.31.6 release.
Matthew Barnes [Tue, 3 Aug 2010 01:00:34 +0000 (21:00 -0400)]
NEWS update for 2.31.6 release.

13 years agoCoding style and whitespace cleanups.
Matthew Barnes [Mon, 2 Aug 2010 22:02:46 +0000 (18:02 -0400)]
Coding style and whitespace cleanups.

13 years agoUpdated Romanian translation
Lucian Adrian Grijincu [Mon, 2 Aug 2010 18:19:53 +0000 (21:19 +0300)]
Updated Romanian translation

13 years agofix multi-threaded build.
Michael Meeks [Mon, 2 Aug 2010 17:13:50 +0000 (18:13 +0100)]
fix multi-threaded build.

13 years agoanother instance of the same bust variable name.
Michael Meeks [Mon, 2 Aug 2010 16:58:53 +0000 (17:58 +0100)]
another instance of the same bust variable name.

13 years agofix 'inlen' snafu - presumably 'len'
Michael Meeks [Mon, 2 Aug 2010 16:57:13 +0000 (17:57 +0100)]
fix 'inlen' snafu - presumably 'len'

13 years agoOptimized camel_uuencode_step
Jeffrey Stedfast [Mon, 2 Aug 2010 16:42:28 +0000 (12:42 -0400)]
Optimized camel_uuencode_step

2010-08-02  Jeffrey Stedfast  <fejj@novell.com>

* camel/camel-mime-utils.c (camel_uuencode_step): Optimized
by writing directly to the output buffer for all lines
except possibly the last if it is incomplete.

13 years agoFixed uudecode logic
Jeffrey Stedfast [Mon, 2 Aug 2010 16:24:29 +0000 (12:24 -0400)]
Fixed uudecode logic

2010-08-02  Jeffrey Stedfast  <fejj@novell.com>

Possible fix for bug #625448

* camel/camel-mime-utils.c (camel_uudecode_step): Properly decrement
uulen in the cases where uulen <= 2. Also simplified eoln logic.

13 years agoReplace "Since: 3.0" with "Since: 2.32".
Matthew Barnes [Mon, 2 Aug 2010 15:57:48 +0000 (11:57 -0400)]
Replace "Since: 3.0" with "Since: 2.32".

13 years agoUpdate API documentation.
Matthew Barnes [Mon, 2 Aug 2010 15:41:58 +0000 (11:41 -0400)]
Update API documentation.

13 years agoPrefer gio-2.0 when requiring GLib libraries.
Matthew Barnes [Mon, 2 Aug 2010 13:59:37 +0000 (09:59 -0400)]
Prefer gio-2.0 when requiring GLib libraries.

gio-2.0 is the "top level" library within GLib.

It requires everything else we may need from GLib:

glib-2.0, gobject-2.0, gmodule-2.0, gthread-2.0

13 years agoReplace dbus-glib-1 with gio-2.0 in pkgconfig files.
Matthew Barnes [Mon, 2 Aug 2010 13:37:58 +0000 (09:37 -0400)]
Replace dbus-glib-1 with gio-2.0 in pkgconfig files.

13 years agoebook & edataserverui: Use _async suffix rather than _ex suffix
Rob Bradford [Sun, 1 Aug 2010 09:40:58 +0000 (10:40 +0100)]
ebook & edataserverui: Use _async suffix rather than _ex suffix

13 years agoUpdated Galician translations
Fran Diéguez [Sun, 1 Aug 2010 21:41:14 +0000 (23:41 +0200)]
Updated Galician translations

13 years agoebook: Remove duplicate free from array_to_stringlist helper (#625750)
Rob Bradford [Sun, 1 Aug 2010 09:52:02 +0000 (10:52 +0100)]
ebook: Remove duplicate free from array_to_stringlist helper (#625750)

The helper function array_to_stringlist function tried to free the string
array despite it being freed by the caller as well.

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

13 years agoUpdated German translation
Christian Kirbach [Sat, 31 Jul 2010 23:50:13 +0000 (01:50 +0200)]
Updated German translation

13 years agoimapx: ->cinfo *can* be NULL in imapx_server_dispose() for a failed connection
David Woodhouse [Sat, 31 Jul 2010 15:20:59 +0000 (17:20 +0200)]
imapx: ->cinfo *can* be NULL in imapx_server_dispose() for a failed connection

.... which happens when you're on a ferry using a satellite connection,
exacerbated by slow VPN and trying to use GSSAPI authentication which is
slow enough at the best of times.... and the server has a short idle
timeout so it kicks you off before you manage to complete the authentication.

13 years agoimapx: server flags can be integers
David Woodhouse [Sat, 31 Jul 2010 14:31:23 +0000 (16:31 +0200)]
imapx: server flags can be integers

A user on IRC reported a server which was reporting '1' (without the
quotes) as one of the available PERMANENTFLAGS. This caused imapx to
abort the connection after failing to parse the flags.

13 years agoFix minor compiler warnings from GDBus generated code
Milan Crha [Fri, 30 Jul 2010 12:40:33 +0000 (14:40 +0200)]
Fix minor compiler warnings from GDBus generated code

13 years agoBug #625351 - Sending through sendmail reports error
Milan Crha [Fri, 30 Jul 2010 08:15:27 +0000 (10:15 +0200)]
Bug #625351 - Sending through sendmail reports error

13 years agoBuild path portably in session_get_storage_path().
Matthew Barnes [Thu, 29 Jul 2010 21:13:42 +0000 (17:13 -0400)]
Build path portably in session_get_storage_path().

13 years agoAvoid overwriting files while migrating.
Matthew Barnes [Thu, 29 Jul 2010 20:34:31 +0000 (16:34 -0400)]
Avoid overwriting files while migrating.

13 years agoBug #625606 - git/master build dies with glib-2.25.12
Milan Crha [Thu, 29 Jul 2010 18:40:05 +0000 (20:40 +0200)]
Bug #625606 - git/master build dies with glib-2.25.12

13 years agoUpdated Spanish translation
Jorge González [Thu, 29 Jul 2010 07:35:14 +0000 (09:35 +0200)]
Updated Spanish translation

13 years agoFix error handling in CamelImapFolder::get_message().
Matthew Barnes [Thu, 29 Jul 2010 03:22:39 +0000 (23:22 -0400)]
Fix error handling in CamelImapFolder::get_message().

13 years agoBug 625039 - Commonly named macros in Camel header files
Matthew Barnes [Thu, 29 Jul 2010 01:53:58 +0000 (21:53 -0400)]
Bug 625039 - Commonly named macros in Camel header files

13 years agoFix error handling in CamelLocalFolder::sync().
Matthew Barnes [Wed, 28 Jul 2010 19:57:56 +0000 (15:57 -0400)]
Fix error handling in CamelLocalFolder::sync().

13 years agoBug 625083 - Gettext can't parse GLib's printf format constants
Matthew Barnes [Wed, 28 Jul 2010 19:34:05 +0000 (15:34 -0400)]
Bug 625083 - Gettext can't parse GLib's printf format constants

13 years agoBug #625482 - Personal addressbook is vanished
Milan Crha [Wed, 28 Jul 2010 18:16:50 +0000 (20:16 +0200)]
Bug #625482 - Personal addressbook is vanished

13 years agoReset BASE_VERSION to 2.32.
Matthew Barnes [Wed, 28 Jul 2010 17:39:34 +0000 (13:39 -0400)]
Reset BASE_VERSION to 2.32.

In light of today's announcement that GNOME 3.0 is delayed again,
the September 2010 release will be called Evolution Data Server 2.32.

http://www.gnome.org/press/releases/2010-07-gnome-3.0-rescheduled.html

13 years agoAdd more debug messages to basedir migration.
Matthew Barnes [Wed, 28 Jul 2010 16:54:27 +0000 (12:54 -0400)]
Add more debug messages to basedir migration.

If directory removal fails because the directory is not empty,
list the file names in that directory.

13 years agoUpdated Spanish translation
Jorge González [Wed, 28 Jul 2010 15:11:46 +0000 (17:11 +0200)]
Updated Spanish translation

13 years agoBug #622884 - Migrate from dbus-glib to glib's GDBus
Milan Crha [Wed, 28 Jul 2010 11:49:04 +0000 (13:49 +0200)]
Bug #622884 - Migrate from dbus-glib to glib's GDBus

13 years agoUpdated Hebrew translation.
Yaron Shahrabani [Wed, 28 Jul 2010 10:25:39 +0000 (13:25 +0300)]
Updated Hebrew translation.

13 years agoAdjust mbox: file paths in EAccounts.
Matthew Barnes [Sat, 24 Jul 2010 01:43:00 +0000 (21:43 -0400)]
Adjust mbox: file paths in EAccounts.

Point mbox folder URIs to our new base directory.

(I suspect we haven't seen the last of this mbox URI issue...)

13 years agoAdd a migration routine to EDataBookFactory.
Matthew Barnes [Tue, 8 Jun 2010 13:21:05 +0000 (09:21 -0400)]
Add a migration routine to EDataBookFactory.

Migration runs just before the main loop starts.
It's just a sequence of local directory renames.

~/.evolution/cache/addressbook  -->  $XDG_CACHE_HOME/evolution/addressbook
~/.evolution/addressbook/local  -->  $XDG_DATA_HOME/evolution/addressbook

13 years agoAdd a migration routine to EDataCalFactory.
Matthew Barnes [Tue, 8 Jun 2010 12:58:10 +0000 (08:58 -0400)]
Add a migration routine to EDataCalFactory.

Migration runs just before the main loop starts.
It's just a sequence of local directory renames.

~/.evolution/cache/calendar  -->  $XDG_CACHE_HOME/evolution/calendar
~/.evolution/cache/memos     -->  $XDG_CACHE_HOME/evolution/memos
~/.evolution/cache/tasks     -->  $XDG_CACHE_HOME/evolution/tasks
~/.evolution/calendar/local  -->  $XDG_DATA_HOME/evolution/calendar
~/.evolution/memos/local     -->  $XDG_DATA_HOME/evolution/memos
~/.evolution/tasks/local     -->  $XDG_DATA_HOME/evolution/tasks

We also migrate Evolution-Exchange account storage:

~/.evolution/exchange        --> $XDG_DATA_HOME/evolution/exchange

(After first cleaning up Exchange attachment cache directories.)

13 years agoComply with XDG Base Directory Specification.
Matthew Barnes [Mon, 7 Jun 2010 13:17:44 +0000 (09:17 -0400)]
Comply with XDG Base Directory Specification.

This changes the output of the base directory functions:

e_get_user_cache_dir()  now returns  "$XDG_CACHE_HOME/evolution"
e_get_user_config_dir() now returns  "$XDG_CONFIG_HOME/evolution"
e_get_user_data_dir()   now returns  "$XDG_DATA_HOME/evolution"

Also, fix test cases with hard-coded directories.

13 years agoUpdated Spanish translation
Jorge González [Mon, 26 Jul 2010 19:03:27 +0000 (21:03 +0200)]
Updated Spanish translation

13 years agoBug #625282 - Quick add contact claims on console
Milan Crha [Mon, 26 Jul 2010 07:52:25 +0000 (09:52 +0200)]
Bug #625282 - Quick add contact claims on console

13 years agoUpdated Hebrew translation.
Yaron Shahrabani [Sat, 24 Jul 2010 10:53:29 +0000 (13:53 +0300)]
Updated Hebrew translation.

13 years agoUpdate Simplified Chinese translation.
Aron Xu [Sat, 24 Jul 2010 05:27:22 +0000 (13:27 +0800)]
Update Simplified Chinese translation.

14 years agoEek, typo.
Matthew Barnes [Thu, 22 Jul 2010 17:13:09 +0000 (13:13 -0400)]
Eek, typo.

14 years agoFix "system" EBook/ECal creation functions.
Matthew Barnes [Thu, 22 Jul 2010 14:00:34 +0000 (10:00 -0400)]
Fix "system" EBook/ECal creation functions.

The local "system" URIs are trivial now, it's just "local:system".

    e_book_new_system_addressbook()
    e_cal_new_system_calendar()
    e_cal_new_system_tasks()
    e_cal_new_system_memos()

14 years agoBug 602287 - Avoid racing with camel_operation_mute()
Matthew Barnes [Thu, 22 Jul 2010 11:28:24 +0000 (07:28 -0400)]
Bug 602287 - Avoid racing with camel_operation_mute()

14 years agoBug #624891 - Various compiler warnings in git/master
Milan Crha [Thu, 22 Jul 2010 09:11:44 +0000 (11:11 +0200)]
Bug #624891 - Various compiler warnings in git/master

14 years agoRefactor ECalBackendCache.
Matthew Barnes [Wed, 21 Jul 2010 01:26:45 +0000 (21:26 -0400)]
Refactor ECalBackendCache.

ECalBackendCache doesn't need to know the URI of the backend, it just
needs a file name.  Backends must now provide the name of the cache
file.  This breaks the API, but eliminates duplicate logic.

Couple other miscellaneous functions removed:

    e_book_backend_construct()
    e_book_backend_cache_exists()
    e_book_backend_db_cache_exists()

libedata-book's shared object name is bumped for the API break.

Adapt backends to the new API.

14 years agoRefactor ECalBackendStore / ECalBackendFileStore.
Matthew Barnes [Tue, 20 Jul 2010 23:36:11 +0000 (19:36 -0400)]
Refactor ECalBackendStore / ECalBackendFileStore.

These classes don't need to know the URI and source type of the backend,
they just need a file name.  Backends must now provide the name of the
cache file.  This breaks the API, but eliminates duplicate logic.

libedata-cal's shared object name is bumped for the API break.

Adapt backends to the new API.

14 years agoECalBackendFile overrides its cache directory.
Matthew Barnes [Tue, 20 Jul 2010 21:43:34 +0000 (17:43 -0400)]
ECalBackendFile overrides its cache directory.

It doesn't need a cache, so its cache directory is its data directory.

14 years agoEDataCal: Add a getCacheDir() D-Bus method.
Matthew Barnes [Tue, 20 Jul 2010 21:26:45 +0000 (17:26 -0400)]
EDataCal: Add a getCacheDir() D-Bus method.

ECal calls getCacheDir() to find the local attachment store.  ECal
caches the result, so getCacheDir() is only called once per instance.

14 years agoECalBackend: Add a "cache-dir" string property.
Matthew Barnes [Tue, 20 Jul 2010 21:06:48 +0000 (17:06 -0400)]
ECalBackend: Add a "cache-dir" string property.

Holds the directory where data should be cached for that specific
backend instance.

e_cal_backend_get_cache_dir()
e_cal_backend_set_cache_dir()

14 years agoECalBackend cleanup.
Matthew Barnes [Tue, 20 Jul 2010 20:10:23 +0000 (16:10 -0400)]
ECalBackend cleanup.

14 years agoECalBackendStore cleanup.
Matthew Barnes [Tue, 20 Jul 2010 15:48:06 +0000 (11:48 -0400)]
ECalBackendStore cleanup.

14 years agoECalBackendFileStore cleanup.
Matthew Barnes [Tue, 20 Jul 2010 15:31:05 +0000 (11:31 -0400)]
ECalBackendFileStore cleanup.

14 years agoUpdated Galician translations
Fran Diéguez [Wed, 21 Jul 2010 14:42:43 +0000 (16:42 +0200)]
Updated Galician translations

14 years agoFix bug #624909
Jeff Cai [Wed, 21 Jul 2010 10:18:12 +0000 (18:18 +0800)]
Fix bug #624909

14 years agoEBookBackend: Add a "cache-dir" string property.
Matthew Barnes [Tue, 20 Jul 2010 13:47:51 +0000 (09:47 -0400)]
EBookBackend: Add a "cache-dir" string property.

Holds the directory where data should be cached for that specific
backend instance.

e_book_backend_get_cache_dir()
e_book_backend_set_cache_dir()

14 years agoEBookBackend cleanup.
Matthew Barnes [Tue, 20 Jul 2010 12:12:14 +0000 (08:12 -0400)]
EBookBackend cleanup.

14 years agoThere is no need to call e_book_backend_construct().
Matthew Barnes [Tue, 20 Jul 2010 11:58:36 +0000 (07:58 -0400)]
There is no need to call e_book_backend_construct().

14 years agoHeader file cleanup.
Matthew Barnes [Tue, 20 Jul 2010 11:32:08 +0000 (07:32 -0400)]
Header file cleanup.

14 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Tue, 20 Jul 2010 06:25:28 +0000 (14:25 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 19 Jul 2010 19:41:34 +0000 (21:41 +0200)]
Updated Norwegian bokmål translation

14 years agoAdd missing files to POTFILES.in. Fixes bug #624743.
Andre Klapper [Mon, 19 Jul 2010 19:14:48 +0000 (21:14 +0200)]
Add missing files to POTFILES.in. Fixes bug #624743.

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 19 Jul 2010 12:17:17 +0000 (14:17 +0200)]
Updated Norwegian bokmål translation

14 years agoFixed headers in galician translation file
Fran Diéguez [Sun, 18 Jul 2010 17:11:37 +0000 (19:11 +0200)]
Fixed headers in galician translation file

14 years agoUpdated Spanish translation
Jorge González [Sun, 18 Jul 2010 10:10:34 +0000 (12:10 +0200)]
Updated Spanish translation

14 years agoECalBackendFile: Fix an uninitialized variable
Matthew Barnes [Fri, 16 Jul 2010 10:53:06 +0000 (06:53 -0400)]
ECalBackendFile: Fix an uninitialized variable

14 years agoRemove deprecated ECalBackend::set_default_timezone
Milan Crha [Fri, 16 Jul 2010 07:34:47 +0000 (09:34 +0200)]
Remove deprecated ECalBackend::set_default_timezone

It's deprecated since 2006-07-10

14 years agoBroke a few things with the local source URI change
Matthew Barnes [Thu, 15 Jul 2010 21:58:51 +0000 (17:58 -0400)]
Broke a few things with the local source URI change

ECalBackendFileFactory:

- The factory's get_protocol() method returns "local" now.

- uri_to_path() needs to actually build the path to its ICS file
  now instead of just converting the backend's URI to a filename.

EBookBackendFileFactory:

- Similar fixes.

14 years agoAvoid absolute paths in "On This Computer" source groups.
Matthew Barnes [Thu, 15 Jul 2010 17:08:50 +0000 (13:08 -0400)]
Avoid absolute paths in "On This Computer" source groups.

A base URI of "local:" is sufficient to identify the "On This Computer"
source group.  No other source group uses that URI scheme, and it avoids
an entire class of portability problems that come with using an absolute
"file:" URI to point to user-specific data:

- What if the user's home directory is renamed?
- What if settings are moved to a new host under a different user name?
- What if settings are copied to another user account on the same host?
- Migrating to XDG base dirs is otherwise a giant PITA.

14 years agoFix e-data-book-factory.c regression.
Matthew Barnes [Thu, 15 Jul 2010 12:31:02 +0000 (08:31 -0400)]
Fix e-data-book-factory.c regression.

14 years agoCamelOperation debugging improvement
Matthew Barnes [Thu, 15 Jul 2010 09:46:46 +0000 (05:46 -0400)]
CamelOperation debugging improvement

When calling camel_operation_unref() with a non-empty status stack,
show what status messages were left over in the status stack.

14 years agoBug 624417 - Fix error handling in e_cal_backend_sync_get_timezone()
Matthew Barnes [Thu, 15 Jul 2010 09:31:15 +0000 (05:31 -0400)]
Bug 624417 - Fix error handling in e_cal_backend_sync_get_timezone()

Don't create a GError if we're successful.

14 years agoEDataBookFactory cleanup.
Matthew Barnes [Tue, 8 Jun 2010 13:18:02 +0000 (09:18 -0400)]
EDataBookFactory cleanup.

14 years agoEDataCalFactory cleanup.
Matthew Barnes [Mon, 7 Jun 2010 19:22:37 +0000 (15:22 -0400)]
EDataCalFactory cleanup.

14 years agoBug 624029 - Copying messages across stores is broken
Matthew Barnes [Wed, 14 Jul 2010 20:44:52 +0000 (16:44 -0400)]
Bug 624029 - Copying messages across stores is broken

14 years agoBug 624316 - Disable debug messages in GroupWise calendar backend
Matthew Barnes [Wed, 14 Jul 2010 18:48:01 +0000 (14:48 -0400)]
Bug 624316 - Disable debug messages in GroupWise calendar backend

14 years agoBug 608299 - Cut/copy error when selection has trailing comma
Matthew Barnes [Tue, 13 Jul 2010 21:26:17 +0000 (17:26 -0400)]
Bug 608299 - Cut/copy error when selection has trailing comma

When cutting or copying a selection that includes a trailing comma, the
subsequent address was also getting copied to the clipboard.  The fix is
to ignore trailing whitespace and commas when scanning the selection for
email addresses.

14 years agoRemoved folders from connection when operations gets done - handles when jobs return...
Chenthill Palanisamy [Tue, 13 Jul 2010 19:52:13 +0000 (01:22 +0530)]
Removed folders from connection when operations gets done - handles when jobs return back without executing

14 years agoAdd connection manager to imapx
Chenthill Palanisamy [Tue, 13 Jul 2010 19:30:57 +0000 (01:00 +0530)]
Add connection manager to imapx

14 years agoBug 624325 - CamelPOP3Store missing some methods
Matthew Barnes [Tue, 13 Jul 2010 13:56:42 +0000 (09:56 -0400)]
Bug 624325 - CamelPOP3Store missing some methods

There's a corresponding change on the Evolution side to catch and clear
the CAMEL_STORE_ERROR_NO_FOLDER that CamelPOP3Store's get_folder_info()
method now sets to satisfy the new runtime checks.

14 years agoCamelPOP3Store cleanup.
Matthew Barnes [Tue, 13 Jul 2010 12:41:39 +0000 (08:41 -0400)]
CamelPOP3Store cleanup.

14 years agoBug #612082 - Do not expose off_t in public API, use goffset instead
Milan Crha [Tue, 13 Jul 2010 12:47:12 +0000 (14:47 +0200)]
Bug #612082 - Do not expose off_t in public API, use goffset instead

14 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Tue, 13 Jul 2010 12:25:38 +0000 (14:25 +0200)]
Updated Norwegian bokmål translation

14 years agolibebook.pc.in missing camel-1.2 requirement.
Matthew Barnes [Tue, 13 Jul 2010 03:16:53 +0000 (23:16 -0400)]
libebook.pc.in missing camel-1.2 requirement.

EDestination uses CamelInternetAddress.

14 years agoUpdated Galician translations
Fran Diéguez [Tue, 13 Jul 2010 00:41:50 +0000 (02:41 +0200)]
Updated Galician translations

14 years agoPost-release version bump.
Matthew Barnes [Mon, 12 Jul 2010 22:48:40 +0000 (18:48 -0400)]
Post-release version bump.

14 years agoNEWS update for 2.31.5 release.
Matthew Barnes [Mon, 12 Jul 2010 22:28:55 +0000 (18:28 -0400)]
NEWS update for 2.31.5 release.

14 years agoBug #618938 - Crash when reading calendar acknowledgement message
Milan Crha [Mon, 12 Jul 2010 14:44:25 +0000 (16:44 +0200)]
Bug #618938 - Crash when reading calendar acknowledgement message

14 years agoBug #623936 - 75 second delay when creating new DAV entries in Zimbra
Milan Crha [Mon, 12 Jul 2010 14:16:32 +0000 (16:16 +0200)]
Bug #623936 - 75 second delay when creating new DAV entries in Zimbra

14 years agoFix another g_propagate_error() runtime warning.
Matthew Barnes [Mon, 12 Jul 2010 11:59:20 +0000 (07:59 -0400)]
Fix another g_propagate_error() runtime warning.

14 years agoimapx: Ensure imapx_stream_fill() sets the error on zero-sized read.
David Woodhouse [Mon, 12 Jul 2010 11:46:01 +0000 (12:46 +0100)]
imapx: Ensure imapx_stream_fill() sets the error on zero-sized read.

We treat an empty read as an error, since we should never be here unless
we're either in the middle of reading a response, or poll() says the fd
is readable. Before commit 46938c348 (the conversion to GError), we'd set
a generic 'IO Error' exception in camel_imapx_stream_token() when
imapx_stream_fill() returned -1 to indicate an error. But now we don't
do that any more, so imapx_stream_fill() needs to reliably set the GError.

Otherwise we end up in an endless loop in imapx_step().

14 years agoFix runtime warning in camel_filter_driver_flush().
Matthew Barnes [Mon, 12 Jul 2010 11:49:58 +0000 (07:49 -0400)]
Fix runtime warning in camel_filter_driver_flush().

Only propagate the error if there's an error to propagate.

14 years agoImprove error handling in CamelStreamBuffer::read().
Matthew Barnes [Mon, 12 Jul 2010 11:05:48 +0000 (07:05 -0400)]
Improve error handling in CamelStreamBuffer::read().

If we managed to successfully read some data before camel_stream_read()
failed, discard the GError and return the number of bytes successfully
read.  If camel_stream_read() failed immediately, propagate the GError
and return -1.

14 years agoimapx: camel_imapx_stream_astring() returns 0 on success.
David Woodhouse [Mon, 12 Jul 2010 03:11:38 +0000 (04:11 +0100)]
imapx: camel_imapx_stream_astring() returns 0 on success.

14 years agoUpdate API documentation.
Matthew Barnes [Mon, 12 Jul 2010 02:19:33 +0000 (22:19 -0400)]
Update API documentation.