platform/upstream/evolution-data-server.git
10 years agoAdd CamelIMAPXLogger.
Matthew Barnes [Tue, 4 Feb 2014 17:38:04 +0000 (12:38 -0500)]
Add CamelIMAPXLogger.

This is a GConverter that just echos data to standard output if the I/O
debugging setting is enabled ('CAMEL_DEBUG=imapx:io').  Attaches to the
GInputStream and GOutputStream.

10 years agoIMAPX: Use GOutputStream instead of CamelStream.
Matthew Barnes [Thu, 23 Jan 2014 15:48:33 +0000 (10:48 -0500)]
IMAPX: Use GOutputStream instead of CamelStream.

This is the easier case.  Input streams need to be buffered and parsed.

10 years agoIMAPX: Populate the input and output streams.
Matthew Barnes [Thu, 23 Jan 2014 12:27:52 +0000 (07:27 -0500)]
IMAPX: Populate the input and output streams.

Still not used yet, but they're set now.  Will need to wrapper the
input stream in a custom GBufferedInputStream subclass for parsing.

10 years agoIMAPX: Add camel_imapx_server_ref_output_stream().
Matthew Barnes [Thu, 23 Jan 2014 11:56:28 +0000 (06:56 -0500)]
IMAPX: Add camel_imapx_server_ref_output_stream().

Returns the GOutputStream for a CamelIMAPXServer, which is owned by
either a GTcpConnection or a GSubprocess.

The function doesn't actually return anything yet; just roughing in
the API.  Will make it work in subsequent commits.

10 years agoIMAPX: Add camel_imapx_server_ref_input_stream().
Matthew Barnes [Thu, 23 Jan 2014 12:01:25 +0000 (07:01 -0500)]
IMAPX: Add camel_imapx_server_ref_input_stream().

Returns the GInputStream for a CamelIMAPXServer, which is owned by
either a GTcpConnection or a GSubprocess.

The function doesn't actually return anything yet; just roughing in
the API.  Will make it work in subsequent commits.

10 years agoIMAPX: Use GSubprocess to implement the shell-command setting.
Matthew Barnes [Wed, 22 Jan 2014 19:00:28 +0000 (14:00 -0500)]
IMAPX: Use GSubprocess to implement the shell-command setting.

GSubprocess returns separate input/output streams for stdout/stdin,
and therefore can't be wrapped in a CamelStream.  So this (hidden)
feature is broken until I can fully port IMAPX to GIO streams.

Also, GSubprocess is only available in GLib 2.39, so attempts to
use this feature with an older GLib will fail with a helpful error
message.

10 years agoCamelDataWrapper: Add GOutputStream-based methods.
Matthew Barnes [Mon, 27 Jan 2014 15:46:01 +0000 (10:46 -0500)]
CamelDataWrapper: Add GOutputStream-based methods.

These will eventually replace their CamelStream-based counterparts.

New functions:

  camel_data_wrapper_write_to_output_stream_sync()
  camel_data_wrapper_write_to_output_stream()
  camel_data_wrapper_write_to_output_stream_finish()
  camel_data_wrapper_decode_to_output_stream_sync()
  camel_data_wrapper_decode_to_output_stream()
  camel_data_wrapper_decode_to_output_stream_finish()

Also added/adapted subclass methods in:

  CamelMimeMessage
  CamelMimePart
  CamelMultipart
  CamelMultipartSigned

10 years agoUpdated Lithuanian translation
Aurimas Černius [Fri, 21 Feb 2014 20:27:57 +0000 (22:27 +0200)]
Updated Lithuanian translation

10 years agoIntroduce camel_debug_get_backtrace()
Milan Crha [Fri, 21 Feb 2014 12:21:13 +0000 (13:21 +0100)]
Introduce camel_debug_get_backtrace()

Just for easier debugging and reuse of a code. This might not
be used in a production code.

10 years agoFix a memory leak in imapx_untagged_lsub()
Milan Crha [Thu, 20 Feb 2014 13:32:45 +0000 (14:32 +0100)]
Fix a memory leak in imapx_untagged_lsub()

Forgotten unref of a 'response' variable.

