Commit Graph

81 Commits

Author SHA1 Message Date
ab3f65a15e Address couple issues found by a Coverity scan 2012-11-30 15:30:45 +01:00
10aa3a7a99 Bug #688819 - It's possible to make Evolution stop sending emails 2012-11-23 16:23:07 +01:00
2c4ae5e768 Coding style and whitespace cleanup. 2012-11-10 15:54:43 -05:00
704b78d23b Replace deprecated GLib symbols (as of GLib 2.34.x) 2012-11-06 16:21:37 +01:00
f62adc91c1 e_flaw_wait_until() expects gint64, not gint 2012-11-05 20:45:04 +01:00
136f4d53bd Replace e_flag_timed_wait() with e_flag_wait_until() 2012-11-05 20:21:14 +01:00
9bcde61c47 mail_session_refresh_cb(): Skip disabled sources. 2012-10-31 15:18:20 -04:00
aded0858c4 Prefer e_source_registry_check_enabled().
Prefer e_source_registry_check_enabled() over e_source_get_enabled()
for most instances where we want to exclude disabled data sources.
2012-10-25 13:01:50 -04:00
67f230c63b Bug #680497 - POP3 re-adds messages to local Inbox 2012-10-25 12:06:21 +02:00
0c65652f2a Bug #268618 - Add: Save replies in the folder of the message being replied to
Follow-up fixes:
a) don't copy to origin folder for forwarded messages
b) use a real folder when reply/forward from a vFolder
2012-10-22 15:28:01 +02:00
bf8eaa185a Bug #268618 - Add: Save replies in the folder of the message being replied to 2012-10-18 19:44:35 +02:00
b0efa5cb27 MailFolderCache: Silently ignore cancellation errors. 2012-10-18 08:37:56 -04:00
f9fbeb7c82 Bug #683849 - Add account name to »Checking for new mail« 2012-10-15 19:57:07 +02:00
c539a9ec20 Remove e_mail_junk_filter_available().
Because we now check for junk filtering software in configure, junk
filtering modules can now safely assume the required junk filtering
software is installed.  No more having the module installed but not
the required software.  If this invariant is broken, an error will
be shown for each new message received.
2012-09-30 23:26:23 -04:00
32550418d5 Bug #678806 - Flush Outbox doesn't remove sent messages 2012-09-11 12:29:33 +02:00
8048b5a2c5 Bug #683349 - Crash when sending a mail from the Outbox folder 2012-09-10 11:56:48 +02:00
511acab89a Bug #682425 - Can do network operations on disabled accounts 2012-09-05 15:42:03 +02:00
5cda0904f9 MailFolderCache: Remove dead code.
No comment as to why it's disabled => has no value.
2012-08-27 17:07:17 -04:00
8a10fa2481 MailFolderCache: Remove some unnecessary #includes. 2012-08-27 17:06:50 -04:00
c85109fc32 Coding style and whitespace cleanup. 2012-08-19 14:17:55 -04:00
cbf51737fa Add e_mail_session_append_to_local_folder().
Asynchronous + synchronous convenience functions.

Uses the EMailLocalFolder enumeration to specify a well-known folder.
2012-08-15 11:44:29 -04:00
cfc8ef4c6c Adapt to CamelService API changes.
camel_service_get_settings() is now camel_service_ref_settings()
and it returns a new CamelSettings reference which the caller must
release with g_object_unref().
2012-08-12 14:16:04 -04:00
6be2668e48 Adapt to CamelSession API changes.
These functions now return new references:

  camel_session_add_service()
  camel_session_list_services()

These functions have been renamed and also return new references:

  camel_session_get_service()        -> camel_session_ref_service()
  camel_session_get_service_by_url() -> camel_session_ref_service_by_url()
2012-08-12 11:44:37 -04:00
6456e814fa Adapt to CamelSession forward_to() changes. 2012-08-12 08:00:04 -04:00
5e5cdafb95 Avoid using uninitialized variable in e_mail_folder_expunge_sync() 2012-08-10 15:16:45 +02:00
d783fee9aa EMailSession: Minor code rearrangement. 2012-08-09 07:41:53 -04:00
e45c63f52b Bug #677695 - Crash on quit under emu_free_mail_cache()
This is reverting previous patch for this bug and fixes it with
a different approach. The previous patch had regression, instead
of freezing evolution on quit it crashed it when there was pending
addressbook lookups.
2012-08-08 11:27:30 +02:00
77a8559d51 Remove unused mail_disconnect_store(). 2012-07-25 20:32:04 -04:00
f22e38ffad Use template files to generate GEnumClass types. 2012-07-17 13:49:09 -04:00
d88c38abeb Rework handling of GOA mail.
Disabling the mail part of an online account through the Control Center
panel will now remove the CamelService from the EMailSession in addition
to disabling the account/identity/transport ESources, causing it to be
delisted from the account list in Preferences.

