Commit Graph

34618 Commits

Author SHA1 Message Date
6ae1b3fe3c em_utils_reply_to_message(): Require a CamelMimeMessage.
No more fetching a message itself.  Oh, and stop unreffing the message.
Those kinds of insane semantics are what lead to crashes.
2011-05-12 18:24:42 -04:00
58a6db9875 Remove em_utils_redirect_message_by_uid().
Use em_utils_redirect_message() instead.
2011-05-12 18:24:42 -04:00
9cbfb1963b Reimplement the "mail-redirect" action.
Now fetches the message itself using camel_folder_get_message(),
then calls em_utils_redirect_message().
2011-05-12 18:24:42 -04:00
366dacefa0 Add e_mail_reader_new_activity().
Configuring and submitting an EActivity for every mail operation is
getting tedious.  This function helps reduce boilerplate code by:

  * Creating a new EActivity instance.

  * Installing an EAlertSink using e_mail_reader_get_alert_sink().

  * Installing a GCancellable (which is really a CamelOperation).

  * Submitting the activity via e_shell_backend_add_activity().

I'm considering adding a similar function (or class method) for
EShellView.  Not sure yet...
2011-05-12 18:24:41 -04:00
c082e58434 Reimplement e_mail_reader_create_vfolder_from_selected().
Now uses camel_folder_get_message().
2011-05-12 15:53:00 -04:00
ec8e4c3ff8 Reimplement e_mail_reader_create_vfolder_from_selected().
Now uses camel_folder_get_message().
2011-05-12 15:10:00 -04:00
54774628cf Reimplement e_mail_reader_create_filter_from_selected().
Now uses camel_folder_get_message().
2011-05-12 15:10:00 -04:00
236d3f32ea Updated Spanish translation 2011-05-12 20:20:13 +02:00
e263f69b46 EMConfigTargetFolder: Remove URI member.
Use e_mail_folder_uri_from_folder() if you really need a folder URI for
the target's CamelFolder.
2011-05-12 13:21:54 -04:00
45ecbcc593 Bug #645476 - Avoid scroll to cursor on folder change in message list 2011-05-12 09:18:34 +02:00
b6324935db Cannot send message with just enabled account
Everything in UI seemed as working fine, but the message is just lost,
even there was printed a runtime warning on the console.
This is fixing couple things along this issue:
- differentiate between NULL and invalid pointers/objects
  in new e_mail_folder_uri_...() functions
- report error to UI if mail_session_send_to_thread() fails to find
  corresponding transport service
- call e_mail_store_add_by_account() in mail_store_load_accounts()
  (a side-effect of this change is no code duplication and unified
  processing of the same action)
2011-05-12 08:26:58 +02:00
20ba4ae4bb e_mail_session_uri_to_folder_sync(): Remove redundant status message.
camel_store_get_folder() pushes an "Opening folder" message itself.
2011-05-12 00:51:21 -04:00
5753ec741b Remove mail_get_folder().
Use camel_store_get_folder() instead.
2011-05-12 00:50:29 -04:00
1c68dd8339 Reimplement em_folder_properties_show().
Now uses camel_store_get_folder() and camel_folder_get_quota_info(),
although I need to rewrite the quota function to be asynchronous.
2011-05-12 00:45:47 -04:00
dea566cc4e Get vfolder_edit_rule() working again.
It was handling folder URIs the old way.

Also, use gtk_dialog_run() to simplify the logic.
2011-05-12 00:45:35 -04:00
3f196cf3bd mark-all-read: Reimplement to not block.
I'm mainly trying to get rid of mail_get_folder(), but I'm also tired of
this plugin blocking the UI.  If there's a lot of messages the lockup is
really noticable.
2011-05-11 21:36:34 -04:00
e9b9df5f94 Fix some GPtrArray leaks. 2011-05-11 14:44:35 -04:00
ba8f1f78f4 Add e_activity_handle_cancellation().
Convenience function for use in GAsyncReadyCallback functions.