10 years agoBug #724729 - camel-folder.c:folder_changed() blocks the UI thread
Milan Crha [Thu, 20 Feb 2014 10:34:03 +0000 (11:34 +0100)]
Bug #724729 - camel-folder.c:folder_changed() blocks the UI thread

10 years ago[Weather Calendar] Weather info source never freed
Milan Crha [Wed, 19 Feb 2014 17:43:44 +0000 (18:43 +0100)]
[Weather Calendar] Weather info source never freed

The priv->source was allocated, but never freed, especially after
the weather backend was freed, which might cause use-after-free
in the finished_retrieval_cb() callback, when the weather backend
was freed during the data update.

This might be the cause of a crash reported at:
https://bugzilla.redhat.com/show_bug.cgi?id=1065796

10 years agoBug #274316 - [IMAP] Follow-up flag lost on message move/copy
Milan Crha [Wed, 19 Feb 2014 11:57:49 +0000 (12:57 +0100)]
Bug #274316 - [IMAP] Follow-up flag lost on message move/copy

This applies to any only-locally-stored flags (user tags) on a message.

10 years agoBug #694084 - IMAPx doesn't stick Labels
Milan Crha [Tue, 18 Feb 2014 13:12:04 +0000 (14:12 +0100)]
Bug #694084 - IMAPx doesn't stick Labels

10 years agoPost-release version bump.
Matthew Barnes [Mon, 17 Feb 2014 00:57:23 +0000 (19:57 -0500)]
Post-release version bump.

10 years agoNEWS update for 3.11.90 release.
Matthew Barnes [Mon, 17 Feb 2014 00:24:52 +0000 (19:24 -0500)]
NEWS update for 3.11.90 release.

10 years agoUpdate API documentation.
Matthew Barnes [Mon, 17 Feb 2014 00:49:04 +0000 (19:49 -0500)]
Update API documentation.

10 years agoFixed Russian translation
Yuri Myasoedov [Sun, 16 Feb 2014 04:55:12 +0000 (08:55 +0400)]
Fixed Russian translation

10 years agoBug #724343 - Moving emails between IMAP server results in wrong date
Milan Crha [Fri, 14 Feb 2014 11:05:31 +0000 (12:05 +0100)]
Bug #724343 - Moving emails between IMAP server results in wrong date

10 years agoAdd a 'secret-monitor' module.
Matthew Barnes [Thu, 13 Feb 2014 19:49:17 +0000 (14:49 -0500)]
Add a 'secret-monitor' module.

Similar to 'cache-reaper', this periodically scans the set of cached EDS
passwords and deletes those that have no corresponding ESource.  It also
updates the password item's label based on the ESource's display name in
case the user renamed the ESource.

10 years agoAdd e_source_dup_secret_label().
Matthew Barnes [Thu, 13 Feb 2014 20:39:53 +0000 (15:39 -0500)]
Add e_source_dup_secret_label().

Creates a label string based on the ESource's display name for use with
SecretItem.

10 years agoBug #720529 - Merge RFC2047 encoded words before ensuring UTF-8 validity
Milan Crha [Thu, 13 Feb 2014 18:18:37 +0000 (19:18 +0100)]
Bug #720529 - Merge RFC2047 encoded words before ensuring UTF-8 validity

10 years agoEAuthenticationSession: Remove an unneeded #include.
Matthew Barnes [Thu, 13 Feb 2014 15:03:23 +0000 (10:03 -0500)]
EAuthenticationSession: Remove an unneeded #include.

10 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Thu, 13 Feb 2014 07:16:45 +0000 (08:16 +0100)]
Updated Norwegian bokmål translation

10 years agoESource: Add functions for password management.
Matthew Barnes [Tue, 11 Feb 2014 23:39:14 +0000 (18:39 -0500)]
ESource: Add functions for password management.

Replaces the EAuthenticationSession password functions.

Makes password management more accessible.  There's been cases where I
wanted to access the keyring from clients or just outside of the normal
authenication workflow, and had to copy the schema for EDS passwords.

All that's needed from the ESource is its UID, so these functions can be
called on unsubmitted "scratch" sources as well as registered sources.

