Commit Graph

74 Commits

Author SHA1 Message Date
23f5773903 Coding style and whitespace cleanup. 2012-02-20 10:04:25 -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
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
e64d6fe05c Miscellaneous cleanups. 2011-11-22 20:43:04 -05:00
2e60b6a4a2 Tweak GSettings schemas.
- Don't use the term "eplugin" for modules.

- Use the term "plugin" instead of "eplugin" for plugins.

- Split SpamAssassin settings into a separate schema.
2011-11-22 20:42:56 -05:00
925b03c373 Make it fully build 2011-11-09 12:35:00 +01:00
202cf6bfef Migrate template plugin to GSettings 2011-11-02 17:29:14 +01:00
1f38f4d92c Simplify library dependency flags.
We have a confusing array of nearly-identical CFLAGS/LIBS definitions in
configure.ac.  Time to simplify.  Instead let's just have one definition
that includes all the libraries provided by Evolution-Data-Server (incl.
Camel).  That, in combination with GNOME_PLATFORM, gives us most of what
we need for compliation and linking, and we can sprinkle definitions for
additional library dependencies in Makefile.am's as needed.
2011-10-04 22:27:14 -04:00
fcbbdfbd18 Coding style and whitespace cleanup. 2011-09-04 07:34:32 -04:00
394e580dfd Including <glib.h> directly is rarely needed. 2011-05-28 10:39:52 -04:00
756c8abcb8 Bug #646109 - Fix use of include <config.h> to make sure translations work 2011-05-27 15:23:07 +02:00
527a1a020d Reimplement part of the "templates" plugin.
Now uses camel_folder_get_message().
2011-05-13 12:44:01 -04:00
b663d51f1b Miscellaneous cleanups. 2011-05-12 19:00:09 -04:00
1217a54192 Add a 'message_uid' param to em_utils_edit_message().
So we can remove the internal edit_message() function and do the work
directly in em_utils_edit_message().
2011-05-11 12:58:58 -04:00
8a186c3588 Coding style cleanups. 2011-05-08 13:37:20 -04:00
4cfb84c573 Whitespace and coding style cleanups. 2011-05-07 18:48:38 -04:00
4660d0fcad Adapt to CamelFolderInfo.name -> display_name. 2011-05-07 10:29:37 -04:00
5fcaadbc9a Bug #641845 - Add default expansion variables to templates plugin
Users can read values from original message in the template
by $ORIG[header] and with a special value $ORIG[body].
2011-04-27 17:10:14 +02:00
4b9ac3879d Fix few memory leaks 2011-02-14 19:15:36 +01:00
3cce94edcb Bug #634403 - Mails Label popup menu is not updated properly 2011-01-19 14:56:35 +01:00
d61a48b9d9 Bug #633854 - [templates] Crash in build_template_menus_recurse 2011-01-06 15:52:23 +01:00
ffd6e52808 Avoid a crash when building templates menu. 2010-12-03 15:36:40 -06:00
831d6dca44 Kill mail_append_mail().
Use e_mail_folder_append_message() instead.
2010-10-30 21:01:11 -04:00
ae478d1e3c Collect mail enum types in e-mail-enums.h.
And generate GTypes for each of them in e-mail-enumtypes.[ch].

Also, the glib-gen.mak script forced me to add a <mail/e-mail.h>
top-level header, which really isn't a bad idea anyway.

TODO: We should do this for calendar and addressbook too.
2010-10-18 14:31:16 -04:00
4118d671d4 Composer: Show cancellable operations and errors inline.
'Send' and 'Save Draft' are now asynchronous and run outside of
Evolution's MailMsg infrastructure.

Add an EActivityBar to the composer window so these asynchronous
operations can be tracked and cancelled even in the absense of a main
window.  Also add an EAlertBar to the composer window so error messages
can be shown directly in the window.

Instead of calling e_alert_dialog_run_for_args(), call e_alert_submit()
and pass the EMsgComposer as the widget argument.  The EMsgComposer will
decide whether to show an EAlertDialog or use the EAlertBar, depending
on the GtkMessageType of the alert.
2010-10-12 13:59:00 -04:00
a06e4484b8 Give MailSession a permanent home.
Global variables in shared libraries are a bad idea.  EMailBackend now
owns the MailSession instance, which is actually now EMailSession.