This acknowledges the cancellation, so that the activity's description
changes from "(cancelling)" to "(cancelled)" and the description appears
crossed out in the UI for a moment before disappearing.
2011-05-11 12:59:29 -04:00
c780b7d212 Remove mail_get_messages().
Use e_mail_folder_get_multiple_messages() instead.
2011-05-11 12:59:17 -04:00
2b4ea9419a Remove mail_build_attachment().
Use e_mail_folder_build_attachment() instead.
2011-05-11 12:59:12 -04:00
648eacf49f Reimplement em_utils_edit_messages().
Now uses e_mail_folder_get_multiple_messages().
2011-05-11 12:59:06 -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
e5760e065f Reimplement em_utils_forward_messages().
Now uses e_mail_folder_build_attachment() and
e_mail_folder_get_multiple_messages().
2011-05-11 12:58:53 -04:00
bf44bd68f2 Add e_mail_folder_build_attachment().
Replaces mail_build_attachment() from mail-ops.c.
2011-05-11 12:58:48 -04:00
63a7f4d1cc EMailReader: Reimplement "mail-remove-duplicates" action.
Now uses e_mail_folder_find_duplicate_messages().
2011-05-11 12:58:42 -04:00
aab2f68def Add e_mail_folder_find_duplicate_messages().
Moves the non-interactive logic out of EMailReader.
2011-05-11 12:58:35 -04:00
ef53113a39 Add e_mail_folder_get_multiple_messages().
Replaces mail_get_messages() from mail-ops.c.
2011-05-11 12:58:20 -04:00
f9a3112069 Bug #649939 - Cann't create new folder (second shot)
The previous patch worked for local account only, for anything
which has '@' in account's UID it still failed.
2011-05-11 17:38:16 +02:00
e72c7e8dda Bug #649952 - Do not unref result of camel_session_get_service() 2011-05-11 16:57:58 +02:00
80d27e81c9 Bug #649939 - Cann't create new folder 2011-05-11 14:15:16 +02:00
928d7bfd31 Updated Galician translations 2011-05-11 13:08:55 +02:00
b8e3e5a7df Updated Bulgarian translation 2011-05-11 06:40:28 +03:00
f8122e8f92 "email://" URIs have encoded paths too. 2011-05-08 22:11:42 -04:00
eeb642c416 Encode the path part of folder URIs.
Wasn't sure if this was necessary, but it -is- in order to handle the
local Junk and Trash vfolder names correctly:

    .#evolution/Junk
    .#evolution/Trash

If we don't escape the path and we feed camel_url_new() something like
"folder://local/.#evolution/Trash", it's gonna think the path is '.' and
the rest of it's a fragment.
2011-05-08 22:06:27 -04:00
08f13f4546 Updated Spanish translation 2011-05-08 22:32:33 +02:00
8a186c3588 Coding style cleanups. 2011-05-08 13:37:20 -04:00
2bf3460cd3 Post-release version bump. 2011-05-08 13:37:20 -04:00
d131786a3f NEWS update for 3.1.1 release. 2011-05-08 12:54:21 -04:00
0a33b27e0c Remove groupwise-features files from POTFILES.in. 2011-05-08 12:42:56 -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
4660d0fcad Adapt to CamelFolderInfo.name -> display_name. 2011-05-07 10:29:37 -04:00
2b1b637832 mail-send-recv.c:get_folders(): Adapt to CamelVeeStore change.
See E-D-S commit 26c74be4066dff41dd1e9c9adc1c2c116142ba60.
2011-05-06 13:32:33 -04:00
bf5647aa47 MailFolderCache: Drop folder URI in "folder-changed" signal.
We already include a CamelStore and folder name string in the signal
arguments, so it's trivial to reconstruct the URI if it's needed.
2011-05-06 12:58:55 -04:00
48309e3765 Remove em_folder_tree_get_selected_folder_info().
Function is no longer used, or wanted.
2011-05-06 12:36:28 -04:00
6d44258b85 em_folder_utils_create_folder(): Change function parameters.
Take a folder URI string instead of a CamelFolderInfo, and swap places
with the GtkWindow parameter.
2011-05-06 12:34:33 -04:00
308f972f08 em_folder_utils_copy_folder(): Change function parameter.
Take a folder URI string instead of a CamelFolderInfo.
2011-05-06 12:23:21 -04:00
65f2472d6a Remove e_get_account_by_source_url().
Function is no longer used, or wanted.
2011-05-06 11:35:16 -04:00
49c833b128 Adapt to X-Evolution-Source headers storing UIDs. 2011-05-06 11:31:29 -04:00
e3f577a5b9 Remove uid_cachename_hack().
It was building the old CamelStore path based on the URI.

Gone before 0.11 my ass.
2011-05-06 10:24:11 -04:00