This will make it possible to accept a password during account creation
and preemptively store it in the keyring to avoid a system modal dialog
when first connecting.

New functions:

   e_source_store_password_sync()
   e_source_store_password()
   e_source_store_password_finish()
   e_source_lookup_password_sync()
   e_source_lookup_password()
   e_source_lookup_password_finish()
   e_source_delete_password_sync()
   e_source_delete_password()
   e_source_delete_password_finish()

10 years agoESource: Nit-picky documentation tweak.
Matthew Barnes [Tue, 11 Feb 2014 23:38:49 +0000 (18:38 -0500)]
ESource: Nit-picky documentation tweak.

10 years agoBug #719806 - [IMAP+] Empty trash doesn't work with a real trash folder
Milan Crha [Wed, 12 Feb 2014 10:40:44 +0000 (11:40 +0100)]
Bug #719806 - [IMAP+] Empty trash doesn't work with a real trash folder

10 years agoBug 723539 - Use SmtpAuth* properties from org.gnome.OnlineAccounts.Mail
Matthew Barnes [Mon, 10 Feb 2014 20:21:01 +0000 (15:21 -0500)]
Bug 723539 - Use SmtpAuth* properties from org.gnome.OnlineAccounts.Mail

GOA 3.11.5 now tells us which SMTP authentication mechanisms to use, so
we no longer have to hardcode a guess which is always wrong for someone.

Current options are: LOGIN, PLAIN, XOAUTH2

10 years agoBug #655806 - Folder deletion is very slow
Fabiano Fidêncio [Mon, 3 Feb 2014 16:03:26 +0000 (17:03 +0100)]
Bug #655806 - Folder deletion is very slow

10 years agoUpdated French translation
Claude Paroz [Sat, 8 Feb 2014 15:50:31 +0000 (16:50 +0100)]
Updated French translation

10 years agoAdd camel_mime_parser_init_with_bytes().
Matthew Barnes [Thu, 6 Feb 2014 18:03:12 +0000 (13:03 -0500)]
Add camel_mime_parser_init_with_bytes().

Convenience function creates a GMemoryInputStream from a GBytes
and hands it off to camel_mime_parser_init_with_input_stream().

10 years agoBug #720751 - camel_tag_set() doesn't copy tag's name properly
Milan Crha [Thu, 6 Feb 2014 17:20:03 +0000 (18:20 +0100)]
Bug #720751 - camel_tag_set() doesn't copy tag's name properly

10 years agoimapx_call_idle: Do not print Cancelled errors on console
Milan Crha [Thu, 6 Feb 2014 12:00:47 +0000 (13:00 +0100)]
imapx_call_idle: Do not print Cancelled errors on console

10 years agoReimplement camel_mime_parser_init_with_fd().
Matthew Barnes [Wed, 5 Feb 2014 21:50:19 +0000 (16:50 -0500)]
Reimplement camel_mime_parser_init_with_fd().

Now creates a GUnixInputStream and hands it off to
camel_mime_parser_init_with_input_stream().

Removed functions:

  camel_mime_parser_fd()

10 years agoAdd camel_mime_parser_init_with_input_stream().
Matthew Barnes [Wed, 5 Feb 2014 21:40:38 +0000 (16:40 -0500)]
Add camel_mime_parser_init_with_input_stream().

Similar to camel_mime_parser_init_with_stream(), but takes a
GInputStream instead of a CamelStream.

10 years agoBug #720940 - Always asked to synchronize folders when going offline
Milan Crha [Wed, 5 Feb 2014 16:58:59 +0000 (17:58 +0100)]
Bug #720940 - Always asked to synchronize folders when going offline

10 years agoESource changes not always written to a disk
Milan Crha [Wed, 5 Feb 2014 12:56:02 +0000 (13:56 +0100)]
ESource changes not always written to a disk

This is a regression after my commit 294ec486b3bcb82192844fba07a642a789d19e25,
but if you look few lines above, how the save-to-disk works, then it's obvious
that this could easily break. The actual problem here was that if there didn't
change any of loaded extensions, then the source didn't change, due to avoided
test of changes on unloaded extensions, which wasn't a problem before the above
cited commit, because the code relied on false 'changed' notifications.