Move the blocking utility functions in mail-tools.c to e-mail-session.c
and add asynchronous variants.  Same approach as Camel.

Replace EMailReader.get_shell_backend() with EMailReader.get_backend(),
which returns an EMailBackend.  Easier access to the EMailSession.
2010-10-12 13:58:59 -04:00
31b57ed038 Adapt to Camel API changes. 2010-09-28 11:35:55 -04:00
a91eeb6471 Pass GCancellable to Camel. 2010-09-28 11:35:55 -04:00
cd53ba9900 Coding style cleanups. 2010-09-13 08:28:58 -04:00
035fbcd841 Composer autosave cleanups.
This simplifies the async autosave logic and improves error handling.

Hoping this will solve bug #616987 but I've yet to reproduce it myself.
2010-08-30 14:26:00 -04:00
6cb0cbd0be Pass an EShell to EMsgComposer instances.
Reduce the composer's dependency on e_shell_get_default().
2010-08-13 20:56:33 -04:00
137b0743dd Migrate from CamelException to GError. 2010-07-08 14:37:52 -04:00
aec33928b7 Adapt to Camel API changes. 2010-04-30 11:30:19 -04:00
bc90469e7f Camel is now GObject-based. 2010-04-24 11:05:27 -04:00
96421ff37c Use accessor functions instead direct access (GSEAL work)
Still remaining:
GtkAccessible::widget
GtkAssistant::forward
GtkAssistant::back
GtkObject::flags
GtkTreeStore::stamp

The GtkAssistant fields are related to bug #596428.  We don't
need accessor functions so much as the enhancement described
there implemented.

https://bugzilla.gnome.org/show_bug.cgi?id=615613
2010-04-13 16:23:16 +02:00
26240e0b18 Generate ChangeLog files for tarball releases.
Remove old ChangeLog files that predate our switch to git.
2010-04-02 18:18:33 -04:00
fabb6b035c Only #include Camel's top-level header. 2010-04-02 16:59:20 -04:00
c4cde23066 Actually respect the --disable-schemas-install configure option 2010-03-15 14:51:13 +01:00
48462592cb Add a EShellWindow::shell-view-created signal.
The signal uses the name of the newly created shell view as the detail,
so for example "shell-view-created::mail" is emitted when the "mail"
view is created.

Also, add e_shell_window_peek_shell_view() to obtain a shell view if it
exists but without instantiating it.

Using these new tools, teach the templates plugin to wait for the user
to switch to the "mail" view before connecting to its "update-actions"
signal.  Previously is was instantiating the "mail" view itself.
2010-01-22 11:46:34 -05:00
59bd81691d Compiler and linker flag cleanups. 2009-12-27 14:32:39 -05:00
859c8b5a8f Bug #603342 - Memory leak fixes 2009-12-15 11:12:41 +01:00
5e938b590f Expand the EMailReader interface so it's easier to use.
Adds the following methods:

  CamelFolder *   (*get_folder)          (EMailReader *reader);
  const gchar *   (*get_folder_uri)      (EMailReader *reader);
  GPtrArray *     (*get_selected_uids)   (EMailReader *reader);
2009-12-01 15:01:14 -05:00
d94534c367 Merge bits and pieces of the anjal-evo-2-30 branch. 2009-11-30 18:34:38 -05:00
c2ee0afbc8 Rename EError to EAlert to match general use better
The EError mechanism is used both for error dialogs as well as basic alerts or
user prompts, so we should give it a more general name which matches this use.

This patch also cleans up a few includes of e-alert.h (formerly e-error.h) that
were not actually being used.

https://bugzilla.gnome.org/show_bug.cgi?id=602963
2009-11-30 13:33:04 -06:00
054c088169 Bug 589153 - Use GtkBuilder instead of libglade 2009-11-16 19:33:32 -05:00
214f3a8038 Bug 600926 - Fails to build due to missing dependencies 2009-11-09 19:11:03 -05:00
a952dca522 Bug #575208 - Use complete template message with all attachments 2009-10-23 22:28:56 +02:00
f62728b55e Bug 596848 - Use per-target CPPFLAGS in automake files 2009-09-30 23:37:50 -04:00
acb28fef9d Goodbye libgnome and libgnomeui!! 2009-09-18 12:34:47 -04:00
959ebe30bd Bug 594284 - FTBFS: missing links 2009-09-06 08:33:56 -04:00