Commit Graph

287 Commits

Author SHA1 Message Date
94daae3dba Remove the last remaining usage of GConf 2012-06-15 09:04:08 +02:00
5b8340563c Mail formatter rewrite
All mail-parsing and formatting code has been moved to em-format.
Parsing is handeled by EMailParser class, formatting by EMailFormatter.
Both classes have registry which hold extensions - simple classes
that do actual parsing and formatting. Each supported mime-type
has it's own parser and formatter extension class.
2012-06-06 15:27:19 +02:00
2a39437ee9 Adapt to single-include E-D-S libraries. 2012-06-03 15:14:03 -04:00
3449e5fcc7 Adapt mail to the new ESource API. 2012-06-02 23:00:40 -04:00
299521f02c Whitespace cleanup.
Replace 8-space indentation with tab characters, and various other
automated cleanups.
2012-04-01 23:15:38 -04:00
9ed9a99bad EMFormat: Add "session" as a constructor property.
Pass it in instead of digging it out of EShellSettings.
2012-03-31 15:48:01 -04:00
6d2c382788 WebKit port - port formatter and mail module 2012-03-28 18:38:25 +02:00
ad543e6684 Fix more compiler warnings. 2012-03-03 15:22:13 -05:00
14f82dde34 Move EAlert* and e-xml-utils references from other part of the code to libevolution-utils. 2012-03-03 09:02:33 -05:00
59e6e599ba Coding style and whitespace cleanup. 2012-01-18 23:48:48 -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
88505f694e Make em_utils_generate_account_hash() private.
Only used by em_utils_get_reply_all(), and the hash table it returns is
not safe for general-purpose use.  Make it a static function and rename
it generate_recipient_hash().
2012-01-05 09:08:10 -05:00
0cd98f1a85 Bug #661087 - Add ability to remove localized "Re:" prefixes in subject 2011-12-22 16:38:51 +01:00
987fb91d5e Reduce diff noise with account-mgmt branch. 2011-12-19 22:27:39 -05:00
a9cfed5938 Avoid passing EMailBackend as much as possible.
More mail API churn... reversing some previous API decisions.

I've made some key API changes to EMailSession on the account-mgmt
branch which should allow for this, and will hopefully also benefit
the "email-factory" branch.

EMailBackend barely needs to exist anymore, except as the owner of
EMailSession.

For several low-level functions, we replace its EMailBackend parameter
with EMailSession and EAlertSink parameters; the latter so it can still
pass user alerts up the chain.
2011-12-16 10:58:54 -05:00
d300de403d Bug 566793 - Support Drop And Drag Into Nautilus As PDF File 2011-12-15 12:48:26 +05:30
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
0c83b9b25d Miscellaneous cleanups. 2011-11-22 14:50:09 -05:00
7ab5ae3fc7 Merge branch 'master' into wip/gsettings 2011-11-14 13:08:57 +01:00
f9fee6a584 Bug #659945 - "New" button in toolbar for new mail message not working 2011-11-10 13:28:38 +01:00
1107fea0f8 Merge branch 'master' into wip/gsettings 2011-11-08 12:48:40 +01:00
41f0d7117e Adapt to CamelOperation API changes. 2011-11-06 20:10:57 -05:00
5efdc804e4 Make e_utils_prompt_user and callers use GSettings keys 2011-10-14 13:46:33 +02:00
e2b6ff7a6c Miscellaneous cleanups from the account-mgmt branch.
Reducing diff noise so I can see important changes easier when comparing
branches.  A few API changes, but nothing that affects functionality.
2011-09-27 09:31:13 -04:00
9773f0a3b8 EMFormatHTML: Configure CamelHttpStreams with proxy authpass.
Base64-encode the "USER:PASS" authentication string ourselves and hand
it to camel_http_stream_set_proxy_authpass().

This is so I can kill camel_http_stream_set_proxy().
2011-09-26 09:45:55 -04:00
e0548d2570 Bug #351025 - Make the order of the mail accounts configurable 2011-09-26 11:45:59 +02:00
fcbbdfbd18 Coding style and whitespace cleanup. 2011-09-04 07:34:32 -04: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
f59681796d Coding style and whitespace cleanup. 2011-08-13 11:27:51 -04:00
7c6aa944e2 Bug #650671 - Service connect/disconnect not cancelled properly 2011-07-01 20:01:45 +02:00
566d861915 Check for cancelled GIO operation error code too 2011-06-27 18:04:57 +02:00
38790d8478 Do not use deprecated EBook/ECal API 2011-06-14 08:54:20 +02:00
f014ab82c8 Coding style and whitespace cleanups. 2011-06-08 13:14:48 -04:00
956aaa091f Remove em_utils_folder_name_from_uri(). 2011-05-29 14:03:58 -04:00
394e580dfd Including <glib.h> directly is rarely needed. 2011-05-28 10:39:52 -04:00
9692758dc5 EMFolderTree: Store an EMailBackend instead of an EMailSession.
All this so EMFolderTree can submit EActivity instances for async ops.
You can obtain an EMailSession from an EMailBackend, but not vice versa.

Creates lots of pretty ripples in the mail code, but ultimately reduces
complexity.  So it's a code cleanup of sorts.
2011-05-23 21:50:50 -04:00
cb97c2dc8f Coding style and whitespace cleanup. 2011-05-21 17:56:06 -04:00
b663d51f1b Miscellaneous cleanups. 2011-05-12 19:00:09 -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
c7b455de89 Adapt to CamelFolder:name -> display-name. 2011-05-07 11:15:51 -04:00
49c833b128 Adapt to X-Evolution-Source headers storing UIDs. 2011-05-06 11:31:29 -04:00
c6d62ffed1 Remove em_uri_from_camel() and em_uri_to_camel().
Functions are no longer used, or wanted.
2011-05-05 18:38:31 -04:00
3433cca045 Simplify em_utils_folder_is_sent().
e_mail_folder_uri_equal() uses e_mail_folder_uri_parse() to parse both
URIs, so we can just hand it an 'email://' URI directly.
2011-05-05 15:20:23 -04:00
0331546352 Simplify em_utils_folder_is_drafts().
e_mail_folder_uri_equal() uses e_mail_folder_uri_parse() to parse both
URIs, so we can just hand it an 'email://' URI directly.
2011-05-05 15:20:23 -04:00
6077ee74b6 Simplify em_utils_folder_is_templates().
e_mail_folder_uri_equal() uses e_mail_folder_uri_parse() to parse both
URIs, so we can just hand it an 'email://' URI directly.
2011-05-05 15:20:23 -04:00
19a9f34740 Bug #627952 - 'Local delivery' mbox's aren't read properly 2011-05-05 13:22:46 +02:00
d05029936c Drop 'folder_uri' member from MessageList. 2011-05-03 14:59:38 -04:00
c3b983d6e1 Drop 'folder_uri' param from em_utils_folder_is_outbox(). 2011-05-03 09:42:06 -04:00
b9f932b1b8 Drop 'folder_uri' param from em_utils_folder_is_sent(). 2011-05-03 09:42:06 -04:00