10 years agoBug #721030 - WebDAV: download_contacts() leaks
Michel Dänzer [Tue, 4 Feb 2014 18:37:20 +0000 (19:37 +0100)]
Bug #721030 - WebDAV: download_contacts() leaks

10 years agoimapx_query_auth_types_sync: Remove offline check.
Matthew Barnes [Mon, 3 Feb 2014 16:54:53 +0000 (11:54 -0500)]
imapx_query_auth_types_sync: Remove offline check.

Let the operation fail naturally when the IMAP server isn't reachable.

10 years agoSimplify imapx_query_auth_types_sync().
Matthew Barnes [Mon, 3 Feb 2014 16:43:13 +0000 (11:43 -0500)]
Simplify imapx_query_auth_types_sync().

A new CamelIMAPXServer instance is not connected, so no need to
check for it.  Must be leftover logic from CamelIMAPXConnManager.

10 years agoBug #720676 - [IMAPX] Do more searching server-side (take ][)
Milan Crha [Mon, 3 Feb 2014 14:31:30 +0000 (15:31 +0100)]
Bug #720676 - [IMAPX] Do more searching server-side (take ][)

The first patch caused server-side searching also for cases where all
data were available locally, which made searching slower. This tests
first if everything in match-all is available locally, and if so, then
it uses local search, rather than the server side.

10 years agoBug 723481 - Wrong callback signature in imapx_process_read_to_read()
Matthew Barnes [Mon, 3 Feb 2014 13:23:03 +0000 (08:23 -0500)]
Bug 723481 - Wrong callback signature in imapx_process_read_to_read()

Didn't realize UNIX file descriptor GSources use a special callback
signature.  Could be better documented in g_unix_fd_source_new().

10 years agoupdated kn.po
Shankar Prasad [Mon, 3 Feb 2014 12:08:02 +0000 (17:38 +0530)]
updated kn.po

10 years agoPost-release version bump.
Matthew Barnes [Sun, 2 Feb 2014 17:36:18 +0000 (12:36 -0500)]
Post-release version bump.

10 years agoNEWS update for 3.11.5 release.
Matthew Barnes [Sun, 2 Feb 2014 17:29:11 +0000 (12:29 -0500)]
NEWS update for 3.11.5 release.

10 years agoUpdate API documentation.
Matthew Barnes [Sun, 2 Feb 2014 17:31:50 +0000 (12:31 -0500)]
Update API documentation.

10 years agoBug 719583 - Get a ESourceRegistry singleton
Xavier Claessens [Sun, 2 Feb 2014 14:53:29 +0000 (09:53 -0500)]
Bug 719583 - Get a ESourceRegistry singleton

10 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sun, 2 Feb 2014 12:07:00 +0000 (20:07 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

10 years agomaildir_store_get_folder_sync: Fix a use-after-free issue
Milan Crha [Fri, 31 Jan 2014 12:20:00 +0000 (13:20 +0100)]
maildir_store_get_folder_sync: Fix a use-after-free issue

10 years agoAdd CamelNullOutputStream.
Matthew Barnes [Thu, 30 Jan 2014 17:33:11 +0000 (12:33 -0500)]
Add CamelNullOutputStream.

GOutputStream subclass to eventually replace CamelStreamNull.

10 years agoIMAPX: Remove unused CAMEL_IMAPX_COMMAND_STREAM option.
Matthew Barnes [Thu, 30 Jan 2014 14:35:48 +0000 (09:35 -0500)]
IMAPX: Remove unused CAMEL_IMAPX_COMMAND_STREAM option.

99% sure this is unused.  Or at least can't find any cases of "%S" in
CamelIMAPXCommand format strings.

10 years agoBug #721286 - IMAPx: read messages become unread when reopening Evolution ][
Milan Crha [Wed, 29 Jan 2014 18:54:44 +0000 (19:54 +0100)]
Bug #721286 - IMAPx: read messages become unread when reopening Evolution ][

Found one more issue when testing the same change for gnome-3-10:

d) do not use CamelOperation in the parser thread, because it can be
   cancelled at an application end with camel_operation_cancel_all() call,
   which is done too early, before any pending jobs are properly finished
   (it can be IDLE job, or save of folder changes back to the server)

