Commit Graph

102 Commits

Author SHA1 Message Date
58ef547151 Coding style and whitespace cleanup. 2013-05-08 08:28:09 -04:00
7770e7c365 Merge [mark-all-read] plugin into core code
During fixes on bug #602428, rather than do everything twice,
I merged the plugin into the core code, thus it should be easier
to maintain as well.
2013-05-03 18:11:37 +02:00
0494d4c3c6 Remove EUIManager.
No longer needed.  Use GtkUIManager directly.
2013-03-31 12:10:54 -04:00
fe8e579347 Bug #639698 - Crash in mail_shell_view_execute_search() 2013-01-23 15:25:02 +01:00
53937a3dbd Bug 588216 - 'Unsubscribe' disabled for newsgroups
Unsubscribable folders are not necessarily deletable.
2012-12-28 14:25:54 -05:00
d09d8de870 Consolidate base utility libraries into libeutil.
Evolution consists of entirely too many small utility libraries, which
increases linking and loading time, places a burden on higher layers of
the application (e.g. modules) which has to remember to link to all the
small in-tree utility libraries, and makes it difficult to generate API
documentation for these utility libraries in one Gtk-Doc module.

Merge the following utility libraries under the umbrella of libeutil,
and enforce a single-include policy on libeutil so we can reorganize
the files as desired without disrupting its pseudo-public API.

   libemail-utils/libemail-utils.la
   libevolution-utils/libevolution-utils.la
   filter/libfilter.la
   widgets/e-timezone-dialog/libetimezonedialog.la
   widgets/menus/libmenus.la
   widgets/misc/libemiscwidgets.la
   widgets/table/libetable.la
   widgets/text/libetext.la

This also merges libedataserverui from the Evolution-Data-Server module,
since Evolution is its only consumer nowadays, and I'd like to make some
improvements to those APIs without concern for backward-compatibility.

And finally, start a Gtk-Doc module for libeutil.  It's going to be a
project just getting all the symbols _listed_ much less _documented_.
But the skeletal structure is in place and I'm off to a good start.
2012-12-12 14:33:43 -05:00
dd958f0120 Bug #202576 - A way to refresh IMAP folder list 2012-11-22 16:18:51 +01:00
66fdfbcf89 EMailShellView: Remove GroupWise-specific cruft.
The GroupWise backend is dead, and this logic never belonged here in the
first place.
2012-10-19 08:51:54 -04:00
32ca78553b Remove "Disable Account" menu item for GOA-based accounts.
GOA-based accounts must only be disabled from gnome-control-center.
2012-10-19 08:42:42 -04:00
c85109fc32 Coding style and whitespace cleanup. 2012-08-19 14:17:55 -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
c14ebe7358 Bug 679649 - Remove "Recent Messages" from Quick Search Bar
The story on this is a question [1] was recently posed to the mailing
list about what's the different between "Recent Messages" and "Last 5
Days' Messages" as listed in the Show: combo box, and even I could not
answer before looking up the query expression for "Recent Messages" in
the source code (messages received in the past 24 hours, it turns out).

I can't defend why we need both options, and "Last 5 Days' Messages"
is less ambiguous and overlaps the results for "Recent Messages", so
"Last 5 Days' Messages" seems sufficient to me.  There are  numerous
ways to re-create the "Recent Messages" query if it's still desired:
saved search, search folder, or just sort messages by date received.

[1] https://mail.gnome.org/archives/evolution-list/2012-July/msg00044.html
2012-07-09 20:06:00 -04:00
69e55b253e Bug #602425 - Search in "Current Account"/"All Accounts" depends on vfolders 2012-07-09 16:44:31 +02:00
acac6795d9 Avoid em_folder_tree_get_selected_folder() in some places.
em_folder_tree_get_selected_folder() currently blocks, and I'm about to
remove the function.  But there's a couple places where we just need to
block for now, else it would require a significant rewrite.  So execute
the em_folder_tree_get_selected_folder() logic manually in those places.
2012-07-09 08:44:21 -04:00
50a5e067d5 Bug 678393 - Disable Properties for built-in mail stores 2012-06-20 14:40:06 -04:00
b3c57ed8e5 Bug 677624 - Disable Properties when Search Folders is selected 2012-06-07 20:32:51 -04:00
992373c8b0 Adapt modules/mail to the new ESource API. 2012-06-02 23:00:40 -04:00
c88d317030 Adapt to vFolder changes from evolution-data-server 2012-05-30 18:46:49 +02:00
98f39d7ee0 Adapt to CamelService API changes.
em_utils_connect_service_sync() and em_utils_disconnect_service_sync()
are no longer needed.  CamelService itself now effectively does what
these functions were doing.
2012-05-19 13:35:28 -04:00
90d764399d Account properties shown also on remote folders 2012-02-20 18:58:07 +01:00
3ec164d12e Bug #668482 - Edit account properties from menu on folder store 2012-02-16 13:05:55 +01:00
5795e22cb7 Bug 418520 - Disable Folder -> Expunge in virtual folders
Expunging from a virtual folder actually expunges one or more real
folders, which the user may not be aware of and can lead to unintended
message removal.  I feel it's safest to just disable Folder -> Expunge
for any virtual folder, be it Junk, Trash, or a Search Folder.

