aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-folder-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Prefer g_simple_async_result_take_error().Matthew Barnes2011-10-061-28/+14
| | | | | | | | | Slightly more efficient and convenient than: g_simple_async_result_set_from_error (simple, error); g_error_free (error); One less GError to copy and destroy.
* Bug 659726 - Search Folders contain ambiguous reference to accountsMatthew Barnes2011-09-281-0/+48
| | | | | This introduces a new function called e_mail_folder_uri_to_markup(), which may prove useful in other contexts.
* Coding style and whitespace cleanup.Matthew Barnes2011-09-041-1/+2
|
* Adapt to new CamelSubscribable interface.Matthew Barnes2011-08-161-3/+4
|
* Bug #655942 - Shows 'Storing folder...' when deleting a local folderMilan Crha2011-08-151-1/+19
|
* Prefer g_seekable_seek() over camel_stream_reset().Matthew Barnes2011-07-051-9/+13
| | | | | | | | | When a stream is obviously a file or memory stream (both of which implement the GSeekable interface), use g_seekable_seek() instead of camel_stream_reset(). This is helping me discover if it's safe to remove camel_stream_reset(). We want to eventually move to GIO streams, which have no reset method.
* e-mail-folder-utils.c cleanups.Matthew Barnes2011-06-011-4/+0
|
* Bug #646109 - Fix use of include <config.h> to make sure translations workMilan Crha2011-05-271-1/+4
|
* Coding style and whitespace cleanup.Matthew Barnes2011-05-221-2/+3
|
* Remove mail_remove_folder().Matthew Barnes2011-05-211-0/+203
| | | | Use e_mail_folder_remove() instead.
* Remove mail_save_messages().Matthew Barnes2011-05-181-0/+242
| | | | Use e_mail_folder_save_messages() instead.
* Remove mail_remove_attachments().Matthew Barnes2011-05-171-0/+216
| | | | Use e_mail_folder_remove_attachments() instead.
* Cannot send message with just enabled accountMilan Crha2011-05-121-0/+4
| | | | | | | | | | | | | 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)
* Add e_mail_folder_build_attachment().Matthew Barnes2011-05-121-0/+168
| | | | Replaces mail_build_attachment() from mail-ops.c.
* Add e_mail_folder_find_duplicate_messages().Matthew Barnes2011-05-121-0/+200
| | | | Moves the non-interactive logic out of EMailReader.
* Add e_mail_folder_get_multiple_messages().Matthew Barnes2011-05-121-0/+138
| | | | Replaces mail_get_messages() from mail-ops.c.
* Bug #649939 - Cann't create new folder (second shot)Milan Crha2011-05-111-2/+7
| | | | | The previous patch worked for local account only, for anything which has '@' in account's UID it still failed.
* "email://" URIs have encoded paths too.Matthew Barnes2011-05-091-1/+1
|
* Encode the path part of folder URIs.Matthew Barnes2011-05-091-8/+16
| | | | | | | | | | | | 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.
* Introduce a new, simpler folder URI format.Matthew Barnes2011-05-061-8/+63
| | | | | | | | | | | | | | | | Folder URIs shall henceforth be exclusive to Evolution. The new format is: 'folder://' CAMEL_STORE_UID '/' CAMEL_FOLDER_PATH Add e_mail_folder_uri_build() to construct such a URI from a CamelStore and folder path string, change e_mail_folder_uri_from_folder() to build the new URI, and teach e_mail_folder_uri_parse() to parse it. e_mail_folder_uri_parse() will continue to know how to parse the older URI formats still present in config files and GConf keys. This captures the legacy knowledge neatly into one function.
* Teach e_mail_folder_uri_parse() to parse 'email://' URIs.Matthew Barnes2011-05-061-9/+60
|
* Add some handy folder URI utility functions.Matthew Barnes2011-05-031-0/+155
| | | | | | | | | | | | | | | | | e_mail_folder_uri_parse() Parses a folder URI and returns a corresponding CamelStore instance and folder name string, or else sets a GError. e_mail_folder_uri_equal() Compares two folder URIs for equality. Replaces camel_store_folder_uri_equal(). e_mail_folder_uri_from_folder() This will eventually replace camel_folder_get_uri(), but for now it just calls camel_folder_get_uri() and duplicates the URI string.
* Kill mail_append_mail().Matthew Barnes2010-10-311-33/+54
| | | | Use e_mail_folder_append_message() instead.
* Composer: Show cancellable operations and errors inline.Matthew Barnes2010-10-131-0/+142
'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.