10 years agoBug #721286 - IMAPx: read messages become unread when reopening Evolution
Milan Crha [Wed, 29 Jan 2014 11:50:57 +0000 (12:50 +0100)]
Bug #721286 - IMAPx: read messages become unread when reopening Evolution

Couple things changed here:

a) the camel_folder_summary_get_changed() could return list of changed
   messages only if they were loaded in memory, which is not correct - I
   think it's part of the issue why it failed

b) it could happen that imapx_server_sync_changes() was called to save some
   changes, but then didn't change anything; in such cases, messages marked
   as locally changed were never unmarked, which led to false tests; I added
   a function to unmark the messages as locally changed (this can cause slow
   close of evolution for the first time, due to unsetting of the flag, but
   later ends are fine)

c) state of the message flags on the server is the master state, except of
   the state where locally stored info is marked as locally changed. This
   allows to show proper state of messages on the server (it is influenced
   by a) and b) too, so it might take up to two evolution starts to get
   the same view in evolution as is the state on the server).

10 years agocamel_flag_list_copy: Avoid false 'changed' notifications
Milan Crha [Tue, 28 Jan 2014 14:25:54 +0000 (15:25 +0100)]
camel_flag_list_copy: Avoid false 'changed' notifications

The function, as written, returned that the destination list
changed even in cases where both flag lists were empty. This
made for example IMAPx report that each message in a folder
hanged, even there did not change any.

10 years agoimapx_write_flags: Fix a typo which flag to skip
Milan Crha [Mon, 27 Jan 2014 12:50:37 +0000 (13:50 +0100)]
imapx_write_flags: Fix a typo which flag to skip

The code was surely trying to avoid writing CAMEL_IMAPX_MESSAGE_RECENT
flag back to the server, but the actual behaviour was that each flag
had been ignored, if the CAMEL_IMAPX_MESSAGE_RECENT was set.
This could have an effect of copied read message being marked as unread
in the destination IMAPx folder.

10 years ago[Esource] Do not set properties on load which did not change
Milan Crha [Fri, 24 Jan 2014 16:39:45 +0000 (17:39 +0100)]
[Esource] Do not set properties on load which did not change

When calling g_object_set(), g_object_set_property() and similar
set functions, the GObject itself notifies about the property change,
even if the value didn't change at all. This was exhibited by false
notifications when (re)loading ESource on a change on all its saved
properties, which, in particular, was causing bug #722399.

10 years agoUpdate Chinese simplified translation
Wylmer Wang [Fri, 24 Jan 2014 13:18:33 +0000 (21:18 +0800)]
Update Chinese simplified translation

10 years agoBug #720943 - vFolder does not refresh automatically
Milan Crha [Thu, 23 Jan 2014 12:41:37 +0000 (13:41 +0100)]
Bug #720943 - vFolder does not refresh automatically

10 years agoAssamese translation updated
Nilamdyuti Goswami [Wed, 22 Jan 2014 16:18:46 +0000 (21:48 +0530)]
Assamese translation updated

10 years agoBug 722275 - IMAPX: Parser trips on mailbox containing '+'
Matthew Barnes [Wed, 22 Jan 2014 13:56:08 +0000 (08:56 -0500)]
Bug 722275 - IMAPX: Parser trips on mailbox containing '+'

Mailbox names containing a '+' character were tripping up the parser due
to it being treated as one of a special set of characters to distinguish
identifiers from IMAP syntax.  But I don't think '+' is necessary in the
set of characters.  For continuations, at least, it should always follow
a newline character, with is also a special character.

10 years agoIMAPX: Remove some unused character macros.
Matthew Barnes [Tue, 21 Jan 2014 16:53:47 +0000 (11:53 -0500)]
IMAPX: Remove some unused character macros.

10 years agoBug #702709 - Do network background operations only if the CamelSession is online
Milan Crha [Tue, 21 Jan 2014 11:45:56 +0000 (12:45 +0100)]
Bug #702709 - Do network background operations only if the CamelSession is online