Note that File -> Empty Trash is still always enabled.
2012-02-07 09:32:54 -05:00
61ae36351b Introduce libemail-engine and libemail-utils.
These libraries are bound for E-D-S so they live at the lowest layer of
Evolution for now -- even libeutil can link to them (but please don't).

This is the first step toward moving mail handing to a D-Bus service.
2012-01-18 23:48:47 -05:00
e3735c7444 Move EMailLabelListStore to EMailSession.
Access the EMailLabelListStore through EMailSession instead of
EShellSettings, which was a quick hack of mine during kill-bonobo.
2011-12-24 17:44:51 -05:00
7c0c40f833 Reorder accounts by drag-and-drop.
This implements https://bugzilla.gnome.org/show_bug.cgi?id=663527#c3.

Account reordering is now done by drag-and-drop instead of up/down
buttons.

Turned out to be a wee bit more complicated than I initially thought.

This scraps EAccountManager and EAccountTreeView and replaces them with
new classes centered around EMailAccountStore, which EMailSession owns.

EMailAccountStore is the model behind the account list in Preferences.
The folder tree model now uses it to sort its own top-level rows using
gtk_tree_path_compare().  It also broadcasts account operations through
signals so we don't have to rely so heavily on EAccountList signals,
since EAccountList is going away soon.

Also as part of this work, the e-mail-local.h and e-mail-store.h APIs
have been merged into EMailSession and MailFolderCache.
2011-12-10 21:34:19 -05:00
e3b8f3fbb3 Move folder URI caching to MailFolderCache. 2011-12-08 00:32:22 -05:00
a01525c931 Miscellaneous EShellView-related cleanups. 2011-12-07 22:11:21 -05:00
6461ecea27 Bug 663376 - Folder->Properties enabled when no folder selected 2011-11-12 15:36:32 -05:00
f615000f6c EMFolderTreeModel: Don't use parameters in "get_default" functions.
Drop EMFolderTreeModel's "session" property now that it has a "backend"
property and call em_folder_tree_model_set_backend() where we used to
call em_folder_tree_model_set_session().

The session can still be obtained through e_mail_backend_get_session().
2011-09-26 11:45:11 -04:00
e0548d2570 Bug #351025 - Make the order of the mail accounts configurable 2011-09-26 11:45:59 +02:00
f67a5f3d42 Miscellaneous cleanups.
Reducing diff noise with the account-mgmt branch.

Trying to erode our dependency on EAccount as much as possible, or at
least isolate its usage, to make things easier for me on the branch.
2011-08-30 20:35:11 -04:00
f3648e1cb5 Adapt to new CamelSubscribable interface. 2011-08-15 19:07:13 -04:00
0e264ffcfb Bug #655957 - Current account / all accounts search changes column 2011-08-12 09:43:22 +02:00
7c6aa944e2 Bug #650671 - Service connect/disconnect not cancelled properly 2011-07-01 20:01:45 +02:00
4fe800226b EMailShellView: Avoid e_get_subscribable_accounts().
Use em_folder_tree_model_list_stores() to determine whether to enable
the folder subscription editor.
2011-05-28 18:25:07 -04:00
756c8abcb8 Bug #646109 - Fix use of include <config.h> to make sure translations work 2011-05-27 15:23:07 +02:00
a9dff2f33a Use em_folder_tree_get_selected() in places to simplify code.
There were a few places where we were accessing the folder tree model
directly to get the selected store + folder name, or were asking for the
selected URI only to parse back into its store + folder name components.
2011-05-24 19:41:59 -04:00
a9c9f0be5f Remove e_mail_reader_get_folder_uri().
Instead call e_mail_reader_get_folder() and, if you really need to,
generate the folder URI with e_mail_folder_uri_from_folder().
2011-05-03 14:42:29 -04:00
b8a932ae1e Fix compiler warnings.
Mostly dead assignments.
2011-05-03 10:45:46 -04:00
b9f932b1b8 Drop 'folder_uri' param from em_utils_folder_is_sent(). 2011-05-03 09:42:06 -04:00
ae28ea4621 EMailShellView: Open the selected folder ourselves.
This one's a little involved:

 - EMailShellView now obtains a CamelFolder itself in response to
   EMFolderTree::folder-selected signals.  Uses EActivity to do so.

 - Revise EMFolderTree::folder-selected signal arguments to be more
   useful: emit a CamelStore object instead of a folder URI.

 - Also revise EMFolderTree::folder-activiated signal arguments the
   same way while we're at it.

 - Remove the "folder_uri" argument from e_mail_reader_set_folder().
   If you have a CamelFolder object you can obtain the URI string by
   calling camel_folder_get_uri().
2011-05-02 21:01:48 -04:00
52844f40f1 Add em_folder_tree_get_selected_account().
Comes in handy for a few EMailShellView actions.
2011-05-02 19:07:06 -04:00
397aeade05 Adapt to CamelService changes. 2011-04-21 07:45:45 -04:00
63c26d5712 Miscellaneous GtkAction-related cleanups.
Prefer the newer GtkAction "set" functions over g_object_set().
2011-03-27 18:38:39 -04:00
c6fd77460f Coding style and whitespace cleanup. 2011-03-05 12:34:28 -05:00
1301cf02ef Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly 2011-02-25 16:20:41 +01:00
2c31a5bc23 Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
2011-02-08 11:57:50 -05:00
3cce94edcb Bug #634403 - Mails Label popup menu is not updated properly 2011-01-19 14:56:35 +01:00
b5c8f6f9be Bug #633783 - Folder->Expunge enabled when no folder selected 2010-11-22 12:30:59 +01:00
43814fe775 Bug 633172 - Folder->Subscriptions is always enabled 2010-10-29 19:54:45 -04:00