aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-04 01:42:15 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:06 +0800
commit839b17d1fd5265f0dd32e63be2b9146466266757 (patch)
tree63e563cb56895dbc06278949acda68049b365adc /modules/mail
parent5d1d6f4969e37f67e0900aa51ba6a51a3222ed1d (diff)
downloadgsoc2013-evolution-839b17d1fd5265f0dd32e63be2b9146466266757.tar.gz
gsoc2013-evolution-839b17d1fd5265f0dd32e63be2b9146466266757.tar.zst
gsoc2013-evolution-839b17d1fd5265f0dd32e63be2b9146466266757.zip
Remove 'from_uri' params from e-msg-composer-utils.c.
Pass CamelFolder objects instead, which are already available at almost every call site.
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-backend.c39
1 files changed, 33 insertions, 6 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index 609e483083..3d75b87f2c 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -36,6 +36,7 @@
#include "e-mail-shell-view.h"
#include "e-mail-browser.h"
+#include "e-mail-folder-utils.h"
#include "e-mail-reader.h"
#include "e-mail-session.h"
#include "e-mail-store.h"
@@ -147,12 +148,14 @@ action_mail_message_new_cb (GtkAction *action,
EShellWindow *shell_window)
{
EMailShellSidebar *mail_shell_sidebar;
+ EShellBackend *shell_backend;
EShellSidebar *shell_sidebar;
EShellView *shell_view;
EShell *shell;
EMFolderTree *folder_tree;
+ CamelFolder *folder = NULL;
const gchar *view_name;
- gchar *uri = NULL;
+ gchar *folder_uri = NULL;
shell = e_shell_window_get_shell (shell_window);
@@ -165,16 +168,40 @@ action_mail_message_new_cb (GtkAction *action,
goto exit;
shell_view = e_shell_window_get_shell_view (shell_window, view_name);
+ shell_backend = e_shell_view_get_shell_backend (shell_view);
shell_sidebar = e_shell_view_get_shell_sidebar (shell_view);
mail_shell_sidebar = E_MAIL_SHELL_SIDEBAR (shell_sidebar);
folder_tree = e_mail_shell_sidebar_get_folder_tree (mail_shell_sidebar);
- uri = em_folder_tree_get_selected_uri (folder_tree);
+ folder_uri = em_folder_tree_get_selected_uri (folder_tree);
+
+ if (folder_uri != NULL) {
+ EMailBackend *backend;
+ EMailSession *session;
+ CamelStore *store;
+ gchar *folder_name;
+ gboolean success;
+
+ backend = E_MAIL_BACKEND (shell_backend);
+ session = e_mail_backend_get_session (backend);
+
+ success = e_mail_folder_uri_parse (
+ CAMEL_SESSION (session), folder_uri,
+ &store, &folder_name, NULL);
+
+ /* FIXME This blocks and is not cancellable. */
+ if (success) {
+ folder = camel_store_get_folder_sync (
+ store, folder_name, 0, NULL, NULL);
+ g_object_unref (store);
+ g_free (folder_name);
+ }
-exit:
- em_utils_compose_new_message (shell, uri);
+ g_free (folder_uri);
+ }
- g_free (uri);
+exit:
+ em_utils_compose_new_message (shell, folder);
}
static GtkActionEntry item_entries[] = {
@@ -307,7 +334,7 @@ mail_shell_backend_handle_email_uri_cb (gchar *folder_uri,
shell_settings, "mail-forward-style");
em_utils_forward_messages (
- shell, folder, uids, folder_uri, forward_style);
+ shell, folder, uids, forward_style);
} else {
GtkWidget *browser;
: And here. (on_right_click): Set the fdata->source. (filter_type_got_message): Pass fdata->source into filter_gui_add_from_message(). (filter_mlist_uid): Same. * mail-autofilter.c (filter_gui_add_from_message): Now takes a source argument so that we don't always add incoming rules. (filter_gui_add_from_mlist): Same. svn path=/trunk/; revision=17352 * Remove Bcc headers too.Jeffrey Stedfast2002-07-033-1/+10 | | | | | | | | | 2002-07-02 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_make_message_attachment): Remove Bcc headers too. svn path=/trunk/; revision=17351 * (folder_browser_gui_init): Don't connectEttore Perazzoli2002-07-022-3/+8 | | | | | | | | folder_browser_search_do_search to "query_changed" since we don't want the search to happen unless the user clicks "Find Now", for consistency. svn path=/trunk/; revision=17347 * New arg @tooltip; pass it toEttore Perazzoli2002-07-022-1/+7 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (add_creatable_item): New arg @tooltip; pass it to evolution_shell_component_add_user_creatable_item() [which now has a @tooltip arg]. * gui/component-factory.c (add_creatable_item): New arg @tooltip. Pass it to evolution_shell_component_add_user_creatable_item(), which now has a @tooltip arg. (create_object): Added tooltips. * component-factory.c (create_component): Pass a tooltip to evolution_shell_component_add_user_creatable_item. * e-shell-user-creatable-items-handler.c: New member tooltip in struct MenuItem. (ensure_menu_items): Initialize the tooltip member. (shell_view_view_changed_callback): Set the tooltip for the "New" button. (ensure_menu_xml): Set up the tooltip here as well. * evolution-shell-component.c: Add tooltip member to struct UserCreatableItemType. (user_creatable_item_type_new): New arg @tooltip. (evolution_shell_component_add_user_creatable_item): New arg @tooltip. (impl__get_userCreatableItemTypes): Put the tooltip in the struct as well. * e-shell-user-creatable-items-handler.c (setup_toolbar_button): Create a GtkTooltips object and attach it to the combo_button using gtk_object_set_data(). (shell_view_view_changed_callback): Set up a tooltip for the button, according to the default. * Evolution-ShellComponent.idl: Add a tooltip member to struct UserCreatableItemType. svn path=/trunk/; revision=17343 * remove dependency on removed file camel/camel-pgp-context.hSean Atkinson2002-07-022-2/+5 | | | | | | | | | 002-07-02 Sean Atkinson <sean@cantab.net> * mail-preferences.c: remove dependency on removed file camel/camel-pgp-context.h svn path=/trunk/; revision=17340 * Make sure that cid is non-NULL.Jeffrey Stedfast2002-07-022-1/+6 | | | | | | | | | 2002-07-01 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (handle_multipart_related): Make sure that cid is non-NULL. svn path=/trunk/; revision=17338 * Removed some conflict indicators i missed.Michael Zucci2002-07-011-1/+0 | | | | svn path=/trunk/; revision=17332 * Removed. The folder's deleted event isn't needed since we're listening toNot Zed2002-07-012-14/+12 | | | | | | | | | | | | | | 2002-07-01 Not Zed <NotZed@Ximian.com> * mail-folder-cache.c (folder_deleted): Removed. The folder's deleted event isn't needed since we're listening to the store's folder_deleted signal. Also, the code was wrong, it cleared the folder without disconnecting events, etc. See #16486, and probably others. (mail_note_folder): Dont hook onto deleted anymore. (unset_folder_info): Or unhook from it. svn path=/trunk/; revision=17331 * Don't skip over disabled accounts - put them in the folder tree too.Jeffrey Stedfast2002-06-293-9/+14 | | | | | | | | | 2002-06-28 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (mail_load_storages): Don't skip over disabled accounts - put them in the folder tree too. svn path=/trunk/; revision=17329 * Fixes bug #27055.Jeffrey Stedfast2002-06-293-3/+22 | | | | | | | | | | | | | 2002-06-28 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #27055. * mail-accounts.c (account_add_finished): Unref the main accounts widget. (account_add_clicked): Ref the main accounts widget. (account_edit_finished): Unref the main accounts widget. (account_edit_clicked): Ref the main accounts widget. svn path=/trunk/; revision=17323 * Recursively delete any subfolders.Jeffrey Stedfast2002-06-282-12/+46 | | | | | | | | | 2002-06-27 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (storage_remove_folder): Recursively delete any subfolders. svn path=/trunk/; revision=17318 * slight build fixesJeffrey Stedfast2002-06-273-19/+20 | | | | svn path=/trunk/; revision=17304 * Don't allow the pgp type to be anything except NONE or GPG.Jeffrey Stedfast2002-06-277-139/+80 | | | | | | | | | | | | | | | | | | | | | | | 2002-06-26 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (config_read): Don't allow the pgp type to be anything except NONE or GPG. * mail-preferences.c (mail_preferences_apply): Don't allow someone to use anything other than GnuPG. * mail-crypto.c (mail_crypto_get_pgp_cipher_context): No need to handle pgp5 or pgp6 types anymore since we are no longer supporting them. Ding dong the witch is dead! * mail-format.c (handle_multipart_encrypted): Rewritten to use camel_multipart_encrypted_decrypt. * mail-crypto.c (mail_crypto_pgp_mime_part_verify): Removed. (mail_crypto_pgp_mime_part_encrypt): Removed. (mail_crypto_pgp_mime_part_decrypt): Are we seeing a trend yet? svn path=/trunk/; revision=17301 * Also handle https urls.Jeffrey Stedfast2002-06-262-1/+3 | | | | | | | | 2002-06-25 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (on_url_requested): Also handle https urls. svn path=/trunk/; revision=17280 * Some compiler warning fixes.Jeffrey Stedfast2002-06-269-63/+70 | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-25 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (mail_add_storage): Some compiler warning fixes. * mail-crypto.c (mail_crypto_pgp_mime_part_sign): Removed. (mail_crypto_get_pgp_cipher_context): New convenience function to construct a pgp cipher context. (mail_crypto_pgp_mime_part_verify): Use the new get_pgp_cipher_context function. (mail_crypto_pgp_mime_part_encrypt): Same. (mail_crypto_pgp_mime_part_decrypt): Here too. * mail-account-gui.c (mail_account_gui_new): Initialise the pgp_always_trust checkbox. (mail_account_gui_save): Get whether or not to always_trust the user's pgp keys. * mail-config.c (account_copy): Copy over the pgp_always_trust option. (config_read): Read in the always_trust option. (mail_config_write): Save the always_trust option. svn path=/trunk/; revision=17277 * If the pgp type is gpg, then use the gpg context.Jeffrey Stedfast2002-06-224-32/+88 | | | | | | | | | | | | | | | 2002-06-21 Jeffrey Stedfast <fejj@ximian.com> * mail-crypto.c (mail_crypto_pgp_mime_part_verify): If the pgp type is gpg, then use the gpg context. (mail_crypto_pgp_mime_part_sign): Same. (mail_crypto_pgp_mime_part_encrypt): Same. (mail_crypto_pgp_mime_part_decrypt): Same. * mail-format.c (handle_multipart_signed): Use the new gpg cipher context. svn path=/trunk/; revision=17253 * New convenience function to find the first parent node that is visible andJeffrey Stedfast2002-06-193-11/+41 | | | | | | | | | | | | | | | | | 2002-06-18 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_change_first_visible_parent): New convenience function to find the first parent node that is visible and emit a changed signal on it. (main_folder_changed): If a message changed, call change_first_visible_parent() in case we are in a collapsed thread so that our first visible parent gets updated as well. Fixes bug #26263. * component-factory.c (storage_remove_folder): Simplify the error checking. svn path=/trunk/; revision=17228 * New convenience function to get a cached normalised string.Jeffrey Stedfast2002-06-184-72/+164 | | | | | | | | | | | | | | | | | | 2002-06-17 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (get_normalised_string): New convenience function to get a cached normalised string. (subject_compare): Removed, as we strip Re:'s when normalising the subject strings now. (ml_tree_value_at): Added support for the normalised columns (used for a sorting optimisation). (message_list_init): Initialise normalised_hash. (message_list_destroy): Destroy normalised_hash. (message_list_create_extras): Removed subject_compare. (main_folder_changed): De-cache normalised strings for any removed uids. svn path=/trunk/; revision=17213 * If we dont support searching, dont try to.Not Zed2002-06-173-2/+11 | | | | | | | | | 2002-06-17 Not Zed <NotZed@Ximian.com> * message-list.c (regen_list_regen): If we dont support searching, dont try to. svn path=/trunk/; revision=17208 * Move m->complete = TRUE; to within the cancel-check block, this wayJeffrey Stedfast2002-06-122-2/+9 | | | | | | | | | | | 2002-06-11 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (regen_list_regen): Move m->complete = TRUE; to within the cancel-check block, this way complete only ever gets set to TRUE if we weren't cancelled. I assume this is how it was supposed to work. svn path=/trunk/; revision=17169 * If we dont get a folder, dont try and get details off it. Should get ridNot Zed2002-06-114-43/+102 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-11 Not Zed <NotZed@Ximian.com> * folder-info.c (do_get_info): If we dont get a folder, dont try and get details off it. Should get rid of most of those annoying summary warnings, but not the cause of them. 2002-06-06 Not Zed <NotZed@Ximian.com> * message-list.c (mail_regen_list): Keep track of the regeneration request in a list. (regen_list_free): Remove the request from the regenreation list. (message_list_set_folder): If there are any outstanding regneration requests, cancel them. (regen_list_regened): If we were cancelled, do nothing. (regen_list_regen): If we were cancelled, shortcut processing. This is all for #23571. * message-list.c (regen_list_regen): Change the way we calculate the hide deleted messages and tree view options. Do it based on a search and uid's rather than a summary. (regen_list_regened): Handle changes to tree storage. (mail_regen_list): The tree is now stored between updates, so we can update the tree structure incrementally. This blows out memory use some however. We need an etree that uses this as its model directly? (message_list_destroy): Free the thread tree. (message_list_set_folder): Clear the thread tree when changing folder. svn path=/trunk/; revision=17165 * Comment out the code to add/remove the store to the folder-tree when itJeffrey Stedfast2002-06-113-4/+11 | | | | | | | | | | 2002-06-10 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (account_able_clicked): Comment out the code to add/remove the store to the folder-tree when it gets enabled/disabled. svn path=/trunk/; revision=17162 * call mail_config_init to be sure we have the db, save auto_signature asRadek Doulik2002-06-113-1/+11 | | | | | | | | | | 2002-06-07 Radek Doulik <rodo@ximian.com> * mail-config.c (mail_config_write_account_sig): call mail_config_init to be sure we have the db, save auto_signature as well svn path=/trunk/; revision=17161 * If we are doing Reply-to-All, do not include any of the user's emailJeffrey Stedfast2002-06-112-55/+82 | | | | | | | | | | | 2002-06-10 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): If we are doing Reply-to-All, do not include any of the user's email accounts in the To: field. If, after this, the To: field is empty - then promote the first recipient in the Cc: list to the To: field. svn path=/trunk/; revision=17158 * hook this to cancel button in signature script dialogRadek Doulik2002-06-082-0/+10 | | | | | | | | | 2002-06-07 Radek Doulik <rodo@ximian.com> * mail-composer-prefs.c (sig_add_script_cancel): hook this to cancel button in signature script dialog svn path=/trunk/; revision=17150 * fix some typos, set label usize to 500, -2 (menu_help): added help link toRadek Doulik2002-06-082-2/+20 | | | | | | | | | | 2002-06-07 Radek Doulik <rodo@ximian.com> * mail-signature-editor.c (mail_signature_editor): fix some typos, set label usize to 500, -2 (menu_help): added help link to Help menu svn path=/trunk/; revision=17148 * script signaturesRadek Doulik2002-06-086-191/+310 | | | | svn path=/trunk/; revision=17144 * If this account is not a completely new account (ie, it is an editedJeffrey Stedfast2002-06-074-7/+92 | | | | | | | | | | | | | | 2002-06-06 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): If this account is not a completely new account (ie, it is an edited account), then remove any trace of it from the shell storages. If the new account belongs in the folder-tree, add it to the list of storages. * component-factory.c (mail_add_storage): New function to add a single storage. svn path=/trunk/; revision=17138 * disable edit and delete when there are no signatures definedRadek Doulik2002-06-072-0/+9 | | | | | | | | | 2002-06-06 Radek Doulik <rodo@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): disable edit and delete when there are no signatures defined svn path=/trunk/; revision=17133 * enhanced signature editorRadek Doulik2002-06-065-18/+88 | | | | svn path=/trunk/; revision=17132 * Keep track of the regeneration request in a list. (regen_list_free):Not Zed2002-06-063-18/+56 | | | | | | | | | | | | | | | 2002-06-06 Not Zed <NotZed@Ximian.com> * message-list.c (mail_regen_list): Keep track of the regeneration request in a list. (regen_list_free): Remove the request from the regenreation list. (message_list_set_folder): If there are any outstanding regneration requests, cancel them. (regen_list_regened): If we were cancelled, do nothing. (regen_list_regen): If we were cancelled, shortcut processing. This is all for #23571. svn path=/trunk/; revision=17129 * Don't forget to free the date string buffer.Jeffrey Stedfast2002-06-062-1/+7 | | | | | | | | | 2002-06-05 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_get_message_rfc822): Don't forget to free the date string buffer. svn path=/trunk/; revision=17127 * use gtk string instead of utf8 oneRadek Doulik2002-06-062-2/+8 | | | | | | | | | 2002-06-05 Radek Doulik <rodo@ximian.com> * mail-composer-prefs.c (sig_fill_clist): use gtk string instead of utf8 one svn path=/trunk/; revision=17121 * signature editor reworked, WIPRadek Doulik2002-06-057-585/+403 | | | | svn path=/trunk/; revision=17117 * The following changes take a great leap toward fixing bug #1042.Jeffrey Stedfast2002-06-054-34/+142 | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-04 Jeffrey Stedfast <fejj@ximian.com> The following changes take a great leap toward fixing bug #1042. * mail-display.c (mail_display_push_content_location): New function to push a Content-Location value onto the MailDisplay. (mail_display_get_content_location): Gets the current Content-Location CamelURL value. (mail_display_pop_content_location): Pop the Content-Location off the stack. * mail-format.c (get_location): Do URL merging if the Content-Location isn't a full URL. If the Content-Location doesn't exist, pretend the URL is actually the Content-Location URL of our parent multipart (assuming it exists). If that doesn't exist, then yes - return NULL. (handle_multipart_related): Push the Content-Location header value of the multipart/related so that we can do URL merging in get_location() as we process each of the subparts. When we're done, pop it back off the stack. svn path=/trunk/; revision=17113 * Added priorities.Christopher James Lahey2002-06-052-2/+6 | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * message-list.etspec: Added priorities. svn path=/trunk/; revision=17110 * Set the title of our GalViewCollection.Christopher James Lahey2002-06-042-0/+7 | | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * folder-browser-ui.c (folder_browser_ui_setup_view_menus): Set the title of our GalViewCollection. svn path=/trunk/; revision=17104 * Duh, we want to set the news_edit/delete buttons for the news page, notNot Zed2002-06-043-3/+11 | | | | | | | | | | | | | 2002-06-04 Not Zed <NotZed@Ximian.com> * mail-accounts.c (mail_accounts_tab_construct): Duh, we want to set the news_edit/delete buttons for the news page, not overwrite the mail ones! That would've saved a bit of angst ... * mail-config-druid.c (extra_prepare): dont call build_extra_conf, otherwise it blows away any settings with defaults. svn path=/trunk/; revision=17098 * Write the signature after the account has been added. (sig_new_html):Jeffrey Stedfast2002-06-042-16/+16 | | | | | | | | | | | 2002-06-04 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Write the signature after the account has been added. (sig_new_html): Don't write the signatures at this time. (sig_new_text): Same. svn path=/trunk/; revision=17096 * Correctly get the GtkWindow ancestor of the prefs widget.Jeffrey Stedfast2002-06-042-1/+9 | | | | | | | | | 2002-06-03 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (account_delete_clicked): Correctly get the GtkWindow ancestor of the prefs widget. svn path=/trunk/; revision=17095 * Changed to check everything from the composer before the message isNot Zed2002-06-043-66/+72 | | | | | | | | | | | | 2002-06-03 Not Zed <NotZed@Ximian.com> * mail-callbacks.c (composer_get_message): Changed to check everything from the composer before the message is requested. Otherwise we could end up signing/encrypting it twice, etc. * mail-format.c (handle_multipart_signed): removed some dead wood. svn path=/trunk/; revision=17094 * Prompt the user to see if he really wants to quit when there are queuedJeffrey Stedfast2002-06-043-3/+27 | | | | | | | | | 2002-06-03 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (request_quit): Prompt the user to see if he really wants to quit when there are queued messages in the Outbox. svn path=/trunk/; revision=17089 * Implement, return a text description of the localfolder.Not Zed2002-06-035-2/+81 | | | | | | | | | | | | | | | | | 2002-06-01 Not Zed <NotZed@Ximian.com> * mail-local.c (mlf_getv): Implement, return a text description of the localfolder. * message-list.c (ml_duplicate_value): (ml_free_value): (ml_initialize_value): (ml_value_is_empty): (ml_value_to_string): (ml_tree_value_at): Implement COL_LOCATION, original location of message (useful for vfolder). svn path=/trunk/; revision=17072 * make these citations as well.Larry Ewing2002-06-033-2/+10 | | | | | | | | | | | | 2002-06-02 Larry Ewing <lewing@ximian.com> * mail-tools.c (mail_tool_quote_message): make these citations as well. * mail-format.c (handle_text_plain_flowed): make these blockquotes into citations. svn path=/trunk/; revision=17070 * Changed to handle new multipart-signed type.Not Zed2002-05-312-51/+41 | | | | | | | | | 2002-05-31 Not Zed <NotZed@Ximian.com> * mail-format.c (handle_multipart_signed): Changed to handle new multipart-signed type. svn path=/trunk/; revision=17055 * Noop if we are in offline mode.Jeffrey Stedfast2002-05-313-11/+15 | | | | | | | | | | | | | 2002-05-30 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (mail_send_receive): Noop if we are in offline mode. * component-factory.c (mail_remove_storage): If the store is not in the storage hash, then it must not have ever been added. Fixes bug #25456. svn path=/trunk/; revision=17052 * Protect against NULL stores. Fixes bug #25456.Jeffrey Stedfast2002-05-312-2/+7 | | | | | | | | | 2002-05-30 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (store_disconnect): Protect against NULL stores. Fixes bug #25456. svn path=/trunk/; revision=17048 * Oops, create a message-browser window here, not a folder-browser-windowJeffrey Stedfast2002-05-312-2/+9 | | | | | | | | | 2002-05-30 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (view_msg): Oops, create a message-browser window here, not a folder-browser-window window. svn path=/trunk/; revision=17047 * moved spell checking options to separate page, updated UI by Anna's designRadek Doulik2002-05-305-166/+416 | | | | | | | | | | | | | 2002-05-29 Radek Doulik <rodo@ximian.com> * mail-composer-prefs.c: moved spell checking options to separate page, updated UI by Anna's design * mail-accounts.c (mail_accounts_load): use _ instead of U_ for clist (mail_accounts_tab_construct): justify marks column to right svn path=/trunk/; revision=17041 * use _ instead of U_ for clistRadek Doulik2002-05-302-1/+6 | | | | | | | | | 2002-05-29 Radek Doulik <rodo@ximian.com> * mail-accounts.c (mail_accounts_load): use _ instead of U_ for clist svn path=/trunk/; revision=17035 * Revert a failed idea.Jeffrey Stedfast2002-05-292-29/+5 | | | | | | | | | 2002-05-28 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-window.c (folder_browser_window_new): Revert a failed idea. svn path=/trunk/; revision=17026 * ops, revert array sizeRadek Doulik2002-05-252-1/+6 | | | | | | | | | 2002-05-24 Radek Doulik <rodo@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): ops, revert array size svn path=/trunk/; revision=17011 * If we can't find the mailing list address in the recipients list, justJeffrey Stedfast2002-05-242-2/+24 | | | | | | | | | | 2002-05-24 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): If we can't find the mailing list address in the recipients list, just Reply-to-All instead. svn path=/trunk/; revision=16998 * Set the ui to be the evolution-mail-global.xml file thingy. Still brokenJeffrey Stedfast2002-05-243-5/+18 | | | | | | | | | | | | 2002-05-23 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-window.c (folder_browser_window_new): Set the ui to be the evolution-mail-global.xml file thingy. Still broken but oh well. I give up. bonobo-ui sucks. * message-browser.c (set_bonobo_ui): Fixed to not crash. svn path=/trunk/; revision=16994 * (mail_composer_prefs_construct): add auto smiley check buttonRadek Doulik2002-05-243-1/+8 | | | | svn path=/trunk/; revision=16990 * If the folder-browser has a parent, reparent it.Jeffrey Stedfast2002-05-246-38/+316 | | | | | | | | | | | | | 2002-05-23 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-window.c (folder_browser_window_new): If the folder-browser has a parent, reparent it. * message-browser.[c,h]: Revert back to the old broken implementation since that's what users want. They're not happy unless it's broken. svn path=/trunk/; revision=16989 * added smileys checkbuttonRadek Doulik2002-05-241-0/+14 | | | | svn path=/trunk/; revision=16988 * be more careful about language_str{_orig}Radek Doulik2002-05-242-4/+16 | | | | | | | | 2002-05-23 Radek Doulik <rodo@ximian.com> * mail-composer-prefs.c: be more careful about language_str{_orig} svn path=/trunk/; revision=16987 * remove a #include "camel-remote-store.h"Jeffrey Stedfast2002-05-231-1/+0 | | | | svn path=/trunk/; revision=16981 * Only clear the text/html signature menus if they are non-NULL.Jeffrey Stedfast2002-05-221-0/+4 | | | | | | | | | 2002-05-21 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (sig_fill_options): Only clear the text/html signature menus if they are non-NULL. svn path=/trunk/; revision=16973 * Only clear the text/html signature menus if they are non-NULL.Jeffrey Stedfast2002-05-222-2/+9 | | | | | | | | | 2002-05-21 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (sig_fill_options): Only clear the text/html signature menus if they are non-NULL. svn path=/trunk/; revision=16972 * Use a new macro, STR_EQUAL, to tell if the 2 values are equal or notJeffrey Stedfast2002-05-222-1/+9 | | | | | | | | | | 2002-05-21 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (spell_save_values): Use a new macro, STR_EQUAL, to tell if the 2 values are equal or not rather than using strcmp since one or both strings could be NULL. svn path=/trunk/; revision=16971 * Forgot the changelog entry.Not Zed2002-05-211-0/+6 | | | | | | | | | | 2002-05-21 Not Zed <NotZed@Ximian.com> * folder-browser.c (folder_browser_config_search): Split the search word up for a body search and add it to the tokeniser to highlight. svn path=/trunk/; revision=16962 * New functions to add additional search strings one at a time. Maybe itNot Zed2002-05-214-661/+896 | | | | | | | | | | | | | | | | 2002-05-18 Not Zed <NotZed@Ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_add_primary_search_string): (e_searching_tokenizer_add_secondary_search_string): New functions to add additional search strings one at a time. Maybe it should just split the word itself? (all): Basically, entirely rewritten. Now implements the Aho-Corasick multiple pattern search algorithm and handles multiple search strings and only ever has to decode any utf8 character once, etc etc. svn path=/trunk/; revision=16961 * Only get the contents of a mime part if it is marked as "inline". FixesJeffrey Stedfast2002-05-213-2/+9 | | | | | | | | | 2002-05-20 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_get_message_body): Only get the contents of a mime part if it is marked as "inline". Fixes bug #7527. svn path=/trunk/; revision=16957 * Fixed the "Overdue:" string to not contain any HTML tags.Jeffrey Stedfast2002-05-213-9/+16 | | | | | | | | | 2002-05-20 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (mail_display_render): Fixed the "Overdue:" string to not contain any HTML tags. svn path=/trunk/; revision=16950 * Set the can_sync_offline property on the EFolder based on theEttore Perazzoli2002-05-214-410/+126 | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-corba-storage.c (impl_StorageListener_notifyFolderCreated): Set the can_sync_offline property on the EFolder based on the canSyncOffline value on the CORBA folder. * evolution-test-component.c (setup_custom_storage): Pass FALSE for @sync_offline to evolution_storage_new_folder(). * e-local-storage.c (new_folder): Pass FALSE for @sync_offline to evolution_storage_new_folder(). * evolution-storage.h (evolution_storage_new_folder): New arg @can_sync_offline. * subscribe-dialog.c (recursive_add_folder): Pass TRUE for @sync_offline to evolution_storage_new_folder(). * mail-folder-cache.c (real_flush_updates): Pass TRUE for @sync_offline to evolution_storage_new_folder(). * gui/component/addressbook-storage.c (load_source_data): Pass FALSE for @sync_offline to evolution_storage_new_folder(). (addressbook_storage_add_source): Pass FALSE for @sync_offline to evolution_storage_new_folder(). svn path=/trunk/; revision=16947 * Always unref the composer [even when we are destroying it], otherwise weEttore Perazzoli2002-05-202-1/+7 | | | | | | | | * mail-callbacks.c (composer_sent_cb): Always unref the composer [even when we are destroying it], otherwise we leak it and we get the nasty bug where you can't quit. svn path=/trunk/; revision=16941 * Check for a label tag when doing a lookup on the COLOR column.Jeffrey Stedfast2002-05-176-45/+137 | | | | | | | | | | | | | | | | | | 2002-05-16 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (ml_tree_value_at): Check for a label tag when doing a lookup on the COLOR column. * mail-config.c (mail_config_get_label_color_string): Return the colour in string format. * folder-browser.c (set_msg_label): Replaces colourise_msg and sets the "label" tag rather than the "colour" tag. * mail-preferences.c (mail_preferences_apply): Call mail_config_write() so that the settings get synced to disk. svn path=/trunk/; revision=16938 * added folder-info.h to the buildJeffrey Stedfast2002-05-171-0/+1 | | | | svn path=/trunk/; revision=16935 * New. (create_component): Pass it as the @request_quit_fn toEttore Perazzoli2002-05-163-9/+16 | | | | | | | | | | | | | | | | | | | | | * component-factory.c (request_quit): New. (create_component): Pass it as the @request_quit_fn to evolution_shell_component_new(). * e-msg-composer.c: New local `all_composers'; keeps a list of all the composer windows created. Changed type of `parent_class' to BonoboWindowClass *. (do_exit): Cleaned up a bit. Raise the composer window before showing the message box dialog. (exit_dialog_cb): Removed. (e_msg_composer_request_close_all): New. (create_composer): Add the composer to the all_composers list and weakref it. (msg_composer_destroy_notify): GtkDestroyNotify function for the composer's weakref; remove the composer from the all_composers list. svn path=/trunk/; revision=16930 * Check with e_shell_prepare_for_quit() before quitting.Ettore Perazzoli2002-05-162-1/+6 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-view-menu.c (command_quit): Check with e_shell_prepare_for_quit() before quitting. * e-shell.c (e_shell_prepare_for_quit): New. * evolution-test-component.c (request_quit_fn): New function asking for confirmation to quit. * evolution-shell-component.c (evolution_shell_component_new): New arg @request_quit_fn. (impl_requestQuit): New, implementation for EvolutionShellComponent::requestQuit. (evolution_shell_component_result_to_string): Handle EVOLUTION_SHELL_COMPONENT_CANCEL. (evolution_shell_component_client_request_quit): New. * Evolution-ShellComponent.idl (requestQuit): New. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * gui/component-factory.c (create_object): Pass NULL as @request_quit_fn. * gui/component/addressbook-component.c (create_component): Pass NULL as @request_quit_fn. svn path=/trunk/; revision=16925 * Implement prep_offline for an individual folder. (set_offline_do): OnlyNot Zed2002-05-154-55/+234 | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-15 Not Zed <NotZed@Ximian.com> * mail-ops.c (prep_offline_do): (prep_offline_done): (prep_offline_free): (mail_prep_offline): Implement prep_offline for an individual folder. (set_offline_do): Only call disco_store_set_status or disconnect for the store, dont do any offline prep stuff. * mail-offline-handler.c: Applied patch from Ettore to hook in extra offline interfaces. (impl_destroy): Dont free listener here anymore, its removed, but free sync table. (mail_offline_handler_init): Same for setup. (impl_syncFolder): Implement. (sync_done): handles finalising synchronisation of 1 folder. (sync_status): progress reporting, camel side. (sync_timeout): progress reporting, gmainloop side. (impl_cancelSyncFolder): Implement. (impl_goOffline, storage_go_offline, went_offline): Dont copy the listener to our struct - its an argument, not a member, so give each thread its own copy. svn path=/trunk/; revision=16799 * Instead of g_assert()ing that the msg_info is not NULL, if it is NULL justJeffrey Stedfast2002-05-152-1/+9 | | | | | | | | | | | 2002-05-15 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (ml_tree_value_at): Instead of g_assert()ing that the msg_info is not NULL, if it is NULL just return NULL. This fixes a crash when ETree requests the value at a root node (I don't understand why it needs to do that??). svn path=/trunk/; revision=16796 * added a missing header fileJeffrey Stedfast2002-05-152-0/+46 | | | | svn path=/trunk/; revision=16794 * Added #include "folder-info.h".Christopher James Lahey2002-05-1511-22/+35 | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-14 Christopher James Lahey <clahey@ximian.com> * component-factory.c: Added #include "folder-info.h". * folder-browser-window.c (folder_browser_window_new), mail-account-editor.c (apply_changes), mail-account-gui.c (mail_account_gui_save), message-tag-editor.c: Removed some unused variables. * folder-info.c: Added #include "folder-info.h". Removed static declaration of evolution_folder_info_get_type. * folder-info.c (destroy), mail-callbacks.c (confirm_goto_next_folder, find_current_folder, find_next_folder_r, find_next_folder, do_evil_kludgy_goto_next_folder_hack), mail-composer-prefs.c (sig_name_changed): Commented out these unused functions. * mail-config.c (add_new_storage): Removed this unused function. * mail-local.c (mlf_init): Fix the declaration of this function to match the required signature. svn path=/trunk/; revision=16788 * Added search="string" where appropriate.Christopher James Lahey2002-05-142-3/+7 | | | | | | | | 2002-05-13 Christopher James Lahey <clahey@ximian.com> * message-list.etspec: Added search="string" where appropriate. svn path=/trunk/; revision=16773 * Update for camel_folder_append_message / camel_folder_transfer_messages_toDan Winship2002-05-149-35/+58 | | | | | | | | | | | | | | | | * (various places): Update for camel_folder_append_message / camel_folder_transfer_messages_to API change. * mail-ops.c (mail_append_mail): Pass the appended_uid to the callback. * mail-callbacks.c (composer_save_draft_cb, save_draft_done, do_edit_messages): Take advantage of the append_message change to keep track of the UID of the saved draft so that we can delete the old copy of the draft each time we save a new one. Remove the FIXME suggesting we should do that, since we're doing it now. :) svn path=/trunk/; revision=16766 * Update for the new message-browser api.Jeffrey Stedfast2002-05-114-278/+45 | | | | | | | | | | | | | 2002-05-10 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_view_message): Update for the new message-browser api. * message-browser.c (message_browser_new): A brand new implementation that just shows the message, none of that next/prev crap that always caused problems anyway. svn path=/trunk/; revision=16759 * Don't add any shortcuts here. (mail_config_remove_account): And don'tJeffrey Stedfast2002-05-114-194/+26 | | | | | | | | | | | | | | 2002-05-10 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_add_account): Don't add any shortcuts here. (mail_config_remove_account): And don't remove them here. This code has never worked properly. * mail-ops.c (save_part_save): Use the exception enum names rather than '1' since it makes the code clearer. svn path=/trunk/; revision=16756 * Simplify. Use transfer_messages_to instead of picking between copy andDan Winship2002-05-113-35/+12 | | | | | | | | | | | | * mail-ops.c (transfer_messages_transfer): Simplify. Use transfer_messages_to instead of picking between copy and move. Remove vtrash special-casing since it's all in camel-vtrash-folder.c now. Remove duplicate source == dest check. * mail-local.c (mail_local_folder_reconfigure): Use transfer_messages_to instead of copy_messages_to. svn path=/trunk/; revision=16745 * Make sure that even if the new source url is NULL, that we preserve theJeffrey Stedfast2002-05-102-3/+10 | | | | | | | | | | 2002-05-09 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Make sure that even if the new source url is NULL, that we preserve the enabledness of the source. svn path=/trunk/; revision=16737 * Pass %FALSE as @has_shared_folders to evolution_storage_new().Ettore Perazzoli2002-05-102-1/+6 | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-local-storage.c (construct): Pass %FALSE as @has_shared_folders to evolution_storage_new(). * evolution-storage.c: New member has_shared_folders in EvolutionStoragePrivate. (init): Initialize to FALSE. (evolution_storage_new): New arg @has_shared_folders. (evolution_storage_construct): Likewise. (impl_Storage__get_folderList): Renamed from impl_Storage__get_folder_list. (impl_Storage__get_hasSharedFolders): New, implementation for ::hasSharedFolders. (evolution_storage_get_epv): Install the CORBA method implementation. * Evolution-Storage.idl: Make Storage::name a readonly attribute. New attribute Storage:: * component-factory.c (add_storage): Pass %FALSE as @has_shared_folders to evolution_storage_new(). * gui/component/addressbook-storage.c (addressbook_get_other_contact_storage): Pass %FALSE as @has_shared_folders to evolution_storage_new(). svn path=/trunk/; revision=16733 * dist Spell.idlJP Rosevear2002-05-092-0/+5 | | | | | | | | 2002-05-09 JP Rosevear <jpr@ximian.com> * Makefile.am: dist Spell.idl svn path=/trunk/; revision=16731 * implemented (c'n'p-ed and updated) spell checking settingsRadek Doulik2002-05-098-38/+378 | | | | | | | | | 2002-05-08 Radek Doulik <rodo@ximian.com> * mail-composer-prefs.c: implemented (c'n'p-ed and updated) spell checking settings svn path=/trunk/; revision=16728 * Change so there's no race conditions between the folder info and the session ↵Iain Holmes2002-05-083-44/+119 | | | | | | stuff svn path=/trunk/; revision=16723 * Changed for rule_context_rename_uri api changes. (mail_filter_delete_uri):Not Zed2002-05-082-2/+39 | | | | | | | | | | | | 2002-05-08 Not Zed <NotZed@Ximian.com> * mail-autofilter.c (mail_filter_rename_uri): Changed for rule_context_rename_uri api changes. (mail_filter_delete_uri): Same. Also, popup a dialogue similar to vfolder deleted dialogue to notify the user something has changed. Partial fix for #18826. svn path=/trunk/; revision=16720 * propose spell checking settings UIRadek Doulik2002-05-081-101/+98 | | | | svn path=/trunk/; revision=16715 * fixed the glade file so that the management page would show up in the ↵Jeffrey Stedfast2002-05-082-4/+4 | | | | | | account druid. svn path=/trunk/; revision=16710 * Flush the filter log to make Tuomas happy :-)Jeffrey Stedfast2002-05-075-8/+29 | | | | | | | | | | | | 2002-05-06 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (filter_folder_free): Flush the filter log to make Tuomas happy :-) * mail-session.c (mail_session_flush_filter_log): New convenience function to flush the session's filter log file. svn path=/trunk/; revision=16696 * Set the Seen flag as well since it's safe to assume that if the user hasJeffrey Stedfast2002-05-072-2/+6 | | | | | | | | | | 2002-05-06 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_reply): Set the Seen flag as well since it's safe to assume that if the user has replied to an email message that he has read it. Not always true, but usually ;-) svn path=/trunk/; revision=16693 * If we are in a Sent/Drafts/Outbox folder, don't show the "Add Sender toJeffrey Stedfast2002-05-072-4/+23 | | | | | | | | | | 2002-05-06 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (on_right_click): If we are in a Sent/Drafts/Outbox folder, don't show the "Add Sender to Addressbook" menu item. svn path=/trunk/; revision=16692 * Check all threads are idle as well, using new e_thread_busy call. ShouldNot Zed2002-05-062-2/+8 | | | | | | | | | | 2002-05-06 Not Zed <NotZed@Ximian.com> * component-factory.c (idle_quit): Check all threads are idle as well, using new e_thread_busy call. Should fix #22553? Also sleep a little bit, to let the other threads run. svn path=/trunk/; revision=16684 * Update the code to actually work. (sig_new_html): Same.Jeffrey Stedfast2002-05-023-14/+21 | | | | | | | | | | | | | 2002-05-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (sig_new_text): Update the code to actually work. (sig_new_html): Same. * mail-composer-prefs.c (mail_composer_prefs_new_signature): Allow 'prefs' to be NULL. svn path=/trunk/; revision=16659 * Fix the filter_menu static array to use the E_POPUP_MENU_CC macros sinceJeffrey Stedfast2002-05-022-1/+3 | | | | | | | | | | | | 2002-05-01 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (on_right_click): Fix the filter_menu static array to use the E_POPUP_MENU_CC macros since we plan on using custom closures for this. (on_right_click): Fixed so that you can "Edit as New" for any Sent folder and not just the local Sent folder. svn path=/trunk/; revision=16657 * Fix the filter_menu static array to use the E_POPUP_MENU_CC macros sinceJeffrey Stedfast2002-05-022-9/+16 | | | | | | | | | | 2002-05-01 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (on_right_click): Fix the filter_menu static array to use the E_POPUP_MENU_CC macros since we plan on using custom closures for this. svn path=/trunk/; revision=16656 * Also check folder!=NULL. Fixes race where folder isn't setup yet, andNot Zed2002-05-013-2/+8 | | | | | | | | | | | 2002-05-01 Not Zed <NotZed@Ximian.com> * folder-browser.h (FOLDER_BROWSER_IS_DESTROYED): Also check folder!=NULL. Fixes race where folder isn't setup yet, and neither is bonobo menu status (because its delayed), and we get a menu event before we're setup yet. For bug #21939. svn path=/trunk/; revision=16653 * If the folder's permanent_flags don't include CAMEL_MESSAGE_DELETED, don'tDan Winship2002-05-012-0/+8 | | | | | | | | * mail-callbacks.c (delete_msg): If the folder's permanent_flags don't include CAMEL_MESSAGE_DELETED, don't do anything. (In particular, don't move the cursor.) svn path=/trunk/; revision=16645 * Convert UTF-8 to gtkstrings since we are using a clist and not an E-widgetJeffrey Stedfast2002-04-303-12/+43 | | | | | | | | | | | | | 2002-04-29 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (message_tag_followup_append_message): Convert UTF-8 to gtkstrings since we are using a clist and not an E-widget that takes UTF-8. * mail-display.c (mail_display_add_url): If the data-urls is NULL, add a data-urls hash to the datalist. This finishes up bug #90. svn path=/trunk/; revision=16640 * Strip leading/trailing whitespace from the username because usersJeffrey Stedfast2002-04-302-12/+29 | | | | | | | | | | | | | | 2002-04-29 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (save_service): Strip leading/trailing whitespace from the username because users sometimes accidently add extra spaces here and there. Fixes bug #24009 (along with a number of other "bugs"). (mail_account_gui_auto_detect_extra_conf): Use a CamelURL instead of a GHashTable *settings. Also parse out the port # from the hostname. svn path=/trunk/; revision=16633 * Strip leading/trailing whitespace from the username because usersJeffrey Stedfast2002-04-302-1/+8 | | | | | | | | | | | 2002-04-29 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (save_service): Strip leading/trailing whitespace from the username because users sometimes accidently add extra spaces here and there. Fixes bug #24009 (along with a number of other "bugs"). svn path=/trunk/; revision=16632 * clean up propmanager initialization code.Larry Ewing2002-04-293-32/+26 | | | | | | | | | | | | 2002-04-29 Larry Ewing <lewing@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): clean up propmanager initialization code. * mail-preferences.c (mail_preferences_construct): small clean ups to propmanager code. svn path=/trunk/; revision=16628 * handle requests for the font manager control.Larry Ewing2002-04-2910-430/+688 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-29 Larry Ewing <lewing@ximian.com> * mail-config-factory.c (config_control_factory_cb): handle requests for the font manager control. * mail-config.glade: add fonts tabs and reorder composer options to match the new dialogs from anna. * GNOME_Evolution_Mail.oaf.in: add font manager control definition. * mail-composer-prefs.c (mail_composer_prefs_construct): hook to the gtkhtml propmanager. (mail_composer_prefs_apply): apply propmanager changes. (mail_composer_prefs_finalise): unref the propmanager. * mail-composer-prefs.h: add propmanager member. * mail-font-prefs.c: initialize gui properly. * mail-preferences.c (mail_preferences_construct): hook to gtkhtml's propmanager. (mail_preferences_apply): apply propmanager changes. (mail_preferences_finalise): unref the propmanager. * mail-preferences.h: add propmanager member. * Makefile.am (evolution_mail_SOURCES): add mail-font-prefs.[ch] to the build. svn path=/trunk/; revision=16627 * use the html reply logic even for plain parts so that we can test out theLarry Ewing2002-04-292-2/+8 | | | | | | | | | 2002-04-29 Larry Ewing <lewing@ximian.com> * mail-tools.c (mail_tool_quote_message): use the html reply logic even for plain parts so that we can test out the new gtkhtml cite logic. svn path=/trunk/; revision=16626 * add const to silence warning.Larry Ewing2002-04-293-1/+17 | | | | | | | | | | | | 2002-04-29 Larry Ewing <lewing@ximian.com> * importers/evolution-mbox-importer.c (process_item_fn): add const to silence warning. * mail-display.c: add gtkhtml.h include so to pick up the object_relative prototype. svn path=/trunk/; revision=16625 * Don't link with libibex anymore, it's been deprecated.Jeffrey Stedfast2002-04-272-1/+3 | | | | | | | | | 2002-04-26 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Don't link with libibex anymore, it's been deprecated. svn path=/trunk/; revision=16618 * Do away with the goto-next-folder stuff, it's very annoying.Jeffrey Stedfast2002-04-272-0/+5 | | | | | | | | | 2002-04-26 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (next_unread_msg): Do away with the goto-next-folder stuff, it's very annoying. svn path=/trunk/; revision=16607 * After building the extra config options into a Gtk form, auto-detect anyJeffrey Stedfast2002-04-274-6/+123 | | | | | | | | | | | | | | 2002-04-26 Jeffrey Stedfast <fejj@ximian.com> * mail-config-druid.c (extra_prepare): After building the extra config options into a Gtk form, auto-detect any values that we can and populate them by calling mail_account_gui_auto_detect_extra_conf. * mail-account-gui.c (mail_account_gui_auto_detect_extra_conf): New function to auto-detect the extra config options for a source. svn path=/trunk/; revision=16598 * Add the font config dialog.Larry Ewing2002-04-262-0/+193 | | | | | | | | | | 2002-04-26 Larry Ewing <lewing@ximian.com> * mail-font-prefs.c: Add the font config dialog. * mail-font-prefs.h: add font config dialog headers. svn path=/trunk/; revision=16594 * Allow providers to override text entry boxes too. (source_type_changed):Jeffrey Stedfast2002-04-252-31/+57 | | | | | | | | | | | 2002-04-24 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_build_extra_conf): Allow providers to override text entry boxes too. (source_type_changed): Remove the logic to decide upon default paths, these paths can now be set by the provider. svn path=/trunk/; revision=16581 * Update to use E_POPUP_MENU_PIXMAP_WIDGET_ITEM_CC so that our callback getsJeffrey Stedfast2002-04-252-6/+11 | | | | | | | | | | | 2002-04-24 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (label_menu): Update to use E_POPUP_MENU_PIXMAP_WIDGET_ITEM_CC so that our callback gets called without per-item closure rather than being called with NULL and causing a segfault. svn path=/trunk/; revision=16578 * Set the default Username label and handle the newJeffrey Stedfast2002-04-252-6/+28 | | | | | | | | | | | 2002-04-24 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_build_extra_conf): Set the default Username label and handle the new CAMEL_PROVIDER_CONF_LABEL enum allowing the provider to setup a label. svn path=/trunk/; revision=16576 * Added back the checkmark icon for enabled accounts.Jeffrey Stedfast2002-04-243-7/+34 | | | | | | | | | | | 2002-04-23 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c: Added back the checkmark icon for enabled accounts. (account_able_clicked): Don't reload the accounts list, that was just lame. svn path=/trunk/; revision=16571 * Plug-in Anna's html for the flag-for-followup stuff. Finishes up bug #90.Jeffrey Stedfast2002-04-232-15/+34 | | | | | | | | | 2002-04-22 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (mail_display_render): Plug-in Anna's html for the flag-for-followup stuff. Finishes up bug #90. svn path=/trunk/; revision=16563 * Free the loading/pending/new/loaded_uid string buffers.Jeffrey Stedfast2002-04-202-2/+10 | | | | | | | | | 2002-04-19 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_finalise): Free the loading/pending/new/loaded_uid string buffers. svn path=/trunk/; revision=16546 * Free some temporary path buffers.Jeffrey Stedfast2002-04-202-8/+13 | | | | | | | | | 2002-04-19 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (config_read_signature): Free some temporary path buffers. svn path=/trunk/; revision=16545 * Ref the html object here, this is an async handler so it's possible forJeffrey Stedfast2002-04-202-1/+22 | | | | | | | | | | | | | | | | | | | | 2002-04-19 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (stream_write_or_redisplay_when_loaded): Ref the html object here, this is an async handler so it's possible for our caller (or someone else) to unref the html object before we finish. (load_content_free): Unref the async handler's ref of the html object here. (mail_display_new): Ref the html widget here so that we can be sure that so long as the mail-display is "alive", so is the html object. See bug #22328 for details. Basically, the message-browser is being closed before the message gets loaded and so the html object was being destroyed but the mail-display was still alive. (mail_display_destroy): Unref the html object when the mail-display is destroyed. svn path=/trunk/; revision=16544 * Added yet more accelerators for the new config dialog--this time for theAnna Marie Dirks2002-04-202-13/+22 | | | | | | | | | 2002-04-19 Anna Marie Dirks <anna@ximian.com> * mail-config.glade: Added yet more accelerators for the new config dialog--this time for the composer pages svn path=/trunk/; revision=16543 * would help if I didn't name 2 widgets the same for the colour tab in the ↵Jeffrey Stedfast2002-04-201-2/+2 | | | | | | preferences dialog ;-) svn path=/trunk/; revision=16541 * Added a bunch of accelerators for the new config dialogAnna Marie Dirks2002-04-202-109/+125 | | | | | | | | | 2002-04-19 Anna Marie Dirks <anna@ximian.com> * mail-config.glade: Added a bunch of accelerators for the new config dialog svn path=/trunk/; revision=16538 * Removed all Delivered-To headers before redirecting. Fixes bug #23635.Jeffrey Stedfast2002-04-192-0/+11 | | | | | | | | | 2002-04-18 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (redirect_get_composer): Removed all Delivered-To headers before redirecting. Fixes bug #23635. svn path=/trunk/; revision=16525 * use default paper name in case of wrong translationRadek Doulik2002-04-192-1/+10 | | | | | | | | | 2002-04-18 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (do_mail_print): use default paper name in case of wrong translation svn path=/trunk/; revision=16516 * Turn off the code which downloads the part if we can't identify it. SeeNot Zed2002-04-182-0/+10 | | | | | | | | | | 2002-04-15 Not Zed <NotZed@Ximian.com> * mail-identify.c (mail_identify_mime_part): Turn off the code which downloads the part if we can't identify it. See discussion in #11778. svn path=/trunk/; revision=16504 * Bumped required gal version number to 0.19.99.11.Christopher James Lahey2002-04-183-54/+52 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-17 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped required gal version number to 0.19.99.11. From addressbook/ChangeLog: 2002-04-17 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names.c (e_select_names_create_categories): Changed this to use ECategoriesMasterListOptionMenu. * gui/component/select-names/e-select-names.c (section_right_click_cb), gui/widgets/e-addressbook-reflow-adapter.c, gui/widgets/e-addressbook-view.c: Updated these to match the new EPopupMenu. From calendar/ChangeLog: 2002-04-17 Christopher James Lahey <clahey@ximian.com> * gui/e-calendar-table.c, gui/e-day-view.c, gui/e-week-view.c, gui/dialogs/meeting-page.c: Updated these to match the new EPopupMenu. From mail/ChangeLog: 2002-04-17 Christopher James Lahey <clahey@ximian.com> * folder-browser.c, mail-display.c: Updated these to match the new EPopupMenu. From shell/ChangeLog: 2002-04-17 Christopher James Lahey <clahey@ximian.com> * e-activity-handler.c: Updated this to match the new EPopupMenu. svn path=/trunk/; revision=16498 * Handle broken multipart/signed parts such as where the signature part isJeffrey Stedfast2002-04-182-9/+0 | | | | | | | | | | | | | 2002-04-17 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (handle_multipart_signed): Handle broken multipart/signed parts such as where the signature part is not the last part (as it should be). Fixes bug #23583. * folder-browser.c (message_list_drag_data_get): Free the temp GByteArrays. svn path=/trunk/; revision=16495 * Handle broken multipart/signed parts such as where the signature part isJeffrey Stedfast2002-04-183-16/+57 | | | | | | | | | | | | | | | | | 2002-04-17 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (handle_multipart_signed): Handle broken multipart/signed parts such as where the signature part is not the last part (as it should be). Fixes bug #23583. * folder-browser.c (message_list_drag_data_get): Free the temp GByteArrays. (setup_popup_icons): Connect to the destroy signal on the pixmap objects using gtk_object_unref as the callback - this way when the popup menu gets destroyed, the pixmaps clean themselves up. (on_right_click): Same idea for the label_menu. svn path=/trunk/; revision=16494 * Just use g_basename. (mlf_finalize): Free the real_path.Jeffrey Stedfast2002-04-183-6/+14 | | | | | | | | | | | | 2002-04-17 Jeffrey Stedfast <fejj@ximian.com> * mail-local.c (mail_local_folder_construct): Just use g_basename. (mlf_finalize): Free the real_path. * folder-browser.c (on_right_click): Unref the GdkGC so we don't leak it. svn path=/trunk/; revision=16493 * Free the format string.Jeffrey Stedfast2002-04-174-2/+15 | | | | | | | | | | | | | | | 2002-04-16 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_destroy_xevolution): Free the format string. * mail-config.c (config_write_signature): Don't leak the path strings here. * mail-signature-editor.c (menu_file_save_cb): Free the dirname string. svn path=/trunk/; revision=16486 * Ref the prefs widget here since we unref in the destroy callback. CaughtJeffrey Stedfast2002-04-173-5/+14 | | | | | | | | | | 2002-04-16 Jeffrey Stedfast <fejj@ximian.com> * mail-config-factory.c (config_control_factory_cb): Ref the prefs widget here since we unref in the destroy callback. Caught this thanks to purify. svn path=/trunk/; revision=16481 * s/ENABLE_NEWS/ENABLE_NNTPJeffrey Stedfast2002-04-141-1/+1 | | | | svn path=/trunk/; revision=16464 * compile fixesJeffrey Stedfast2002-04-143-19/+19 | | | | svn path=/trunk/; revision=16461 * Build fixes for --enable-nntp.Jeffrey Stedfast2002-04-142-4/+9 | | | | | | | | 2002-04-13 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c: Build fixes for --enable-nntp. svn path=/trunk/; revision=16459 * Updated French translation.Christophe Merlet2002-04-132-1/+5 | | | | svn path=/trunk/; revision=16458 * added a #include to fix a compile warningJeffrey Stedfast2002-04-131-0/+2 | | | | svn path=/trunk/; revision=16453 * Make it so that unchecking the "Enable Advanced Options" in the signatureJeffrey Stedfast2002-04-133-1/+27 | | | | | | | | | | 2002-04-12 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): Make it so that unchecking the "Enable Advanced Options" in the signature tab disables the advanced settings and vise versa. svn path=/trunk/; revision=16452 * Setup News preferences too if it is enabled.Jeffrey Stedfast2002-04-135-1794/+262 | | | | | | | | | 2002-04-12 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (mail_accounts_tab_construct): Setup News preferences too if it is enabled. svn path=/trunk/; revision=16451 * Set the text of the reply-to. (mail_account_gui_save): Get the reply-toJeffrey Stedfast2002-04-128-127/+380 | | | | | | | | | | | | | | | | | | 2002-04-12 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): Set the text of the reply-to. (mail_account_gui_save): Get the reply-to text here. (mail_account_gui_identity_complete): If there is text in the reply-to widget make sure it's valid. * mail-config.c (identity_copy): Copy the reply-to. (config_read): Read in the reply-to for all the accounts. (mail_config_write): Save the reply-to. (impl_GNOME_Evolution_MailConfig_addAccount): Get the reply-to. (identity_destroy): Free the reply-to. svn path=/trunk/; revision=16446 * s/Sent/Date. This fixes bug #11159.Jeffrey Stedfast2002-04-112-1/+5 | | | | | | | | 2002-04-11 Jeffrey Stedfast <fejj@ximian.com> * message-list.etspec: s/Sent/Date. This fixes bug #11159. svn path=/trunk/; revision=16437 * Set the 'No' button as the default.Jeffrey Stedfast2002-04-112-0/+8 | | | | | | | | | 2002-04-10 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (confirm_expunge): Set the 'No' button as the default. svn path=/trunk/; revision=16435 * Oops, put x_mailer_display_style in /Mail/Display, not /Mail/FormatDan Winship2002-04-111-2/+2 | | | | svn path=/trunk/; revision=16431 * Handle the X-Mailer display style. (There is currently no GUI forDan Winship2002-04-114-13/+102 | | | | | | | | | | | | | * mail-config.c (config_read, mail_config_write, mail_config_get_x_mailer_display_style, mail_config_set_x_mailer_display_style): Handle the X-Mailer display style. (There is currently no GUI for configuring this.) * mail-format.c (write_headers, write_xmailer_header): Show X-Mailer/User-Agent (and Rupert's stamp of approval) as appropriate. svn path=/trunk/; revision=16430 * removed an extra printfJeffrey Stedfast2002-04-101-1/+0 | | | | svn path=/trunk/; revision=16418 * Kludge around the brokeness that is GtkOptionMenu just like we kludgeJeffrey Stedfast2002-04-102-76/+87 | | | | | | | | | | 2002-04-09 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (setup_service): Kludge around the brokeness that is GtkOptionMenu just like we kludge around it for the authtype option menu. svn path=/trunk/; revision=16417 * Add view_info arg, but don't do anything with it.Dan Winship2002-04-092-0/+6 | | | | | | | * component-factory.c (create_view): Add view_info arg, but don't do anything with it. svn path=/trunk/; revision=16398 * Argh! get_folder_info owns and frees its *OWN* folder info, it shouldn'tNot Zed2002-04-092-2/+7 | | | | | | | | | | | 2002-04-08 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (receive_update_got_folderinfo): Argh! get_folder_info owns and frees its *OWN* folder info, it shouldn't be free'd here! See mail-ops.c:get_folderinfo_free. This should fix #17259 and friends. svn path=/trunk/; revision=16395 * oops, I forgot to update the ChangeLog to be accurate for my last commitJeffrey Stedfast2002-04-091-4/+3 | | | | svn path=/trunk/; revision=16393 * Since bonobo doesn't seem to O_TRUNC the file stream before writing to it,Jeffrey Stedfast2002-04-092-26/+49 | | | | | | | | | | | | | 2002-04-08 Jeffrey Stedfast <fejj@ximian.com> * mail-signature-editor.c (menu_file_save_cb): Since bonobo doesn't seem to O_TRUNC the file stream before writing to it, write to a temp file first and then rename() it to the real filename. This also protects against losing data if the drive is full too. Also use a real mode, not 0, so that we can actually save/read the content ;-) svn path=/trunk/; revision=16392 * Re-added the config wizard interfaces. Ettore accidently removed themJeffrey Stedfast2002-04-094-47/+38 | | | | | | | | | | | | | | | | 2002-04-08 Jeffrey Stedfast <fejj@ximian.com> * GNOME_Evolution_Mail.oaf.in: Re-added the config wizard interfaces. Ettore accidently removed them thinking they were duplicates of the new mail-config interfaces. * mail-config.glade: Remove the OK, Apply, Cancel buttons from the keyboard shortcut tab in the composer_prefs dialog. * mail-account-gui.c: No need to check gui->source before using gui->source->url, since gui->source *has* to exist. svn path=/trunk/; revision=16391 * add config_item:typeJP Rosevear2002-04-072-1/+9 | | | | | | | | 2002-04-06 JP Rosevear <jpr@ximian.com> * GNOME_Evolution_Mail.oaf.in: add config_item:type svn path=/trunk/; revision=16377 * Make the drafts and sent folder buttons be EvolutionFolderSelectorButtons.Dan Winship2002-04-059-170/+122 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-account-gui.c (mail_account_gui_new): Make the drafts and sent folder buttons be EvolutionFolderSelectorButtons. Remove the code to deal with drafts_folder_name and sent_folder_name, since they were only used to construct the button and aren't needed now. (mail_account_gui_save): Remove drafts/sent name references. (mail_account_gui_destroy): Likewise (folder_selected): Handle the "selected" signal on the folder selector button by updating the URI in the MailAccountGui. (mail_account_gui_folder_selector_button_new): Glade custom widget constructor. * mail-callbacks.c (transfer_msg): Update for evolution_shell_client_user_select_folder change. * message-browser.c (transfer_msg): Likewise. (Sigh. Why is this cut+pasted?) * mail-config.glade: Make the drafts/sent folder buttons custom widgets. * mail-config.c (account_copy): Remove drafts/sent folder name handling. (account_destroy): Likewise. (config_read): Likewise. (mail_config_write): Likewise. * Mail.idl (MailConfig:Account): remove drafts_folder_name and sent_folder_name. svn path=/trunk/; revision=16353 * Set the window title/icon here instead.Jeffrey Stedfast2002-04-0410-88/+210 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-03 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (construct): Set the window title/icon here instead. * message-tag-editor.c (message_tag_editor_init): Don't set the title or window icon here, this is a generic class. * mail-format.c (handle_multipart_signed): Replace get_url_for_icon with the new mail_display_get_url_for_icon function. (handle_multipart_digest): Here too. (get_cid): Use mail_display_add_url instead. (get_location): Same. (handle_text_enriched): Here too. (handle_multipart_signed): And here. * message-tag-followup.c (message_tag_followup_i18n_name): Use the U_() macro, not the _() macro as it is what we really want. * mail-ops.c (mail_send_message): Don't cast the message into a CamelMedium before sending anymore. * mail-callbacks.c (expunge_folder): Set the followup argument to NULL here. (done_message_selected): Get the followup value here and pass it to the mail-display here. (do_mail_fetch_and_print): Again with the NULL followup here. * folder-browser.c (folder_browser_set_message_preview): Update to pass in NULL as the followup since we are setting the message to NULL here. (done_message_selected): Get and set the appropriate followup value here. (do_message_selected): Update to pass in NULL as the followup since we are setting the message to NULL here. * mail-display.c (mail_display_set_message): Now takes a followup tag value. (mail_display_init): Set md->followup to NULL. (mail_display_destroy): Free md->followup. (mail_display_add_url): New: replaces the static add_url function originally in mail-format.c (mail_display_get_url_for_icon): New: replaces get_url_for_icon which was originally in mail-format.c svn path=/trunk/; revision=16334 * Changes to allow combined store/transport providers (like exchange andDan Winship2002-04-043-15/+94 | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-account-gui.c: Changes to allow combined store/transport providers (like exchange and nntp). You can only select the transport if the account is also using that provider for the source. (source_type_changed): If changing away from a combined store/transport type, disable that provider on the transport page. If change to a combined store/transport type, enable and select that provider on the transport page. (mail_account_gui_setup): Do some additional bookkeeping here to make the above stuff work. (transport_type_changed): If the provider is a combined store/transport type, pretend it doesn't need any additional URL configuration. (mail_account_gui_transport_complete): if the transport provider is also a store provider, then as long as it matches the source for the account, it's considered complete. (mail_account_gui_save): If the selected transport is a combined store/transport provider, use the source page's information to fill in the transport url. * mail-local.c (mail_local_provider_init): Don't set up service_cache. svn path=/trunk/; revision=16331 * Pass the UID of the message being edited to the save-draft signal handler.Jeffrey Stedfast2002-04-032-9/+36 | | | | | | | | | | | | | | 2002-04-02 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_edit_messages): Pass the UID of the message being edited to the save-draft signal handler. (composer_save_draft_cb): Pass the old draft uid to our async append_message function and let the append_message callback worry about deleting the old draft message on success. (save_draft_done): Delete the old draft message if we successfully appended the new draft message. svn path=/trunk/; revision=16328 * Removed an unused pixmap from Tools/Settings to avoid a big nasty bonoboJeffrey Stedfast2002-04-022-1/+3 | | | | | | | | | 2002-04-01 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c: Removed an unused pixmap from Tools/Settings to avoid a big nasty bonobo warning. svn path=/trunk/; revision=16318 * Re-Implemented the signature editor stuff (mostly just copy/paste fromJeffrey Stedfast2002-04-027-46/+479 | | | | | | | | | | | | | 2002-04-01 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): Re-Implemented the signature editor stuff (mostly just copy/paste from Radeks original code). * mail-signature-editor.c (mail_signature_editor): Use the right oafiid for the html editor control. svn path=/trunk/; revision=16316 * Use -avoid-version -module. (From Max Horn <max@quendi.de>)Dan Winship2002-04-022-2/+8 | | | | | | | | * importers/Makefile.am (liboutlook_la_LDFLAGS, libmbox_la_LDFLAGS): Use -avoid-version -module. (From Max Horn <max@quendi.de>) svn path=/trunk/; revision=16306 * Don't shift the r, g and b values here either.Jeffrey Stedfast2002-03-303-6/+18 | | | | | | | | | | | | 2002-03-29 Jeffrey Stedfast <fejj@ximian.com> * mail-preferences.c (colorpicker_get_color): Don't shift the r, g and b values here either. * mail-composer-prefs.c (colorpicker_get_color): Don't shift the r, g, b values. svn path=/trunk/; revision=16297 * Restore the labels & colours options from the grave.Jeffrey Stedfast2002-03-304-3/+350 | | | | | | | | | | 2002-03-29 Jeffrey Stedfast <fejj@ximian.com> * mail-preferences.c (mail_preferences_construct): Restore the labels & colours options from the grave. (mail_preferences_apply): Save these labels & colours options. svn path=/trunk/; revision=16296 * Added priorities for all the configuration pagesEttore Perazzoli2002-03-302-0/+11 | | | | | | | * GNOME_Evolution_Mail.oaf.in: Added priorities for all the configuration pages [evolution:config_item:priority]. svn path=/trunk/; revision=16294 * Same here.Jeffrey Stedfast2002-03-303-8/+46 | | | | | | | | | | | | 2002-03-29 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): Same here. * mail-preferences.c (mail_preferences_construct): Do some gtk hackery action so we can detect if a option menu has changed. svn path=/trunk/; revision=16290 * Cleaned up a bunch [removing duplicates ;-)], set up icons for all theEttore Perazzoli2002-03-302-89/+8 | | | | | | | * GNOME_Evolution_Mail.oaf.in: Cleaned up a bunch [removing duplicates ;-)], set up icons for all the configuration pages. svn path=/trunk/; revision=16286 * (account_cursor_change): Make sure that event is non-NULL here.Jeffrey Stedfast2002-03-292-2/+3 | | | | svn path=/trunk/; revision=16279 * Use a GtkCList instead of an ETable, for some reason the etable wasJeffrey Stedfast2002-03-294-35/+183 | | | | | | | | | | | 2002-03-28 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c: Use a GtkCList instead of an ETable, for some reason the etable was getting into some infinite resize loop or something. I probably did something wrong but I can't figure out what so I'm using a clist for now. svn path=/trunk/; revision=16277 * Use gtk_container_add() to put the toplevel in the parent widget, insteadEttore Perazzoli2002-03-283-5/+4 | | | | | | | | | | * mail-accounts.c (mail_accounts_tab_construct): Use gtk_container_add() to put the toplevel in the parent widget, instead of just gtk_widget_set_parent(). * mail-preferences.c (mail_preferences_construct): Likewise. * mail-composer-prefs.c (mail_composer_prefs_construct): Likewise. svn path=/trunk/; revision=16271 * Use gtk_container_add() to put the toplevel in the parent widget, insteadEttore Perazzoli2002-03-282-2/+12 | | | | | | | | | | * mail-accounts.c (mail_accounts_tab_construct): Use gtk_container_add() to put the toplevel in the parent widget, instead of just gtk_widget_set_parent(). * mail-preferences.c (mail_preferences_construct): Likewise. * mail-composer-prefs.c (mail_composer_prefs_construct): Likewise. svn path=/trunk/; revision=16270 * Updated to respect the new mail-config options for default reply styleJeffrey Stedfast2002-03-282-1/+21 | | | | | | | | | | 2002-03-27 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): Updated to respect the new mail-config options for default reply style that NotZed had started to implement before there was a gui. svn path=/trunk/; revision=16266 * unset GTK_CAN_FOCUS on the button so that it can't grab focus when youDan Winship2002-03-282-0/+9 | | | | | | | | * mail-display.c (do_attachment_header): unset GTK_CAN_FOCUS on the button so that it can't grab focus when you click it. (do_signature): Likewise on the signature button. #3904 svn path=/trunk/; revision=16261 * Sync with yet-another-mail-config branch.Jeffrey Stedfast2002-03-2724-1599/+3629 | | | | | | | | | | | | | | | | | | 2002-03-26 Jeffrey Stedfast <fejj@ximian.com> Sync with yet-another-mail-config branch. * mail-composer-prefs.c: Updated to get the right widgets and whatnot. Also updated to tell the evolution-config-control that stuff has changed. * mail-preferences.c: Updated to get the right widgets and whatnot. Also updated to tell the evolution-config-control that stuff has changed. * mail-accounts.etspec: New file needed by mail-accounts.c svn path=/trunk/; revision=16257 * Changed to get the address from the messageinfo of the current selectedNot Zed2002-03-266-79/+219 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-26 Not Zed <NotZed@Ximian.com> * mail-callbacks.c (addrbook_sender): Changed to get the address from the messageinfo of the current selected message rather than from the current_message. (requeue_mail_reply): Only re-queue if we got a message, could potentially cause an infinite loop trying to get a message it can't. (reply_to_sender, reply_to_list, reply_to_all): Always pass NULL as the msg to mail_replay, this forces mail_reply to always load the message anew. Fixes FIXME's and popup behaviour. Basically this and stuff below fixes #8542. Its probably not the nicest way, but it works. (mark_as_important): Use the flags properly, we can set all flags to any combination of on or off as we want, so we just need to call set_flags once, thats why its set flags and not set_option. (toggle_flags): Fixed the logic here also, so we dont have to call set_message_flags more than once, and also implement a true toggle for any number of simultaneous flags (whilst simplifying code). * mail-vfolder.c (vfolder_gui_add_from_mlist): Removed the 'msg' parameter, its not used, fixed callers. * folder-browser.c (on_right_click): Lookup the mlist from messageinfo, and change the 'no selected' logic slightly, fixes most of #8542. (filter_data_free): Free filter data struct. (vfolder_type_got_message): Actually create vfolder once we have the message we need to use for it. Code could probably be changed to use messageinfo instead. (vfolder_type_uid): Lookup a message based on uid, and use that to create a vfolder based on type. (vfolder_subject_uid, vfolder_sender_uid, vfolder_receipient_uid, vfolder_mlist_uid): Callbacks for the popup menu, used to create rules based on the uid rather than the message, which it loads as required. (filter_type_got_message, filter_*_uid): Similar to vfolder stuff above. (filter_menu[]): Changed callbacks to popup specific ones, not folderbrowser specific ones used by bonobo. (on_right_click): Initialise callback data for the filter submenu so it can look up messages for callback implementation. svn path=/trunk/; revision=16253 * New version from anna, with fixed widget names.Not Zed2002-03-26