This may prevent any network background operations, when associated
CamelSession is offline, like when the machine gets suspended or is
just resumed.

10 years ago[CamelGPGContext] Prefer gpg2 over gpg
Milan Crha [Tue, 21 Jan 2014 07:21:18 +0000 (08:21 +0100)]
[CamelGPGContext] Prefer gpg2 over gpg

If there is a newer version installed, then use it, rather than
the old.

10 years agoServer-side memory leaks in calendar factory
Milan Crha [Mon, 20 Jan 2014 19:12:40 +0000 (20:12 +0100)]
Server-side memory leaks in calendar factory

This change addresses:
- typo for GDestroyNotify (was being used ref, instead of unref)
- leaking data_cal object when opening a calendar
- DataCalView dispose didn't remove view from the backend

These led to memory leaks on both view and backend objects.

10 years ago[CalDAV] Force password ask on soup authenticate failure
Milan Crha [Mon, 20 Jan 2014 18:12:33 +0000 (19:12 +0100)]
[CalDAV] Force password ask on soup authenticate failure

Some servers may allow OPTIONS request on authenticated account with
a wrong password, but fail on REPORT and other queries, which makes
the calendar open routine not recognize the wrong password case.

10 years agoBug #722415 - Memo does not support Start Date property
Fabiano Fidêncio [Fri, 17 Jan 2014 16:51:14 +0000 (17:51 +0100)]
Bug #722415 - Memo does not support Start Date property

10 years agoAdd camel_imapx_server_shutdown().
Matthew Barnes [Sun, 19 Jan 2014 15:11:46 +0000 (10:11 -0500)]
Add camel_imapx_server_shutdown().

Lets CamelIMAPXStore explicitly tell its server to shut down command
processing.  Better than doing this implicitly from dispose(), since
both the idle and parser threads now hold a reference to the server,
and we no longer join with the idle thread.

10 years agoCamelStore: Remove noop_sync() method.
Matthew Barnes [Fri, 17 Jan 2014 20:14:23 +0000 (15:14 -0500)]
CamelStore: Remove noop_sync() method.

No longer used.

Removed functions:

  camel_store_noop_sync()
  camel_store_noop()
  camel_store_noop_finish()

10 years agoRemove imapx_store_noop_sync().
Matthew Barnes [Fri, 17 Jan 2014 20:12:45 +0000 (15:12 -0500)]
Remove imapx_store_noop_sync().

No longer needed; see the previous commit.

10 years agoCamelIMAPXServer: Ping the server after a period of inactivity.
Matthew Barnes [Fri, 17 Jan 2014 20:07:04 +0000 (15:07 -0500)]
CamelIMAPXServer: Ping the server after a period of inactivity.

If an IDLE command is in progress, stop and restart the command.
Otherwise issue a NOOP command.  This just lets the IMAP server
know we're still here to (hopefully) avoid being logged off.

This obviates the need for CamelStore's noop() method, which can
now be removed since it was only needed for IMAP.

10 years agoCamelIMAPXServer: A little code reorganization.
Matthew Barnes [Fri, 17 Jan 2014 20:06:40 +0000 (15:06 -0500)]
CamelIMAPXServer: A little code reorganization.

10 years agoCamelIMAPXServer: Work around refcounting issue in IDLE thread.
Matthew Barnes [Fri, 17 Jan 2014 16:02:02 +0000 (11:02 -0500)]
CamelIMAPXServer: Work around refcounting issue in IDLE thread.

Use the ol' weak-reference-as-callback-closure trick to avoid IDLE
command callbacks holding the last CamelIMAPXServer reference.

10 years agoAdd missing include to git.mk in examples/Makefile.am
Milan Crha [Fri, 17 Jan 2014 15:56:38 +0000 (16:56 +0100)]
Add missing include to git.mk in examples/Makefile.am

10 years agoBug #720676 - [IMAPX] Do more searching server-side
Milan Crha [Thu, 16 Jan 2014 20:34:10 +0000 (21:34 +0100)]
Bug #720676 - [IMAPX] Do more searching server-side

The SEARCH command doesn't support all the things evolution can
search for, but it can cover the most common cases, which speeds
searching significantly (especially when the folder content is not
required locally).