Furthermore, hide the Enabled check box for accounts linked to GOA in
Preferences.  The collection ESource for these accounts can no longer
be disabled through Evolution; all such account manipulation must be
done through the Control Center panel.

Lastly, display an icon next to accounts linked to GOA in Preferences.

* Might be nice to show the actual provider icon instead of the generic
  Online Accounts icon from the Control Center, but need to think about
  how best to do that.  Don't want a GOA dependency in core Evolution.
  Maybe ESourceCollection should grow a GIcon property for the online-
  accounts module in the registry service to set?
2012-07-15 18:19:39 -04:00
fcca366ecc mail_session_add_service(): Make display-name binding one-way.
We're leaking CamelService references when we remove a CamelService
from a CamelSession.  I don't yet know where or how.

If we remove a CamelService without finalizing the corresponding ESource,
and then add a new CamelService with the same UID, the ESource will have
a bidirectional "display-name" binding to multiple CamelService instances.
This creates an endless cascade of "notify" signals as soon as any of the
bound "display-name" properties change.

Until I can fix the leaking CamelService references, make the binding
one-way: ESource -> CamelService.  This means the ESource's display name
is authoritative, and camel_service_set_display_name() MUST NOT be called
explicitly or else it will become out-of-sync with the ESource.
2012-07-15 16:08:41 -04:00
fe2961aa50 mail_session_add_from_source(): Warn if backend name is unset.
Even send-only accounts should have a backend name of "none".
2012-07-15 11:07:16 -04:00
0c881254de Bug #223309 - Add "Include Subfolders" to "Search Folder Sources" 2012-07-11 16:38:27 +02:00
20973f9281 Bug #548778 - Use original location when replying in Search Folder 2012-07-10 19:21:28 +02:00
8ca9931144 Bug #677695 - Freeze on quit in emu_free_mail_cache() 2012-07-10 18:21:34 +02:00
a3bd7ff42f Add "auto-update" option to Search Folder Editor 2012-07-10 17:02:20 +02:00
82e980001b Always notify about finished updated_folders() call 2012-07-10 10:55:16 +02:00
a0bc647f07 Remove mail_expunge_folder().
Use e_mail_folder_expunge() instead.
2012-07-09 08:44:22 -04:00
c44c65e85f Add e_mail_folder_expunge().
To replace mail_expunge_folder().
2012-07-09 08:44:22 -04:00
0785722478 Use folder display name in status messages when possible. 2012-07-09 08:44:22 -04:00
5bd9b58290 Remove mail_refresh_folder().
Use e_mail_reader_refresh_folder() instead.
2012-07-09 08:44:22 -04:00
9c79788481 Add e_mail_reader_unsubscribe_folder_name().
Replaces e_mail_session_unsubscribe_folder().
2012-07-09 08:44:22 -04:00
5c53935ab2 Adapt to CamelStore API change.
compare_folder_name() -> equal_folder_name()
2012-07-06 22:14:20 -04:00
56333d439b Bug #677604 - Critical warnings on evolution start 2012-07-02 18:32:00 +02:00
cc8bf823ec Coding style and whitespace cleanup. 2012-06-24 20:31:43 -04:00
e439e17e2e Make em_utils_in_addressbook() cancellable 2012-06-14 13:01:57 +02:00
4f47f662f6 Bug #674887 - Hang on sender's photo lookup 2012-06-14 12:14:45 +02:00
a36294e7c7 Bug 677995 - Asks password for disabled mail account
Remove mail_folder_cache_service_added() and rely instead on
mail_folder_cache_service_enabled()/disabled().  Despite the function
names the folder cache doesn't actually care about enabled status, it
simply maintains a set of CamelStores to monitor.  We should refactor
the folder cache API to better reflect that.

EMailAccountStore always immediately follows a "service-added" signal
emission with either a "service-enabled" or "service-disabled" emission,
which will add or remove the service from the folder cache.
2012-06-13 11:19:56 -04:00
b4fbbde6ab Remove "enable-local" and "enable-vfolders" GSettings key.
We have built-in ESources for the 'local' and 'vfolder' mail stores,
and can now track their enabled state as we would any other mail store.
2012-06-08 13:47:22 -04:00
77645577f5 CamelNullStoreClass: Override settings_type.
CamelStoreClass bumps the settings_type to CAMEL_TYPE_STORE_SETTINGS,
which has a filter-inbox property.  But we don't want ANY settings in
a CamelNullStore, so revert the settings_type to CAMEL_TYPE_SETTINGS.
2012-06-07 19:12:29 -04:00