10 years agoCamelIMAPXServer: Use a main loop in the parser thread.
Matthew Barnes [Thu, 16 Jan 2014 13:33:16 +0000 (08:33 -0500)]
CamelIMAPXServer: Use a main loop in the parser thread.

The "while" loop previously used in the parser thread just blocked the
thread until incoming data became available.  Using a GMainLoop allows
us to add other event sources, like periodic timeouts to help keep the
connection alive without relying on Evolution.

I'm also hoping this will help eliminate the separate thread for IDLE,
since it now uses a GMainLoop as well.  But I don't quite have my head
around all the implications yet.

10 years agoCamelIMAPXServer: Remove unused casting macro.
Matthew Barnes [Thu, 16 Jan 2014 13:31:19 +0000 (08:31 -0500)]
CamelIMAPXServer: Remove unused casting macro.

10 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Thu, 16 Jan 2014 11:36:10 +0000 (19:36 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

10 years agoBug #687640 - Crash in caldav's initialize_backend()
Milan Crha [Wed, 15 Jan 2014 13:46:37 +0000 (14:46 +0100)]
Bug #687640 - Crash in caldav's initialize_backend()

Two threads could call initialize_backend() simultaneously,
overwriting data one to the other, which caused the crash.

10 years agoCamelIMAPXServer: Give IDLE state enum a proper type definition.
Matthew Barnes [Tue, 14 Jan 2014 17:00:09 +0000 (12:00 -0500)]
CamelIMAPXServer: Give IDLE state enum a proper type definition.

10 years agoCamelIMAPXServer: Use a main loop in the IDLE thread.
Matthew Barnes [Tue, 14 Jan 2014 16:10:37 +0000 (11:10 -0500)]
CamelIMAPXServer: Use a main loop in the IDLE thread.

Instead of mucking with infinite "while" loops and condition variables,
run a GMainLoop in the IDLE thread and attach a GSource from the parser
thread when an IDLE command should be issued.

10 years agoCamelIMAPXServer: Remove IDLE_LOCK/UNLOCK() macros.
Matthew Barnes [Tue, 14 Jan 2014 16:45:14 +0000 (11:45 -0500)]
CamelIMAPXServer: Remove IDLE_LOCK/UNLOCK() macros.

Just call g_mutex_lock/unlock() directly.

10 years agoCamelIMAPXServer: Move IDLE structs to private section.
Matthew Barnes [Tue, 14 Jan 2014 16:34:50 +0000 (11:34 -0500)]
CamelIMAPXServer: Move IDLE structs to private section.

10 years agoBug #721581 - Unable to write to ldap addressbook
Milan Crha [Mon, 13 Jan 2014 11:59:38 +0000 (12:59 +0100)]
Bug #721581 - Unable to write to ldap addressbook

10 years agoPost-release version bump.
Matthew Barnes [Mon, 13 Jan 2014 01:39:59 +0000 (20:39 -0500)]
Post-release version bump.

10 years agoNEWS update for 3.11.4 release.
Matthew Barnes [Mon, 13 Jan 2014 01:17:42 +0000 (20:17 -0500)]
NEWS update for 3.11.4 release.

10 years agoBug 720657 - IMAPX: No new messages are received
Matthew Barnes [Mon, 13 Jan 2014 00:51:19 +0000 (19:51 -0500)]
Bug 720657 - IMAPX: No new messages are received

Regression caused by removal of "mobile mode".  I misinterpreted some
complex expression embedded in a loop condition, which is why I don't
like complex expressions in loop conditions - difficult to for others
grok, which means high potential for mistakes.

10 years agoUpdated dutch translation Master (3.12)
hanniedu [Sat, 11 Jan 2014 15:32:54 +0000 (16:32 +0100)]
Updated dutch translation Master (3.12)

10 years agoIMAPX: Handle BODY[HEADER] in FETCH response.
Lubomir Rintel [Thu, 9 Jan 2014 17:19:53 +0000 (12:19 -0500)]
IMAPX: Handle BODY[HEADER] in FETCH response.

A broken IMAP server (whatever they use at Masaryk University) was
seen having this conversation:

  C: A001 UID FETCH 1:* (RFC822.SIZE RFC822.HEADER FLAGS)
  S: * 1 FETCH (RFC822.SIZE 4220 BODY[HEADER] {523} ...)
  ...

This confuses Camel into thinking it was a request for a full message
and it in turn fails to update the folder summary and issues a warning
about not being able to locate an appropriate FETCH job.

This works around the issue by treating BODY[HEADER] as equivalent to
RFC822.HEADER in untagged FETCH responses.

10 years agoCamelIMAPXNamespace: Allow NIL separator character.
Lubomir Rintel [Thu, 9 Jan 2014 16:20:13 +0000 (11:20 -0500)]
CamelIMAPXNamespace: Allow NIL separator character.

RFC 2342 allows it:

  Namespace_Response = "*" SP "NAMESPACE" SP Namespace SP Namespace
                       SP Namespace

  Namespace = nil / "(" 1*( "(" string SP  (<"> QUOTED_CHAR <"> /
              nil) *(Namespace_Response_Extension) ")" ) ")"
              ^^^

10 years agoconfigure.ac: trivial typo fix in last commit
Ryan Lortie [Wed, 8 Jan 2014 17:01:57 +0000 (12:01 -0500)]
configure.ac: trivial typo fix in last commit

-ldb vs. -ldl

10 years agotests: #include <sys/wait.h> for WIFEXITED
Ryan Lortie [Tue, 7 Jan 2014 21:36:12 +0000 (16:36 -0500)]
tests: #include <sys/wait.h> for WIFEXITED

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

10 years agoRemove #include <malloc.h> from a file
Ryan Lortie [Tue, 7 Jan 2014 21:31:53 +0000 (16:31 -0500)]
Remove #include <malloc.h> from a file

This ancient header has long been deprecated in favour of <stdlib.h> but
this file uses GLib memory functions anyway, so neither is required.

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

10 years agoBug 721733 - Tweak Berkeley DB detection logic
Ryan Lortie [Tue, 7 Jan 2014 21:10:13 +0000 (16:10 -0500)]
Bug 721733 - Tweak Berkeley DB detection logic

Make two changes to the logic that we use to find the Berkeley DB:

 - in the default case where --with-libdb is not given, do not attempt
   to add the default ${prefix}/include and ${prefix}/lib to the CFLAGS
   and LIBS.  Only do this if --with-libdb is explicitly given.

 - in the case where --with-libdb is not given, and DB_CFLAGS or DB_LIBS
   is already set, use those values instead of our own guesses

This allows the build to proceed on FreeBSD, where the headers are in an
unusual location and the library has an unusual name.

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

10 years agoBug 721527 - License text contains obsolete FSF postal address
Matthew Barnes [Mon, 6 Jan 2014 16:52:07 +0000 (11:52 -0500)]
Bug 721527 - License text contains obsolete FSF postal address

10 years agoRemove camel/README.COPYRIGHT.
Matthew Barnes [Tue, 7 Jan 2014 14:45:40 +0000 (09:45 -0500)]
Remove camel/README.COPYRIGHT.

The instructions are out-of-date, and advise contacting Novell Inc.

10 years agoBump SOURCES_DBUS_SERVICE_NAME version.
Matthew Barnes [Mon, 6 Jan 2014 12:53:22 +0000 (07:53 -0500)]
Bump SOURCES_DBUS_SERVICE_NAME version.

To cover both the new "ServerError" D-Bus signal and the new built-in
"system-proxy" data source.

10 years agoUpdated Indonesian translation
Andika Triwidada [Sat, 4 Jan 2014 03:15:01 +0000 (10:15 +0700)]
Updated Indonesian translation

10 years agoUpdated Czech translation
Marek Černocký [Fri, 3 Jan 2014 06:36:36 +0000 (07:36 +0100)]
Updated Czech translation

10 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Fri, 3 Jan 2014 01:40:31 +0000 (23:40 -0200)]
Updated Brazilian Portuguese translation

10 years agoUpdated Galician translations
Fran Diéguez [Mon, 30 Dec 2013 00:10:53 +0000 (01:10 +0100)]
Updated Galician translations