aboutsummaryrefslogtreecommitdiffstats
path: root/mail
Commit message (Collapse)AuthorAgeFilesLines
* added standard header comment containing GPL license infoJeffrey Stedfast2002-09-281-4/+17
| | | | svn path=/trunk/; revision=18249
* added standard header comment containing GPL licenseJeffrey Stedfast2002-09-281-4/+18
| | | | svn path=/trunk/; revision=18248
* Set a timeout to call mail_config_write() in 2 seconds. Otherwise changesDan Winship2002-09-282-0/+37
| | | | | | | | | | | | * mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount, impl_GNOME_Evolution_MailConfig_removeAccount): Set a timeout to call mail_config_write() in 2 seconds. Otherwise changes made by this interface would not be saved to disk unless the user also changed some other preference. (mail_config_write_on_exit): If there's a config_write_timeout pending, call mail_config_write() too. svn path=/trunk/; revision=18245
* Add a margin around the "flag for followup" table so it lines up withDan Winship2002-09-262-4/+15
| | | | | | | | | | * mail-display.c (mail_display_render): Add a margin around the "flag for followup" table so it lines up with everything else. Also, don't add "at your earliest convenience" after the flag if there's no date set, since that doesn't make any sense for half of the flags. ("For Your Information at your earliest convenience"). svn path=/trunk/; revision=18226
* add "mail/public". Leave "vtrash" as it is rather than renaming it toDan Winship2002-09-265-13/+47
| | | | | | | | | | | | | | | | | | | | | | | * component-factory.c (folder_types): add "mail/public". Leave "vtrash" as it is rather than renaming it to "mail/vtrash", because we want it to behave differently from normal mail folders more often than we want it to behave the same. (type_is_mail, type_is_vtrash): utility funcs (create_view, create_folder, remove_folder, xfer_folder, populate_folder_context_menu, unpopulate_folder_context_menu, destination_folder_handle_drop, storage_create_folder): Use type_is_mail/type_is_vtrash. (create_component): Register "New Post" with "mail/public" instead of "mail" so it becomes the default New icon for it. (29024) * mail-callbacks.c (transfer_msg): Use "mail/*" for allowed type. * message-browser.c (transfer_msg): Likewise. * mail-account-gui.c (mail_account_gui_new): Use "mail/*" instead of "mail" here for sent/drafts allowed type. (?) svn path=/trunk/; revision=18223
* NULL-check si->folders before passing it into find_folder so we don'tJeffrey Stedfast2002-09-262-1/+7
| | | | | | | | | | 2002-09-25 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (imap_url_upgrade): NULL-check si->folders before passing it into find_folder so we don't crash. Fixes bug #30915. svn path=/trunk/; revision=18218
* Allow users to delete already deleted messages, fixes bug #30827.Jeffrey Stedfast2002-09-252-1/+6
| | | | | | | | | 2002-09-24 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c: Allow users to delete already deleted messages, fixes bug #30827. svn path=/trunk/; revision=18208
* Always do a search if the query changed. For #31060 & #29625.Not Zed2002-09-242-3/+5
| | | | | | | | | 2002-09-24 Not Zed <NotZed@Ximian.com> * folder-browser.c (folder_browser_query_changed): Always do a search if the query changed. For #31060 & #29625. svn path=/trunk/; revision=18190
* pass name of the script as 1st parameterRadek Doulik2002-09-243-2/+10
| | | | | | | | | | | | 2002-09-23 Radek Doulik <rodo@ximian.com> * mail-config.c (mail_config_signature_run_script): pass name of the script as 1st parameter * mail-composer-prefs.c (sig_add_script_add): fix entry's glade name svn path=/trunk/; revision=18188
* Fix non-ANSI switch statement.Dan Winship2002-09-245-3/+20
| | | | | | | | | | | | | | | | * mail-signature-editor.c (exit_dialog_cb): Fix non-ANSI switch statement. * mail-account-gui.c (mail_account_gui_auto_detect_extra_conf): Likewise. * mail-composer-prefs.c (spell_load_values): add some dummy typedefs to avoid empty macro arguments, which have undefined behavior. * mail-importer.c: #include <sys/types.h> for OS X svn path=/trunk/; revision=18186
* Use 0666 as the create mode so that the user's umask is used to it'sJeffrey Stedfast2002-09-242-1/+6
| | | | | | | | | 2002-09-23 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (save_part_save): Use 0666 as the create mode so that the user's umask is used to it's fullest. svn path=/trunk/; revision=18182
* add these and install Mailer.idlDan Winship2002-09-242-0/+7
| | | | | | * Makefile.am (idldir, idl_DATA): add these and install Mailer.idl svn path=/trunk/; revision=18174
* Connect signal handlers to the GtkHTML preferences so that when theJeffrey Stedfast2002-09-212-7/+21
| | | | | | | | | | | | 2002-09-20 Jeffrey Stedfast <fejj@ximian.com> * mail-preferences.c (mail_preferences_construct): Connect signal handlers to the GtkHTML preferences so that when the widgets change we can update the OK/Apply buttons. Also removed the omenuShortcutsType widget reference since this was not being used? Fixes bug #30731. svn path=/trunk/; revision=18147
* Unset the changed bit on the composer and also drop any undo operationsJeffrey Stedfast2002-09-202-0/+8
| | | | | | | | | | 2002-09-19 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_edit_messages): Unset the changed bit on the composer and also drop any undo operations (since we loaded the message into the composer). Fixes bug #30580. svn path=/trunk/; revision=18127
* Fix for filter driver api change.Not Zed2002-09-192-1/+6
| | | | | | | | | 2002-09-19 Not Zed <NotZed@Ximian.com> * mail-session.c (main_get_filter_driver): Fix for filter driver api change. svn path=/trunk/; revision=18114
* If going back from a page past our end (i.e. the final page), jump to theNot Zed2002-09-192-1/+7
| | | | | | | | | | 2002-09-18 Not Zed <NotZed@Ximian.com> * mail-config-druid.c (wizard_back_cb): If going back from a page past our end (i.e. the final page), jump to the last page we know of. For #29293. svn path=/trunk/; revision=18105
* reverted wrapping patchRadek Doulik2002-09-194-83/+46
| | | | svn path=/trunk/; revision=18103
* helper to map a camel excpeiton to a listener result.Not Zed2002-09-182-9/+36
| | | | | | | | | | | | 2002-09-18 Not Zed <NotZed@Ximian.com> * component-factory.c (notify_listener_exception): helper to map a camel excpeiton to a listener result. (storage_create_folder): Use above to return more meaningful error. (storage_remove_folder): " (storage_xfer_folder): ". For #28209. svn path=/trunk/; revision=18101
* Use e_strftime_fix_am_pm here which fixes locale issues as well as workingJeffrey Stedfast2002-09-184-3/+9
| | | | | | | | | | | | 2002-09-17 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (mail_display_render): Use e_strftime_fix_am_pm here which fixes locale issues as well as working around systems that don't support %P (afaik). * mail-ops.c (prep_offline_do): Cache important messages too. svn path=/trunk/; revision=18095
* Disable debugging printf'sJeffrey Stedfast2002-09-182-94/+109
| | | | | | | | 2002-09-17 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (d): Disable debugging printf's svn path=/trunk/; revision=18091
* fixed a commentJeffrey Stedfast2002-09-181-2/+2
| | | | svn path=/trunk/; revision=18090
* If the vpaned isn't realized, don't call mail_config_set_paned_size. FixesDan Winship2002-09-142-1/+7
| | | | | | | | * folder-browser.c (fb_resize_cb): If the vpaned isn't realized, don't call mail_config_set_paned_size. Fixes a problem with the saved pane size being repeatedly lost (#29933) svn path=/trunk/; revision=18064
* rename this from "Mail.idl" so that the generated .h file won't overwriteDan Winship2002-09-137-30/+42
| | | | | | | | | | | | | | | | | * Mailer.idl: rename this from "Mail.idl" so that the generated .h file won't overwrite "mail.h" on Mac OS X. Remove some never-implemented IDL and add MailConfig_removeAccount. * Makefile.am: Update for IDL rename * mail-config.c: #include Mailer.h, not Mail.h (impl_GNOME_Evolution_MailConfig_removeAccount): Implement. * folder-info.c: #include Mailer.h, not Mail.h * message-list.c: Remove Mail.h include. svn path=/trunk/; revision=18060
* Ignore SIGXFSZ to fix bug #30269.Jeffrey Stedfast2002-09-132-0/+5
| | | | | | | | 2002-09-12 Jeffrey Stedfast <fejj@ximian.com> * main.c (main): Ignore SIGXFSZ to fix bug #30269. svn path=/trunk/; revision=18058
* The new callback function for the g_hash_table_foreach which both upgradesJeffrey Stedfast2002-09-132-36/+268
| | | | | | | | | | | | | 2002-09-12 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (cache_upgrade_and_free): The new callback function for the g_hash_table_foreach which both upgrades the cache for that store and then free's the struct _storeinfo afterwards. (cache_upgrade): Upgrade a cached folder by moving the old cache folder into the appropriate new location. svn path=/trunk/; revision=18057
* Only abort if the user selected ADVANCED_SEARCH, not the other way around.Jeffrey Stedfast2002-09-122-2/+7
| | | | | | | | | | | 2002-09-11 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_query_changed): Only abort if the user selected ADVANCED_SEARCH, not the other way around. Any other menu item and we are supposed to perform an actual search. Fixes bug #30183. svn path=/trunk/; revision=18048
* check the new gnome-vfs icon_filename key. If that fails, fall back toJeffrey Stedfast2002-09-122-10/+23
| | | | | | | | | | | 2002-09-11 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (pixbuf_for_mime_type): check the new gnome-vfs icon_filename key. If that fails, fall back to checking icon-filename. Also don't leak the fm_icon string and rearranged some code. svn path=/trunk/; revision=18044
* Handle file uri's too.Not Zed2002-09-115-80/+130
| | | | | | | | | | | | | | | | | | | 2002-09-11 Not Zed <NotZed@Ximian.com> * component-factory.c (configure_folder_popup): Handle file uri's too. * mail-callbacks.c (configure_folder): clear message list before calling configure folder. (local_configure_done): completion callback to reset message list when done. * mail-local.c (mail_local_reconfigure_folder): changed args to accept uri, and done callback. (reconfigure_got_folder): moved code to callback which presents the configure uri once we have the folder. svn path=/trunk/; revision=18039
* If we already have a folder, make sure we unref/unhook from it. Fixes aNot Zed2002-09-103-1/+26
| | | | | | | | | | | | | 2002-09-10 Not Zed <NotZed@Ximian.com> * folder-browser.c (got_folder): If we already have a folder, make sure we unref/unhook from it. Fixes a crash on exit. * message-list.c (message_list_hide_clear): clear thread tree cache if set. (message_list_set_search): Same. For bug #28834. svn path=/trunk/; revision=18029
* Make sure that fb->message_list is non-NULL before checkingJeffrey Stedfast2002-09-103-4/+14
| | | | | | | | | | | | | | 2002-09-09 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c (folder_browser_ui_scan_selection): Make sure that fb->message_list is non-NULL before checking fb->message_list->threaded? I guess this'll fix bug #29965. * mail-callbacks.c (composer_save_draft_cb): NULL-check the ccd before reffing it. (composer_send_cb): Same. svn path=/trunk/; revision=18026
* revert an earlier change that used the full account name as the folder name ↵Jeffrey Stedfast2002-09-101-9/+11
| | | | | | | | (oops) : ---------------------------------------------------------------------- svn path=/trunk/; revision=18023
* Don't look for an end quote, instead look for </item> to terminate theJeffrey Stedfast2002-09-102-1/+4
| | | | | | | | | | | 2002-09-09 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (shortcuts_upgrade_xml_file): Don't look for an end quote, instead look for </item> to terminate the uri. (shortcuts_upgrade_uri): Hex decode the imap folder name after we've constructed the final version of it. svn path=/trunk/; revision=18022
* Don't look for an end quote, instead look for </item> to terminate theJeffrey Stedfast2002-09-102-15/+9
| | | | | | | | | 2002-09-09 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (shortcuts_upgrade_xml_file): Don't look for an end quote, instead look for </item> to terminate the uri. svn path=/trunk/; revision=18021
* Hex decode imap folder names too. (shortcuts_upgrade_xml_file): Don't lookJeffrey Stedfast2002-09-102-18/+29
| | | | | | | | | | | 2002-09-09 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (shortcuts_upgrade_uri): Hex decode imap folder names too. (shortcuts_upgrade_xml_file): Don't look for an end quote, instead look for </item> to terminate the uri. svn path=/trunk/; revision=18020
* add evolution-mail-upgradeDan Winship2002-09-101-0/+1
| | | | svn path=/trunk/; revision=18019
* Don't modify the URL if the path doesn't start with "exchange". (MeansDan Winship2002-09-092-15/+33
| | | | | | | | | | | | | | | * upgrade-mailer.c (exchange_url_upgrade): Don't modify the URL if the path doesn't start with "exchange". (Means it's already a 1.2 URL.) (shortcuts_upgrade_uri): Need to hex-decode exchange URLs here too. (shortcuts_upgrade_xml_file): Fix an off-by-one error here (twice) so it actually works instead of always claiming shortcuts.xml doesn't need to be upgraded. (mailer_upgrade): Check the size of the accounts hash rather than imap_sources since we have work to do if the user has an exchange account but no imap accounts. svn path=/trunk/; revision=18018
* Sync the database after upgrading mailer stuff. (imap_url_upgrade): SinceJeffrey Stedfast2002-09-072-0/+5
| | | | | | | | | | | | | | | | 2002-09-06 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (upgrade): Sync the database after upgrading mailer stuff. (imap_url_upgrade): Since we need 'p' if we fail to find the folder, don't g_free it until later. (hex_encode): Don't forget to increment inptr after hex encoding a character. (exchange_url_upgrade): Apprently exchange uri's are rebelious and do not want to be hex encoded like every other url, so hex decode the folder names here before concatenating them onto the base url. svn path=/trunk/; revision=18009
* Sync the database after upgrading mailer stuff. (imap_url_upgrade): SinceJeffrey Stedfast2002-09-072-5/+25
| | | | | | | | | | | | | 2002-09-06 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (upgrade): Sync the database after upgrading mailer stuff. (imap_url_upgrade): Since we need 'p' if we fail to find the folder, don't g_free it until later. (hex_encode): Don't forget to increment inptr after hex encoding a character. svn path=/trunk/; revision=18003
* All this snot is to fix bug #29930. What I think was happening was thatJeffrey Stedfast2002-09-062-81/+98
| | | | | | | | | | | | | | | | | | | | | | 2002-09-05 Jeffrey Stedfast <fejj@ximian.com> All this snot is to fix bug #29930. What I think was happening was that the composer's destroy callback got fired off before the async callback did. * mail-callbacks.c (ccd_new): New convenience function to malloc a new ccd. (ccd_ref): ccd is now ref_counted (it needs to be) so we now have this. (ccd_unref): And we need this now too of course. (composer_destroy_cb): composer's new destroy callback function - unref's the ccd. (composer_send_queued_cb): unref the ccd. (composer_send_cb): ref the ccd here. (save_draft_done): unref the ccd. (composer_save_draft_cb): ref the ccd. svn path=/trunk/; revision=17997
* Hex decode the folder names when searching for them in the memory buffer,Jeffrey Stedfast2002-09-063-86/+200
| | | | | | | | | | | | 2002-09-05 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (imap_url_upgrade): Hex decode the folder names when searching for them in the memory buffer, and re-hex encode them when combining them with the rst of the URL. (mailer_upgrade): Instead of reading in the storeinfo file as raw binary data, use the camel-file-utils to correctly parse it. svn path=/trunk/; revision=17994
* Changed the descriptions of the fonts, mail, accounts and composer pagesAnna Marie Dirks2002-09-062-4/+13
| | | | | | | | | | 2002-09-05 Anna Marie Dirks <anna@ximian.com> * GNOME_Evolution_Mail.oaf.in: Changed the descriptions of the fonts, mail, accounts and composer pages of the settings dialog to be hopefully more descriptive and less confusing. svn path=/trunk/; revision=17988
* Return FALSE here. (get_base_url): Add a cast.Ettore Perazzoli2002-09-054-5/+19
| | | | | | | | | | | | * upgrade-mailer.c (upgrade): Return FALSE here. (get_base_url): Add a cast. * component-factory.c (storage_xfer_folder): Removed unused variables. * Makefile.am: Rename upgrade-mailer to evolution-mail-upgrade. svn path=/trunk/; revision=17981
* some fixesJeffrey Stedfast2002-09-051-13/+24
| | | | svn path=/trunk/; revision=17979
* Add upgrade-mailer.c to the build.Jeffrey Stedfast2002-09-053-1/+874
| | | | | | | | | | | 2002-09-04 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Add upgrade-mailer.c to the build. * upgrade-mailer.c: New program to upgrade configuration files from 1.0 to 1.2. svn path=/trunk/; revision=17975
* Made sure account->id->address is not NULL before adding it to the hashJeffrey Stedfast2002-09-052-1/+9
| | | | | | | | | | | 2002-09-04 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): Made sure account->id->address is not NULL before adding it to the hash table. This is to prevent bug #29877 from crashing, although it is still an invalid error condition. svn path=/trunk/; revision=17969
* Remove the "Get!" printf. (set_prop): Likewise for "Set!"Dan Winship2002-09-052-2/+5
| | | | | | | * folder-info.c (get_prop): Remove the "Get!" printf. (set_prop): Likewise for "Set!" svn path=/trunk/; revision=17968
* Pass NULL as @unpopulate_folder_context_menu_fn toEttore Perazzoli2002-09-053-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * gui/component-factory.c (create_object): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * mail-account-gui.c (mail_account_gui_save): Remove unused variable. * component-factory.c (unpopulate_folder_context_menu): New. (create_component): Pass it to evolution_shell_component_new(). * component-factory.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * e-storage-set-view.c (popup_folder_menu): Remove the context menu items using evolution_shell_component_client_unpopulate_folder_context_menu() instead of doing it ourself, since BonoboUI sucks. * evolution-shell-component-client.c (evolution_shell_component_client_unpopulate_folder_context_menu): New. * evolution-test-component.c (register_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * evolution-shell-component.c: New member unpopulate_folder_context_menu_fn in EvolutionShellComponentPrivate. New member uic in EvolutionShellComponentPrivate. (init): Init new members to NULL. (destroy): bonobo_object_unref() priv->uic if not NULL. (evolution_shell_component_new): New arg @unpopulate_folder_context_menu_fn. (evolution_shell_component_construct): Likewise. (impl_populateFolderContextMenu): Set priv->uic to the newly created UIComponent. (impl_unpopulateFolderContextMenu): New, implementation for the ::unpopulateFolderContextMenu CORBA method. (class_init): Install. * Evolution-ShellComponent.idl (unpopulateFolderContextMenu): New method. (AlreadyPopulated): New exception. (populateFolderContextMenu): Can raise it. (NotPopulated): New exception. svn path=/trunk/; revision=17963
* New callback functions that wrap the mail-callbacks versions ofJeffrey Stedfast2002-09-042-4/+36
| | | | | | | | | | | | | 2002-09-03 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (mark_as_seen_cb): (mark_as_unseen_cb): (mark_as_important_cb): (mark_as_unimportant_cb): New callback functions that wrap the mail-callbacks versions of mark_as_<whatever>. Thanks to Owen Taylor for this fix. svn path=/trunk/; revision=17950
* Dont translate / to dir_sep anymore, we always use /.Not Zed2002-09-032-12/+5
| | | | | | | | | 2002-09-04 Not Zed <NotZed@Ximian.com> * component-factory.c (storage_xfer_folder): Dont translate / to dir_sep anymore, we always use /. svn path=/trunk/; revision=17944
* simplified raw viewRadek Doulik2002-08-313-17/+11
| | | | svn path=/trunk/; revision=17938
* use iframe's fallback contentRadek Doulik2002-08-312-5/+5
| | | | svn path=/trunk/; revision=17937
* removed commented codeRadek Doulik2002-08-311-3/+0
| | | | svn path=/trunk/; revision=17936
* as below (handle_text_plain_flowed): as belowRadek Doulik2002-08-314-43/+89
| | | | | | | | | | | | | 2002-08-30 Radek Doulik <rodo@ximian.com> * mail-format.c (mail_format_raw_message): as below (handle_text_plain_flowed): as below * mail-display.c (mail_text_write): put text in iframe, so it has margins and should not be placed in table which changes wrapping behavior svn path=/trunk/; revision=17933
* Add HAS_FLAGS to a few miscellaneous commands that don't use IS_xMESSAGE.Peter Williams2002-08-302-3/+8
| | | | | | | | | 2002-08-29 Peter Williams <peterw@ximian.com> * folder-browser-ui.c: Add HAS_FLAGS to a few miscellaneous commands that don't use IS_xMESSAGE. svn path=/trunk/; revision=17922
* Add an evolution:shell_component_launch_order and renameDan Winship2002-08-292-1/+9
| | | | | | | | * GNOME_Evolution_Mail.oaf.in: Add an evolution:shell_component_launch_order and rename evolution:shell_component_icon. svn path=/trunk/; revision=17905
* don't bother getenv'ing the USERJeffrey Stedfast2002-08-291-1/+0
| | | | svn path=/trunk/; revision=17903
* remove code to auto-detect mine and notzed's thread-by-subject prefs since ↵Jeffrey Stedfast2002-08-291-1/+1
| | | | | | our config files have now been updated. svn path=/trunk/; revision=17902
* Fix some broken logic here, `p = strrchr (path, '/') + 1` will *never* beJeffrey Stedfast2002-08-292-2/+6
| | | | | | | | | | 2002-08-28 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (make_safe_filename): Fix some broken logic here, `p = strrchr (path, '/') + 1` will *never* be NULL!! If the strrchr returns NULL, then that expression will evaluate to 0x1!! svn path=/trunk/; revision=17901
* We now always need to init gconf for our later call to e_proxy_init()Jeffrey Stedfast2002-08-292-18/+23
| | | | | | | | | | 2002-08-28 Jeffrey Stedfast <fejj@ximian.com> * main.c (main): We now always need to init gconf for our later call to e_proxy_init() which initialises the proxy settings for soup to use. svn path=/trunk/; revision=17897
* Add some new flags for sensitizing nodes based on the flags of thePeter Williams2002-08-294-17/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-28 Peter Williams <peterw@ximian.com> * folder-browser-ui.c (default_ui_nodes): Add some new flags for sensitizing nodes based on the flags of the currently selected messages. (folder_browser_ui_add_message): Reset the sensitivity cache when we re-add UI items. (folder_browser_ui_add_list): Same. (folder_browser_ui_add_global): Same. (fbui_sensitise_item): Only cache the sensitivity in the hash table if we actually change it. (folder_browser_ui_scan_selection): New function, getting the bulk of the contents of folder_browser_ui_set_selection_state. Now with code to iterate over the currently selected messages and check their flags so we can sensitize based on them. (folder_browser_ui_set_selection_state): Now just set the selection state if necessary and pass off to _scan_selection. Don't skip of we're trying to go from SELSTATE_SINGLE to SELSTATE_SINGLE, eg, as the flags of the selected messages may have changed. * folder-browser-ui.h: Prototype folder_browser_ui_scan_selection. * folder-browser.c (main_folder_changed): Call folder_browser_ui_scan_selection as the flags on a selected message may have just changed. svn path=/trunk/; revision=17893
* Also check that the component has PersistStream. (mail_lookup_handler):Peter Williams2002-08-292-9/+40
| | | | | | | | | | | 2002-08-28 Peter Williams <peterw@ximian.com> * mail-format.c (component_supports): Also check that the component has PersistStream. (mail_lookup_handler): Get a list of all components and go with the first matching one. svn path=/trunk/; revision=17892
* Pass mail_config_get_thread_subject() as the third argument toJeffrey Stedfast2002-08-284-30/+70
| | | | | | | | | | | | | | | | | | | 2002-08-27 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (regen_list_regen): Pass mail_config_get_thread_subject() as the third argument to camel_folder_thread_messages_new(). * mail-config.c (config_read): Read in the thread_by_subject config option. (mail_config_write_on_exit): Save the thread_by_subject config option. (mail_config_get_thread_subject): New function to get the thread_subject value. (mail_config_set_thread_subject): New function to set the thread_subject value. svn path=/trunk/; revision=17881
* removed tip frameRadek Doulik2002-08-284-60/+5
| | | | | | | | 2002-08-27 Radek Doulik <rodo@ximian.com> * mail-signature-editor.c: removed tip frame svn path=/trunk/; revision=17877
* Fixes for bug #4480Jeffrey Stedfast2002-08-284-32/+63
| | | | | | | | | | | | | | | | | | 2002-08-27 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #4480 * folder-browser-factory.c (control_activate): Call folder_browser_reload() instead of refreshing the folder ourselves. * folder-browser.c (folder_browser_reload): New convenience function. If the folder-browser's folder is already loaded, refresh the contents, otherwise if the folder has not been loaded - try loading the folder again (it may have failed to open last time for some reason?). svn path=/trunk/; revision=17876
* Fix bug #29493.Peter Williams2002-08-282-0/+6
| | | | | | | | 2002-08-27 Peter Williams <peterw@ximian.com> * mail-format.c (handle_text_plain_flowed): Fix bug #29493. svn path=/trunk/; revision=17875
* Logic change for when untoggling a message from deleted-dom.Peter Williams2002-08-272-2/+9
| | | | | | | | | 2002-08-26 Peter Williams <peterw@ximian.com> * mail-callbacks.c (toggle_flags): Logic change for when untoggling a message from deleted-dom. svn path=/trunk/; revision=17869
* Enforce the mailer policy that deleted messages are marked as seen. FixesPeter Williams2002-08-272-2/+19
| | | | | | | | | | | 2002-08-26 Peter Williams <peterw@ximian.com> * mail-ops.c (transfer_messages_transfer): Enforce the mailer policy that deleted messages are marked as seen. Fixes 29448. This could go in camel_folder_transfer_messages_to, but I don't think we necessarily want to enforce that policy for Camel in general. svn path=/trunk/; revision=17865
* Address most of bug #4940. Fails on the last page of the add accountPeter Williams2002-08-242-2/+90
| | | | | | | | | | | | | | | | | | | | | | | 2002-08-23 Peter Williams <peterw@ximian.com> Address most of bug #4940. Fails on the last page of the add account dialog as called from the prefs dialog due to EvolutionWizard being weird. * mail-config-druid.c (goto_next_page): New function, little wrapper around wizard_next_cb. Also potential place to work around EvolutionWizard weirdness in the future. (identity_activate_cb): New function, calls goto_next_page if identity page is complete. (source_activate_cb): Analogous. (transport_activate_cb): Analogous. (management_activate_cb): Analogous. (get_fn): Hook up the activate signals of the various GtkEntries to the correct callbacks above. (management_check): Return the result of the check so that management_activate_cb can use it. svn path=/trunk/; revision=17851
* Reset the X-Evolution-PostTo header.Jeffrey Stedfast2002-08-233-0/+13
| | | | | | | | | | | 2002-08-22 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_restore_xevolution_headers): Reset the X-Evolution-PostTo header. (mail_tool_remove_xevolution_headers): Remove the X-Evolution-PostTo header. svn path=/trunk/; revision=17844
* Spawn a new thread to ping the server but only if it is connected.Jeffrey Stedfast2002-08-222-4/+62
| | | | | | | | | | | 2002-08-21 Jeffrey Stedfast <fejj@ximian.com> * mail-folder-cache.c (ping_store): Spawn a new thread to ping the server but only if it is connected. (ping_cb): This needs to return TRUE so the timeout keeps getting called. svn path=/trunk/; revision=17832
* Don't bother overloading the timeout virtual methods since they don'tJeffrey Stedfast2002-08-225-9/+45
| | | | | | | | | | | | 2002-08-21 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c (class_init): Don't bother overloading the timeout virtual methods since they don't exist anymore. * mail-folder-cache.c (mail_note_store): Register a ping timeout callback to ping each store to keep the connections alive. svn path=/trunk/; revision=17831
* be sure that widget is realized so that e_utf8_from_gtk_string worksRadek Doulik2002-08-212-0/+10
| | | | | | | | | | 2002-08-20 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (do_mail_print): be sure that widget is realized so that e_utf8_from_gtk_string works properly (footer_print_cb): save/restore svn path=/trunk/; revision=17826
* guard against the view_instance disappearing during earlier CORBA work.Mike Kestner2002-08-212-0/+10
| | | | | | | | | 2002-08-20 Mike Kestner <mkestner@ximian.com> * folder-browser-ui.c (folder_browser_ui_setup_view_menus): guard against the view_instance disappearing during earlier CORBA work. svn path=/trunk/; revision=17825
* Once we hit the target node, update the cursor_uid if it's set. FixesPeter Williams2002-08-212-0/+9
| | | | | | | | | 2002-08-20 Peter Williams <peterw@ximian.com> * message-list.c (search_func): Once we hit the target node, update the cursor_uid if it's set. Fixes #29085. svn path=/trunk/; revision=17821
* Fix a copy/paste-o. Use the pgp_path GnomeFileEntry widget rather than theJeffrey Stedfast2002-08-202-1/+8
| | | | | | | | | | | 2002-08-19 Jeffrey Stedfast <fejj@ximian.com> * mail-preferences.c (mail_preferences_apply): Fix a copy/paste-o. Use the pgp_path GnomeFileEntry widget rather than the notify_sound_file GnomeFileEntry widget for the pgp path stuff :-) svn path=/trunk/; revision=17806
* (mail_account_gui_save): Fix the saving of STORE_AND_TRANSPORTDan Winship2002-08-202-3/+7
| | | | | | | transports and add a comment so it doesn't get mistakenly unfixed again. svn path=/trunk/; revision=17801
* source_type_changed may try to change the transport optionmenuDan Winship2002-08-202-4/+13
| | | | | | | | | * mail-account-gui.c (mail_account_gui_setup): source_type_changed may try to change the transport optionmenu (incorrectly in this case), so don't call gtk_option_menu_set_history on it until after emitting "activate" on the source type menuitem. svn path=/trunk/; revision=17800
* Change this into a GnomeApp so we get a statusbar and the dialog is aPeter Williams2002-08-174-83/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-09 Peter Williams <peterw@ximian.com> * subscribe-dialog.c: Change this into a GnomeApp so we get a statusbar and the dialog is a little more comprehensible. * subscribe-dialog.c: (struct _FolderETree): Add members for tracking activity callback information. (get_short_folderinfo_got): Notify the activity callback. (subscribe_get_short_folderinfo): Here too. (folder_etree_init): Initialize the activity level to 0. (folder_etree_construct): Take new parameters of our activity callback and user_data. (folder_etree_new): Here too. (store_data_get_widget): Take the parameters here and pass them on. (sc_close_pressed): New callback for when close button is pressed. (sc_activity_timeout): New timeout to move the activity bar when folders are being scanned. (sc_activity_cb): If activity_level > 0, start the progressbar moving and set the status. (menu_item_selected): Pass the callback to store_data_get_widget. (subscribe_dialog_construct): Load some more widgets and adapt to some changes in the XML. Also connect the close button signal and initialize the progress bar's settings. * mail-callbacks.c (manage_subscriptions): Don't call gnome_dialog_set_close on it anymore since it's no longer a gnome dialog. svn path=/trunk/; revision=17793
* Add a "don't sign meeting requests" option to the security pane, sinceDan Winship2002-08-156-0/+42
| | | | | | | | | | | | | | | * mail-config.glade: Add a "don't sign meeting requests" option to the security pane, since some versions of Outlook won't recognize pgp-signed meeting requests. Sigh. * mail-config.c (account_copy, config_read, mail_config_write): Handle pgp_no_imip_sign. * mail-account-gui.c (mail_account_gui_new, mail_account_gui_save): Setup/save "don't sign meeting requests" button. svn path=/trunk/; revision=17778
* Removed an unused variable.Jeffrey Stedfast2002-08-143-2/+10
| | | | | | | | | | | 2002-08-13 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (forward_message): Removed an unused variable. * mail-account-editor.c (construct): Set the focus on the Account Name entry widget. Fixes bug #10350. svn path=/trunk/; revision=17771
* Replace no-longer-existent e_book_query_address_locally withDan Winship2002-08-132-1/+6
| | | | | | | * mail-display.c (on_url_requested): Replace no-longer-existent e_book_query_address_locally with e_book_query_address_default. svn path=/trunk/; revision=17765
* Use mail_get_messages() instead of mail_get_message().Jeffrey Stedfast2002-08-132-7/+11
| | | | | | | | | | | | | 2002-08-12 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (forward_message): Use mail_get_messages() instead of mail_get_message(). (do_forward_non_attached): Fixed to work as a callback from mail_get_messages(). (do_edit_messages): Only set the drafts_folder and drafts_uid if the folder-browser is a drafts folder. Fixes bug #28863. svn path=/trunk/; revision=17762
* Use mail_get_messages() instead of mail_get_message().Jeffrey Stedfast2002-08-132-31/+35
| | | | | | | | | | | 2002-08-12 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (forward_message): Use mail_get_messages() instead of mail_get_message(). (do_forward_non_attached): Fixed to work as a callback from mail_get_messages(). svn path=/trunk/; revision=17761
* If the ccd is NULL, create a new ccd, disconnect the old signal handlers,Jeffrey Stedfast2002-08-102-4/+54
| | | | | | | | | | | | 2002-08-09 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (save_draft_done): If the ccd is NULL, create a new ccd, disconnect the old signal handlers, and then reconnect the signal handlers using the non-NULL ccd as the user_data. (composer_send_queued_cb): Same, but only if the queue append operation failed. svn path=/trunk/; revision=17756
* Handle the fact that ccd may be NULL (if the composer was created viaDan Winship2002-08-102-7/+13
| | | | | | | | * mail-callbacks.c (composer_send_queued_cb, save_draft_done): Handle the fact that ccd may be NULL (if the composer was created via CORBA). Quick temporary fix for sending meeting requests. svn path=/trunk/; revision=17754
* When a URI is changed, try to copy over threaded view settings, previewPeter Williams2002-08-102-0/+71
| | | | | | | | | | | 2002-08-09 Peter Williams <peterw@ximian.com> * mail-config.c (mail_config_uri_renamed): When a URI is changed, try to copy over threaded view settings, preview pane shown settings, headers, hide state, tree expansion, and GAL view files. (uri_to_evname): New utility function. svn path=/trunk/; revision=17751
* Instead of comparing old/new CamelStore objects, just compare theirJeffrey Stedfast2002-08-092-55/+23
| | | | | | | | | | | 2002-08-08 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Instead of comparing old/new CamelStore objects, just compare their account urls since changing params would still result in the same CamelStore object. Fixes bug #18539. svn path=/trunk/; revision=17748
* oops, forgot to save before I commit'd apparentlyJeffrey Stedfast2002-08-081-3/+0
| | | | svn path=/trunk/; revision=17742
* Don't check permanent_flags for the CAMEL_MESSAGE_DELETED bit here, if weJeffrey Stedfast2002-08-082-0/+8
| | | | | | | | | | | 2002-08-08 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (delete_msg): Don't check permanent_flags for the CAMEL_MESSAGE_DELETED bit here, if we are gonna check to see if the folder supports the permanent flag then there are better places to check this. Besides, it was the cause for bug #28038. svn path=/trunk/; revision=17740
* Force a refresh of the menu sensitivity when the thread state changes.Not Zed2002-08-083-60/+92
| | | | | | | | | | | | | | | | | 2002-08-08 Not Zed <NotZed@Ximian.com> * folder-browser.c (folder_browser_toggle_threads): Force a refresh of the menu sensitivity when the thread state changes. 2002-08-07 Not Zed <NotZed@Ximian.com> * folder-browser-ui.c: Added EditSelectThread to only enable threaded mode if threaded is on. For #19941. Added some macro's to simplify the table. (folder_browser_ui_set_selection_state): Implement IS_THREADED mask. svn path=/trunk/; revision=17738
* Delete the Draft item that this was edited from if that is the case asJeffrey Stedfast2002-08-082-61/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-07 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_send_queued_cb): Delete the Draft item that this was edited from if that is the case as well as setting any replied flags if we need to. Fixes bug #18171. (save_draft_done): Not only delete the previously saved draft, but also set any PostSendData on the message being replied to or whatever. Fixes bug #20224. (compose_msg): Create an empty callback data struct which is now a MUST. (mail_reply): Fill in the new post_send_data info and also move the creation of the post_send_data to AFTER the creation of the composer widget so we don't leak on fail. (forward_get_composer): Pass an empty post_send_data structure as the user_data to the signal callbacks. (send_to_url): Same. (post_to_url): Here too. (redirect_get_composer): And here. (do_edit_messages): We no longer use the evil kludge of setting data on the composer object to denote the drafts_uid etc, this is now part of the post_send_data struct. svn path=/trunk/; revision=17736
* If outbox_folder is NULL, don't try and get its message count (this shouldPeter Williams2002-08-082-1/+6
| | | | | | | | | 2002-08-07 Peter Williams <peterw@ximian.com> * component-factory.c (request_quit): If outbox_folder is NULL, don't try and get its message count (this should never happen, but has.) svn path=/trunk/; revision=17731
* agh, don't break the build (shame on me)Jeffrey Stedfast2002-08-071-1/+1
| | | | svn path=/trunk/; revision=17730
* forgot changelogNot Zed2002-08-071-0/+3
| | | | | | | | | 2002-08-07 Not Zed <NotZed@Ximian.com> * folder-browser-ui.c: Enable the view type menu's always. See #20901. svn path=/trunk/; revision=17729
* Set the week start day from the calendar prefs, do same for 24 hourNot Zed2002-08-071-3/+3
| | | | | | | | | 2002-08-07 Not Zed <NotZed@Ximian.com> * message-tag-followup.c (target_date_new): Set the week start day from the calendar prefs, do same for 24 hour format. See #23423. svn path=/trunk/; revision=17728
* No need to save a temporary file first anymore since I updatedJeffrey Stedfast2002-08-072-19/+8
| | | | | | | | | 2002-08-06 Jeffrey Stedfast <fejj@ximian.com> * mail-local.c (save_metainfo): No need to save a temporary file first anymore since I updated e_xml_save_file() to do this for us. svn path=/trunk/; revision=17726
* Set the week start day from the calendar prefs, do same for 24 hourNot Zed2002-08-074-4/+56
| | | | | | | | | | | | | | 2002-08-07 Not Zed <NotZed@Ximian.com> * message-tag-followup.c (target_date_new): Set the week start day from the calendar prefs, do same for 24 hour format. See #23423. * mail-config.c (config_read): Added week_start_day from Calendar/Display config. Also time_24hour format. (mail_config_get_week_start_day): (mail_config_get_time_24hour): And read-only accessors. svn path=/trunk/; revision=17723
* Save to a temporary file first using e_xml_save_file rather thanJeffrey Stedfast2002-08-072-11/+38
| | | | | | | | | | | | | 2002-08-06 Jeffrey Stedfast <fejj@ximian.com> * mail-local.c (save_metainfo): Save to a temporary file first using e_xml_save_file rather than xmlSaveFile, if the save completes successfully then rename it to the real filename. Make sure that errno is saved. (mls_get_folder): save_metainfo doesn't return -1 on fail, it returns FALSE. svn path=/trunk/; revision=17721
* Set the rule name to include the search string, for #10979.Not Zed2002-08-062-2/+12
| | | | | | | | | 2002-08-06 Not Zed <NotZed@Ximian.com> * folder-browser.c (folder_browser_search_menu_activated): Set the rule name to include the search string, for #10979. svn path=/trunk/; revision=17712
* Only count hidden messages which are in the folder. Should probablyNot Zed2002-08-062-2/+28
| | | | | | | | | | 2002-08-06 Not Zed <NotZed@Ximian.com> * message-list.c (message_list_hidden): Only count hidden messages which are in the folder. Should probably maintain hidden table better. For #4334. svn path=/trunk/; revision=17707
* Check driver != NULL, if folder_filter freed it already.Not Zed2002-08-062-2/+6
| | | | | | | | | | 2002-08-06 Not Zed <NotZed@Ximian.com> * mail-ops.c (fetch_mail_fetch): Check driver != NULL, if folder_filter freed it already. svn path=/trunk/; revision=17705
* Unref the driver before returning to main thread, so any closingNot Zed2002-08-067-173/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-06 Not Zed <NotZed@Ximian.com> * mail-ops.c (filter_folder_filter): Unref the driver before returning to main thread, so any closing operations are handled async (as in fetch_mail_fetch()), for #28072. ** fixes for #24605. * mail-vfolder.c (vfolder_gui_add_from_mlist): Removed. * folder-browser.c (filter_type_uid,vfolder_type_uid): Changed to accept args directly. Fixed callers. (filter_mlist_uid,vfolder_mlist_uid): Use filter_type_uid instead of mlist variant. (vfolder_type_current): new function to handle setup of vfolders from the main menu. It now uses the vfolder_type_uid function the same as the popup. (vfolder_subject, vfolder_sender, vfolder_recipient, vfolder_mlist): Changed to use vfolder_type_current. (filter_type_current): Similar for filters. (filter_subject, filter_sender, filter_recipient, filter_mlist): Changed to use filter_type_current. * mail-autofilter.c (rule_from_message): Handle AUTO_MLIST type. (rule_from_mlist): (vfolder_rule_from_mlist): (filter_rule_from_mlist): Removed. (filter_gui_add_from_mlist): Removed. * mail-autofilter.h: Added AUTO_MLIST type. svn path=/trunk/; revision=17704
* If we are not in interactive mode, don't display error dialogs.Jeffrey Stedfast2002-08-067-22/+60
| | | | | | | | | | | | | | | | | | 2002-08-05 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (mail_msg_check_error): If we are not in interactive mode, don't display error dialogs. * component-factory.c (interactive_cb): Updated to use the new function mail_session_set_interactive(). (owner_unset_cb): Same here. * mail-session.c (mail_session_set_interactive): Renamed from mail_session_enable_interaction(). (mail_session_get_interactive): New function to get the interactive state. svn path=/trunk/; revision=17702
* Add a GHashTable pointer so we can remove the info once the operation isPeter Williams2002-08-062-0/+10
| | | | | | | | | | | 2002-08-01 Peter Williams <peterw@ximian.com> * mail-offline-handler.c (struct _sync_info): Add a GHashTable pointer so we can remove the info once the operation is done. (sync_done): Remove the info from the hash table. (impl_syncFolder): Save the table to which the info was added. svn path=/trunk/; revision=17701
* Updated to call post_to_url if the id is "post".Jeffrey Stedfast2002-08-064-10/+31
| | | | | | | | | | | | | 2002-08-05 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (user_create_new_item_cb): Updated to call post_to_url if the id is "post". * mail-callbacks.c (post_to_url): New function so that we don't need a FolderBrowser to post a new message. (post_message): Call post_to_url since they shared so much code. svn path=/trunk/; revision=17698
* Only reply to all or reply to list, set CAMEL_MESSAGE_ANSWERED_ALL too.Dan Winship2002-08-052-1/+8
| | | | | | | * mail-callbacks.c (mail_reply): Only reply to all or reply to list, set CAMEL_MESSAGE_ANSWERED_ALL too. svn path=/trunk/; revision=17695
* Set the default flag to Follow-Up.Jeffrey Stedfast2002-08-032-0/+4
| | | | | | | | | 2002-08-02 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (construct): Set the default flag to Follow-Up. svn path=/trunk/; revision=17692
* Updated to use the new Follow-Up tags. Instead of storing a stringJeffrey Stedfast2002-08-0311-399/+290
| | | | | | | | | | | | | | | | | | | | | | | | 2002-08-02 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (mail_display_render): Updated to use the new Follow-Up tags. Instead of storing a string containing the follow-up tag value, we now have to store the CamelMessageInfo. (mail_display_destroy): Unref the folder and the message-info. * folder-browser.c (followup_tag_complete): No longer needed. (on_right_clicked): Use the individual follow-up tags to decide whether or not to enable something. * message-list.c (ml_tree_value_at): Update to use the new Follow-Up tags. * mail-callbacks.c (flag_for_followup): Update to use the new MessageTagEditor API. (tag_editor_ok): Update this too. (flag_followup_completed): Updated this too. (flag_followup_clear): Set all the follow-up tag values to "". svn path=/trunk/; revision=17691
* (create_component): UseEttore Perazzoli2002-08-022-9/+15
| | | | | | "post-message-16.png" as the icon for the "New Message Post" item. svn path=/trunk/; revision=17677
* If we are editing an account, then get the CamelStore associated with theJeffrey Stedfast2002-08-022-22/+76
| | | | | | | | | | | | | | | 2002-08-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): If we are editing an account, then get the CamelStore associated with the old account info and save it in a struct that we will pass along as user_data to mail_get_store() for the new account url. (add_new_store): If the old account and new account stores are identical, then don't remove the old store from the folder tree. If they are not the same, then remove the old store and add the new store to the folder tree. svn path=/trunk/; revision=17674
* camel:Peter Williams2002-08-013-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-29 Peter Williams <peterw@ximian.com> Fix bug #28238 * providers/imap/camel-imap-store.c (imap_forget_folder): New function, breaking out the code in delete_folder() to handle when a folder is removed. (imap_folder_effectively_unsubscribed): New function, breaking out the code in unsubscribe_folder() to handle when a folder is unsubscribed. (imap_check_folder_still_extant): New function, check whether a folder exists by LIST'ing it. (imap_store_refresh_folders): Add code here to check if the folder still exists if we're unable to refresh its info. If so, pretend that it was unsubscribed (to get the mailer to remove it from the tree) and delete its cache. If somehow this goofs up, the worst that can happen is that we must redownload the headers. (get_folder_status): If we can't get the status, behave as above. (delete_folder): Call imap_forget_folder() where the bulk of this code has gone. (unsubscribe_folder): Call imap_folder_effectively_unsubscribed() where the bulk of this code has gone. mail: 2002-07-31 Peter Williams <peterw@ximian.com> * mail-folder-cache.c: Add another bitfield "unsub" (real_flush_updates): If unsubscribing, manually remove the folder from the shell. (unset_folder_info): Add another parameter which is used to set the unsub member. (store_folder_unsubscribed): Pass true for @unsub. (unset_folder_info_hash): Pass false for @unsub. * subscribe-dialog.c (fe_done_subscribing): Don't notify the shell here. The folder cache does it now, and it was broken to make the CORBA call in another thread anyway. svn path=/trunk/; revision=17669
* Don't setup a handler for multipart/digest. (handle_multipart_digest):Jeffrey Stedfast2002-08-013-31/+32
| | | | | | | | | | 2002-08-01 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (setup_mime_tables): Don't setup a handler for multipart/digest. (handle_multipart_digest): Removed. svn path=/trunk/; revision=17667
* Removed folder-browser-window from the build.Jeffrey Stedfast2002-08-016-307/+11
| | | | | | | | | | | | | | | 2002-07-31 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Removed folder-browser-window from the build. * folder-browser-window.[c,h]: Removed. * mail-callbacks.c (view_digest): Removed. * mail-display.c (mail_display_digest_clicked): Removed. (on_link_clicked): Don't handle digest: urls anymore. svn path=/trunk/; revision=17666
* Change the order so that "New Contact" is first and "New Contact List" isEttore Perazzoli2002-08-012-6/+11
| | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Change the order so that "New Contact" is first and "New Contact List" is next. * gui/component-factory.c (create_object): Change the order of the user creatable items a bit so that "New Appointment" and "New Meeting" are at the top when in a calendar folder. * component-factory.c (create_component): Put "New Mail Message" before "New Message Post" instead of vice versa. * evolution-mail-global.xml: Remove "New Mail Message" and "Post Message" items. svn path=/trunk/; revision=17661
* Pass "contacts" as the @folder_type toEttore Perazzoli2002-08-012-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (add_creatable_item): Pass "contacts" as the @folder_type to evolution_shell_component_add_user_creatable_item(). * gui/component-factory.c (add_creatable_item): New arg @folder_type, pass it to evolution_shell_component_add_user_creatable_item(). (create_object): Set the right folder types for the various user-creatable items. * component-factory.c (create_component): Pass "mail" as @folder_type to evolution_shell_component_add_user_creatable_item(). * evolution-test-component.c (register_component): Pass NULL for @folder_type to evolution_shell_component_add_user_creatable_item(). * e-shell-user-creatable-items-handler.c: New member folder_type in struct MenuItem. (ensure_menu_items): Initialize ->folder_type. (item_is_default): New helper function. (create_menu_xml): New arg @folder_type. Put the items on the top using item_is_default(). (shell_view_view_changed_callback): Pass the folder type to create_menu_xml(). * evolution-shell-component.c: New member folder_type in UserCreatableItemType. (user_creatable_item_type_new): New arg @folder_type. (user_creatable_item_type_free): Free ->folder_type. (evolution_shell_component_add_user_creatable_item): New arg @folder_type. (impl__get_userCreatableItemTypes): Set ->folderType in the returned CORBA structs. * Evolution-ShellComponent.idl: New member folderType in struct UserCreatableItemType. * e-shell-user-creatable-items-handler.c: New member component_id in struct MenuItem. Removed member menu_xml from EShellUserCreatableItemsHandlerPrivate. (init): No need to initialize menu_xml here anymore. (impl_destroy): ...And no need to free here, either. (setup_menu_xml): New, derived from ensure_menu_xml(). This orders the menu so that the items for the current component go at the top. (create_menu_xml): Removed. (e_shell_user_creatable_items_handler_attach_menus): Set up properly for the current component ID, using setup_menu_xml(). svn path=/trunk/; revision=17658
* Added global cameldatacache for managing remote image cache.Not Zed2002-07-312-3/+83
| | | | | | | | | | | | | | | | | | | | 2002-07-31 Not Zed <NotZed@Ximian.com> * mail-display.c: Added global cameldatacache for managing remote image cache. (fetch_remote): Lookup data in cache first, use that if available, or setup a new cache item. (fetch_data): Write any retrieved data to cache as well as html stream. (fetch_free): Unref cache stream. (fetch_done): (fetch_cancel): If failed/cancelled, remove cache items so they dont foul the result. Probably need a header in cache items to guarantee this, but this is ok for now. (mail_display_class_init): Setup cache structure. Also ensure globals are initialised at-most once. svn path=/trunk/; revision=17652
* save signature here to remember the changed nameRadek Doulik2002-07-312-0/+6
| | | | | | | | | 2002-07-30 Radek Doulik <rodo@ximian.com> * mail-config.c (mail_config_signature_set_name): save signature here to remember the changed name svn path=/trunk/; revision=17646
* Use camel_medium_get_header to get the date header rather than getting theJeffrey Stedfast2002-07-312-11/+12
| | | | | | | | | | 2002-07-30 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (write_date): Use camel_medium_get_header to get the date header rather than getting the time_t and converting it into a string. svn path=/trunk/; revision=17643
* setup private data. (mail_display_destroy): cancel any outstandingNot Zed2002-07-305-51/+238
| | | | | | | | | | | | | | | | | | | | | | | | 2002-07-29 Not Zed <NotZed@Ximian.com> * mail-display.c (mail_display_init): setup private data. (mail_display_destroy): cancel any outstanding fetches, and free private data. (mail_display_set_message): Cancel any outstanding fetches. (fetch_cancelled): (fetch_next): (fetch_remote): (fetch_data): (fetch_free): (fetch_cancel): (fetch_done): Implement, used to use soup to download remote images. (load_http): Removed. (on_url_requested): When requesting a http* url, use the fetch_remote call above. * mail-display.h (struct _MailDisplay): Added priv(ate) member. svn path=/trunk/; revision=17640
* (request_password): Left-align the check button'sEttore Perazzoli2002-07-302-0/+6
| | | | | | label. svn path=/trunk/; revision=17637
* Get the "Reset Defaults" folders button and connect to the clicked signal.Jeffrey Stedfast2002-07-303-3/+56
| | | | | | | | | | | 2002-07-29 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): Get the "Reset Defaults" folders button and connect to the clicked signal. (default_folders_clicked): Set the default uris on for the Drafts and Sent folders. svn path=/trunk/; revision=17634
* Call mail_note_store to get the folders to be updated and new ones to bePeter Williams2002-07-302-1/+10
| | | | | | | | | | 2002-07-26 Peter Williams <peterw@ximian.com> * mail-offline-handler.c (storage_go_online): Call mail_note_store to get the folders to be updated and new ones to be inserted into the tree. svn path=/trunk/; revision=17632
* (request_password): Add an accelerator for theEttore Perazzoli2002-07-302-5/+21
| | | | | | "Remember this password" checkbox. svn path=/trunk/; revision=17631
* No real need for this to be an async function sync we are going to callJeffrey Stedfast2002-07-272-83/+5
| | | | | | | | | | 2002-07-26 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_execute_shell_command): No real need for this to be an async function sync we are going to call gnome_execute_async anyway. svn path=/trunk/; revision=17620
* Add a new menu item for posting to the New toolbar button thing.Jeffrey Stedfast2002-07-272-4/+12
| | | | | | | | | | | | | | | 2002-07-26 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (create_component): Add a new menu item for posting to the New toolbar button thing. (destination_folder_handle_drop): Don't use a NULL exception when we already have one to use anyway. (got_folder): Move the *fp = folder; to before the check to make sure folder != NULL, this makes it so that if getting a folder fails at least have have a known value to look out for (NULL) rather than some random garbage. svn path=/trunk/; revision=17617
* Add a new menu item for posting to the New toolbar button thing.Jeffrey Stedfast2002-07-272-0/+12
| | | | | | | | | 2002-07-26 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (create_component): Add a new menu item for posting to the New toolbar button thing. svn path=/trunk/; revision=17612
* Make the gtk label line-wrap instead of us forcing \n's in the label, thatJeffrey Stedfast2002-07-263-11/+20
| | | | | | | | | | 2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * mail-config-druid.c (create_label): Make the gtk label line-wrap instead of us forcing \n's in the label, that was just wrong. Fixes bug #10320. svn path=/trunk/; revision=17598
* Make sure that the url isn't an empty string and also make sure to free itJeffrey Stedfast2002-07-262-5/+16
| | | | | | | | | | | 2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_send_cb): Make sure that the url isn't an empty string and also make sure to free it when we're done with it. Also check that we got the folder - if it is NULL, then just abort. svn path=/trunk/; revision=17593
* Use mail_tools_folder_to_url().Jeffrey Stedfast2002-07-267-53/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-24 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_folder_to_safe_url): Use mail_tools_folder_to_url(). * mail-tools.c (mail_tools_folder_to_url): New convenience function to take a CamelFolder and return the URL associated with it. * mail-callbacks.c (composer_get_message): Pass in a 'post' argument so we know whether or not we can ignore a NULL set of recipients. (composer_send_cb): Default send->send to TRUE unless we are in Post-To mode, in which case set send->send to FALSE (since we'll have nothing to send). Also, if we are in Post-To mode, append to the folder the user wants to post to rather than appending to Outbox. (composer_send_queued_cb): Only queue a send thread if send->send is TRUE (ie, the composer was not in Post mode - if it was in Post mode, then the message post has already been saved in the correct folder so there is nothing to do). (post_message): New function to create an empty composer widget in Post mode. (post_reply): New function that calls mail_reply with the new mode of REPLY_POST. (mail_generate_reply): If the mode is REPLY_POST, create a Post composer widget otherwise create a normal composer widget. svn path=/trunk/; revision=17592
* Update to take argc and argv arguments since this is the new definitionJeffrey Stedfast2002-07-254-13/+61
| | | | | | | | | | | | | 2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_execute_shell_command): Update to take argc and argv arguments since this is the new definition for the CamelFilterDriverShellFunc. * mail-session.c (main_get_filter_driver): Updated for the renamed function. svn path=/trunk/; revision=17585
* Mae sure that the html->pointer_url is non-NULL. Should fix bug #28159Jeffrey Stedfast2002-07-252-1/+12
| | | | | | | | | | | 2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (link_open_in_browser): Mae sure that the html->pointer_url is non-NULL. Should fix bug #28159 (this seems to be the only questionable way for a NULL url to be passed into on_link_clicked). svn path=/trunk/; revision=17581
* Check for whether current_message is NULL as well as preview_shown (if wePeter Williams2002-07-253-3/+24
| | | | | | | | | | | | | | | 2002-07-24 Peter Williams <peterw@ximian.com> * mail-callbacks.c (do_mail_fetch_and_print): Check for whether current_message is NULL as well as preview_shown (if we tried to load the message and failed, as may happen in offline mode.) (done_message_selected): Only print if we actually got the message. * folder-browser.c (folder_browser_query_changed): New function, use this on the query_changed signal. Don't run the search if they only changed the dropdown. svn path=/trunk/; revision=17580
* Don't pass the length of the tag name into strncmp, instead use the lengthJeffrey Stedfast2002-07-251-4/+8
| | | | | | | | | | 2002-07-23 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (message_tag_followup_decode): Don't pass the length of the tag name into strncmp, instead use the length up to the first ':' in the value string. svn path=/trunk/; revision=17579
* cast!Jeffrey Stedfast2002-07-251-4/+3
| | | | svn path=/trunk/; revision=17577
* Call camel_session_get_service instead of camel_session_get_store, asPeter Williams2002-07-253-15/+44
| | | | | | | | | | | | | | | | 2002-07-23 Peter Williams <peterw@ximian.com> * mail-ops.c (get_store_get): Call camel_session_get_service instead of camel_session_get_store, as _get_store calls _get_service_connected which is not what we want to do on startup. (set_offline_do): Rework the logic here. It was failing when trying to go online with a disco store that couldn't work offline. * mail-folder-cache.c (mail_note_store): If we're using an offline (well, non-online) disco store that cannot work offline, don't get the folderinfo as that will fail. svn path=/trunk/; revision=17576
* use mail_config_get_send_html for html format flagRadek Doulik2002-07-253-2/+10
| | | | | | | | | | | | 2002-07-24 Radek Doulik <rodo@ximian.com> * mail-composer-prefs.c (sig_add): use mail_config_get_send_html for html format flag * mail-account-gui.c (sig_add_new_signature): use mail_config_get_send_html for html format flag svn path=/trunk/; revision=17573
* Propagate name changes or removes to the mail config. #15951. Doesn'tNot Zed2002-07-244-0/+78
| | | | | | | | | | | | | | | | 2002-07-24 Not Zed <NotZed@Ximian.com> * mail-folder-cache.c (real_flush_updates): Propagate name changes or removes to the mail config. #15951. Doesn't enitrely work for local folders, because they are never renamed only removed and added thanks to the shell's api. * mail-config.c (mail_config_uri_renamed): If a store folder is renamed, this checks for any config that needs updating, so far sent and drafts folders. (mail_config_uri_deleted): Same, for deleted folders. svn path=/trunk/; revision=17568
* Commit a fix that I thought I committed a while ago:Jeffrey Stedfast2002-07-243-9/+31
| | | | | | | | | | | | | | | | | 2002-07-24 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (handle_multipart_encrypted): Commit a fix that I thought I committed a while ago: * mail-format.c (handle_multipart_encrypted): Pass the correct pointer into camel_multipart_encrypted_decrypt(). * mail-ops.c (mail_send_message): Rework the logic a bit. If we find an account, use that to set the sent_folder_uri and the transport_url, otherwise use the X-Evolution-Transport and X-Evolution-Fcc headers. svn path=/trunk/; revision=17566
* Initialise the standard uri's before doing anything else.Not Zed2002-07-243-13/+56
| | | | | | | | | | | | | | | | | | 2002-07-24 Not Zed <NotZed@Ximian.com> * component-factory.c (owner_set_cb): Initialise the standard uri's before doing anything else. * mail-vfolder.c (uri_is_ignore): Return true if the uri is any sent, drafts or outbox folder uri. (mail_vfolder_add_uri): Dont automagically add any sent/outbox/drafts folder with "local" or "remote" etc rules, only add sent folders if explictly listed as folder rules. Maintain the remote/local folders list accordingly. (vfolder_adduri_do): dont check against sent_folder, drafts_folder or outbox_folder, this is checked by above code. For #14863. svn path=/trunk/; revision=17564
* Don't use strncmp here or reply-all will match reply.Jeffrey Stedfast2002-07-242-1/+6
| | | | | | | | | 2002-07-23 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (message_tag_followup_decode): Don't use strncmp here or reply-all will match reply. svn path=/trunk/; revision=17558
* Also perform a search on the query_changed signal, which is what getsPeter Williams2002-07-242-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-22 Peter Williams <peterw@ximian.com> * folder-browser.c (folder_browser_gui_init): Also perform a search on the query_changed signal, which is what gets emitted when the Search menu is used. 2002-07-22 Peter Williams <peterw@ximian.com> * e-filter-bar.c (do_advanced): Break out the code for creating the advanced rule editor into a separate function, so that... (menubar_activated): ... can also create an Advanced dialog; needed when the Search menu's advanced button is used. (option_changed): Change this to call the function instead of having all the code to itself. * e-search-bar.h: Add id's for the FIND_NOW and CLEAR actions so that other code (eg, EFilterBar) doesn't get confused by an old id being used when the search-activated signal gets emitted. * e-search-bar.c (clear_search): Set the item_id to CLEAR before emitting the signal. (search_now_verb_cb): Just make this emit query_changed, as the button in the toolbar does. svn path=/trunk/; revision=17550
* use uri_list before we set "uri-list" to NULL, which will automagicallyNot Zed2002-07-232-2/+7
| | | | | | | | | | 2002-07-24 Not Zed <NotZed@Ximian.com> * mail-display.c (drag_data_delete_cb): use uri_list before we set "uri-list" to NULL, which will automagically free it for us, so dont free it either. Found with vagrind. svn path=/trunk/; revision=17549
* Disconnect from folderbroser signals when we unref it, so we dont getNot Zed2002-07-232-0/+7
| | | | | | | | | | 2002-07-23 Not Zed <NotZed@Ximian.com> * message-browser.c (message_browser_destroy): Disconnect from folderbroser signals when we unref it, so we dont get signals later on if someone else has a ref on it (causing crash). svn path=/trunk/; revision=17543
* Check to make sure the script output is valid UTF-8, if not then attemptJeffrey Stedfast2002-07-232-18/+58
| | | | | | | | | | 2002-07-22 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_signature_run_script): Check to make sure the script output is valid UTF-8, if not then attempt to convert it into UTF-8. Fixes bug #28086. svn path=/trunk/; revision=17536
* Remove the assert, and always copy over the threadtree which representsNot Zed2002-07-222-5/+9
| | | | | | | | | | | 2002-07-22 Not Zed <NotZed@Ximian.com> * message-list.c (regen_list_regened): Remove the assert, and always copy over the threadtree which represents the current view, unreffing the old one if set. For #28021. Haven't tested this a lot, but i guess it cant be worse than what is there. svn path=/trunk/; revision=17524
* When renaming, use full_name to set the folder, not name, so the path isNot Zed2002-07-222-1/+6
| | | | | | | | | 2002-07-22 Not Zed <NotZed@Ximian.com> * mail-vfolder.c (store_folder_renamed): When renaming, use full_name to set the folder, not name, so the path is preserved. svn path=/trunk/; revision=17523
* recognize urls in plain text reply quoting logic (bug #27908).Larry Ewing2002-07-212-1/+7
| | | | | | | | | 2002-07-20 Larry Ewing <lewing@ximian.com> * mail-format.c (mail_get_message_body): recognize urls in plain text reply quoting logic (bug #27908). svn path=/trunk/; revision=17520
* Try including gtkhtml/gtkhtml.h instead. Test really is a 4 letter wordNot Zed2002-07-192-1/+6
| | | | | | | | | 2002-07-19 Not Zed <NotZed@Ximian.com> * mail-callbacks.c: Try including gtkhtml/gtkhtml.h instead. Test really is a 4 letter word obviously. svn path=/trunk/; revision=17515
* Removed bogus static pre-declaration.Ettore Perazzoli2002-07-195-4/+18
| | | | | | | | | | | | | * mail-folder-cache.c: Removed bogus static pre-declaration. * e-searching-tokenizer.c (e_searching_tokenizer_end): Removed unused variables. * mail-callbacks.c: #include <gtkhtml.h>. * folder-info.h (evolution_folder_info_get_type): Add prototype. svn path=/trunk/; revision=17508
* Change the HTML to make this a little prettier.Peter Williams2002-07-192-1/+5
| | | | | | | | | 2002-07-18 Peter Williams <peterw@ximian.com> * mail-format.c (handle_multipart_digest): Change the HTML to make this a little prettier. svn path=/trunk/; revision=17506
* Load the messagedisplay XML file as a base for the UI, so that thingsPeter Williams2002-07-192-4/+26
| | | | | | | | | | | | | 2002-07-18 Peter Williams <peterw@ximian.com> * folder-browser-window.c (folder_browser_window_new): Load the messagedisplay XML file as a base for the UI, so that things appear. Don't add the global UI items as they don't make sense here. (fb_window_close): New function, used to ... close the window, suprisingly. svn path=/trunk/; revision=17505
* Put the mcheck stuff back in, which was removed without a changelog entry.Not Zed2002-07-182-2/+11
| | | | | | | | | 2002-07-18 Not Zed <NotZed@Ximian.com> * main.c (main): Put the mcheck stuff back in, which was removed without a changelog entry. svn path=/trunk/; revision=17504
* Install libversit.a so that people compiling against the addressbook canPeter Williams2002-07-182-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-09 Peter Williams <peterw@ximian.com> * libversit/Makefile.am (privlib_LIBRARIES): Install libversit.a so that people compiling against the addressbook can do so successfully. * Makefile.am: create our *Conf.sh files and dist them and install them. * configure.in: Define and subst some variables that the Conf.sh file need. 2002-07-08 Peter Williams <peterw@ximian.com> * backend/ebook/Makefile.am: Install libebook-static.la. Also change --all-static to -all-static, which is the right flag. * backend/pas/Makefile.am: Install the PAS headers in $(includedir)/evolution/pas. Install libpas.a 2002-07-08 Peter Williams <peterw@ximian.com> * cal-util/Makefile.am: Install libcal-util-static.la and fix the -all-static flag to make it install statically. * pcs/Makefile.am: Install libpcs.a and its headers. * pcs/cal-backend-util.h: Same sort of include namespacing fix, but for pcs. * pcs/cal.h: * pcs/query.h: * pcs/cal-factory.h: * pcs/cal-backend.h: * pcs/cal-backend-file.h: Same. 2002-07-17 Peter Williams <peterw@ximian.com> * calendar/cal-util/Makefile.am (GTKDOC_LIBS): Because we're using libtool as our LD, we can reference .la's and libtool will DTRT for us. * calendar/cal-client/Makefile.am (GTKDOC_LIBS): Same here. 2002-07-03 Peter Williams <peterw@ximian.com> * Makefile.am: Install libeutil, libeconduit, and libedb3util and their headers. 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am: Reference the new libefilterbar.a. 2002-07-12 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Add -I$(builddir)/libical/src/libical for the generated ical.h (some headers rely on this because they too get installed.) 2002-07-09 Peter Williams <peterw@ximian.com> * e-timezone-dialog/Makefile.am: Add -I$(top_builddir)/libical/src/libical; some headers that we rely on get installed, so they point to the ical.h that gets generated and installed; consequently we need to be able to find the generated ical.h * misc/Makefile.am: Install libemiscwidgets.a and its headers. However, break EFilterBar into a separate libefilterbar.a because we don't want the installed library to depend on libfilter. svn path=/trunk/; revision=17496
* use "saved" gtkhtml commandRadek Doulik2002-07-182-0/+8
| | | | | | | | 2002-07-17 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (save_draft_done): use "saved" gtkhtml command svn path=/trunk/; revision=17494
* Oops, Don't comment out the mail_note_store call.Jeffrey Stedfast2002-07-182-2/+7
| | | | | | | | | 2002-07-17 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (add_storage): Oops, Don't comment out the mail_note_store call. svn path=/trunk/; revision=17492
* remove debug printfDan Winship2002-07-171-2/+0
| | | | svn path=/trunk/; revision=17489
* Re-enable some #if 0'd code.Jeffrey Stedfast2002-07-176-18/+32
| | | | | | | | | | | | | | | | | | | 2002-07-16 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (account_able_clicked): Re-enable some #if 0'd code. * mail-vfolder.c (vfolder_load_storage): Updated to not pass TRUE for an auto_connect argument since that argument no longer exists. * mail-account-gui.c (add_new_store): Updated to not pass an auto_connect argument. * component-factory.c (add_storage): Don't ever auto-connect here. (mail_add_storage): No longer takes an auto_connect argument. (mail_load_storages): Only load the account storages that are enabled. svn path=/trunk/; revision=17483
* Remove a stray conflict marker.Peter Williams2002-07-171-1/+0
| | | | svn path=/trunk/; revision=17481
* Lookup the label colour based on the label token, not an integer.Not Zed2002-07-163-17/+19
| | | | | | | | | | | | | | 2002-07-15 Not Zed <NotZed@Ximian.com> * message-list.c (ml_tree_value_at): Lookup the label colour based on the label token, not an integer. * folder-browser.c (on_right_click): Lookup the label name from the filter type. Sigh, a bunch of other code should do similar but i'm going to leave it as integers. (set_msg_label): Set the label directly. svn path=/trunk/; revision=17473
* Pass 'info' into mail_append_mail(), seems I created the info but forgotJeffrey Stedfast2002-07-162-18/+28
| | | | | | | | | | | | | 2002-07-15 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_send_cb): Pass 'info' into mail_append_mail(), seems I created the info but forgot to pass it in. (composer_send_queued_cb): If the message is successfully queued, we destroy the composer, otherwise we unref it. Don't ever destroy and then unref it. svn path=/trunk/; revision=17468
* use new save_header_state flagRadek Doulik2002-07-162-3/+7
| | | | | | | | 2002-07-15 Radek Doulik <rodo@ximian.com> * mail-callbacks.c: use new save_header_state flag svn path=/trunk/; revision=17467
* Account for the case that when a disco store is "online" but actuallyPeter Williams2002-07-154-3/+20
| | | | | | | | | | | | | | | | 2002-07-15 Peter Williams <peterw@ximian.com> * mail-offline-handler.c (service_is_relevant): Account for the case that when a disco store is "online" but actually offline and we're going online, we should actually connect it. * component-factory.c (mail_load_storages): Always set auto_connect to FALSE, same reason as below. * mail-session.c (mail_session_init): Initialize our session to not be online, since the shell will tell us to go online if we need to. svn path=/trunk/; revision=17459
* remove a stray conflict markerPeter Williams2002-07-151-1/+0
| | | | svn path=/trunk/; revision=17458
* Define a versioned library directory that we can use for things that arePeter Williams2002-07-153-2/+9
| | | | | | | | | | | | | | | | | | | | | 2002-07-10 Peter Williams <peterw@ximian.com> * configure.in (privlibdir): Define a versioned library directory that we can use for things that are ABI-sensitive: camel providers, importers... Define camel_providerder in terms of this, resulting in a new location for the providers. Camel will have to be rebuilt for it to get the new -D flag. mail: 2002-07-10 Peter Williams <peterw@ximian.com> * Makefile.am (importerdir): Define this in terms of the new privlibdir, again resulting in a new directory name. * importers/Makefile.am (importersdir): Here too. svn path=/trunk/; revision=17457
* Set the vfolder_editor variable to null before we close the dialogue,Not Zed2002-07-152-4/+8
| | | | | | | | | | 2002-07-15 Not Zed <NotZed@Ximian.com> * mail-vfolder.c (vfolder_editor_clicked): Set the vfolder_editor variable to null before we close the dialogue, otherwise the close destroys it and reverts the file. svn path=/trunk/; revision=17453
* Oops, accidentally checked in some unfinished, unworking code. Reverted.Not Zed2002-07-152-46/+12
| | | | | | | | | | 2002-07-15 Not Zed <NotZed@Ximian.com> * component-factory.c (populate_folder_context_menu): Oops, accidentally checked in some unfinished, unworking code. Reverted. svn path=/trunk/; revision=17452
* ** fixes for #10781Not Zed2002-07-157-27/+139
| | | | | | | | | | | | | | | | | | | | 2002-07-10 Not Zed <NotZed@Ximian.com> ** fixes for #10781 * mail-callbacks.c (filter_edit): Add back a cancel button. We dont need to do anything special to 'undo' here, as the rules are loaded every time they're used. * mail-vfolder.c (vfolder_editor_clicked): If ok wans't clicked, revert the ruleset. (vfolder_editor_destroy): Fake a button of -1 if we get destroyed with no click. (context_rule_removed): Unref the folder after we delete it. If we're the last ref to the folder, unrefing it means it no longer exist,s which means no delte processing occurs ... svn path=/trunk/; revision=17449
* Rename "Save to disk..." to "Save Attachment..."Jeffrey Stedfast2002-07-123-7/+12
| | | | | | | | | 2002-07-11 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (pixmap_press): Rename "Save to disk..." to "Save Attachment..." svn path=/trunk/; revision=17422
* Modified to use a single list of UI node elements with an enable-maskJeffrey Stedfast2002-07-112-226/+201
| | | | | | | | | | | 2002-07-10 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c: Modified to use a single list of UI node elements with an enable-mask rather than split into groups. This allows much more control and easier modification to get the desired enable/disable effects. svn path=/trunk/; revision=17414
* If we unref'd a current_message, clear the datalist. Don't botherJeffrey Stedfast2002-07-112-15/+16
| | | | | | | | | | | | | | 2002-07-10 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (mail_display_set_message): If we unref'd a current_message, clear the datalist. Don't bother connecting to the message's finalise signal because something else may own a ref to the original message when we replace it with a new one. (mail_display_destroy): Only clear the datalist if we have a current_message, otherwise it's safe to assume that it is already cleared. svn path=/trunk/; revision=17413
* Add include lines to get ebook headers relative to <ebook/foo.h>, notPeter Williams2002-07-112-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-09 Peter Williams <peterw@ximian.com> * tools/Makefile.am (INCLUDES): Add include lines to get ebook headers relative to <ebook/foo.h>, not "foo.h". addressbook: 2002-07-08 Peter Williams <peterw@ximian.com> * backend/ebook/e-book.h: Normalize includes to <ebook/foo.h>, so that the installed headers will work sanely. * backend/ebook/e-card-cursor.h: * backend/ebook/e-book-view.h: * backend/ebook/e-card-simple.h: * backend/ebook/e-card.h: * backend/ebook/e-destination.h: Same. * printing/Makefile.am (INCLUDES): add -Iaddressbook/backend to access the ebook headers. Also the builddir version to get the generated addressbook.h * gui/widgets/Makefile.am (INCLUDES): Same builddir fix. * gui/merging/e-card-merging.c: Fix an ebook #include. * gui/merging/Makefile.am (INCLUDES): Same idea. * gui/contact-list-editor/Makefile.am (INCLUDES): Same. * gui/contact-editor/Makefile.am (INCLUDES): Same builddir change. calendar: 2002-07-08 Peter Williams <peterw@ximian.com> * gui/Makefile.am (INCLUDES): Change the -I flags to get it to play nicely with the new Ebook header paradigm. * gui/dialogs/Makefile.am: Same. * gui/e-meeting-model.c: More of the same. * gui/dialogs/e-delegate-dialog.c: * gui/dialogs/e-meeting-model.c: * gui/dialogs/comp-editor-util.c: Fix include lines to get ebook headers. * pcs/Makefile.am: Same. composer: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Fix cflags for ebook header namespacing. importers: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am: Fix cflags to get at ebook headers correctly. * pine-importer.c: Fix include lines to get ebook headers the "right" way. * evolution-gnomecard-importer.c: Same. mail: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Add -I flags to get the ebook headers. svn path=/trunk/; revision=17411
* Pass zero as the @sorting_priority to evolution_storage_new_folder().Ettore Perazzoli2002-07-103-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-storage.c (load_source_data): Pass zero as the @sorting_priority to evolution_storage_new_folder(). (addressbook_storage_add_source): Likewise. * subscribe-dialog.c (recursive_add_folder): Pass zero as @sorting_priority to evolution_storage_new_folder(). * mail-folder-cache.c (real_flush_updates): Pass zero as @sorting_priority to evolution_storage_new_folder(). * evolution-test-component.c (setup_custom_storage): Pass @sorting_priority to evolution_storage_new_folder() so we test it. Also make /FirstFolder have an "inbox" custom icon. * e-local-storage.c (new_folder): Pass zero as @sorting_priority to evolution_storage_new_folder(). * evolution-storage.c (evolution_storage_new_folder): New arg @sorting_priority; put it in the CORBA folder struct. * evolution-shell-client.c (impl_FolderSelectionListener_selected): Copy the sortingPriority as well. * e-folder.c (e_folder_to_corba): Set sortingPriority. * e-corba-storage-registry.c (impl_StorageRegistry_getFolderByUri): Set sortingPriority in the new CORBA Folder struct. * e-corba-storage.c (impl_StorageListener_notifyFolderCreated): Set the custom_icon if folder->customIconName is not an empty string. Likewise, set the sorting_priority * Evolution-common.idl: New member sortingPriority in struct Folder. * e-storage-set-view.c (folder_sort_callback): Sort according to the sorting_priorities. * e-folder.c: New member sorting_priority in EFolderPrivate. (init): Init to zero. (e_folder_set_custom_icon): Emit "changed" if required. (e_folder_set_sorting_priority): New. svn path=/trunk/; revision=17404
* Pass NULL @custom_icon_name to evolution_storage_new_folder().Ettore Perazzoli2002-07-103-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-storage.c (load_source_data): Pass NULL @custom_icon_name to evolution_storage_new_folder(). (addressbook_storage_add_source): Likewise. [Note we could be passing a nice custom here. ;-)] * subscribe-dialog.c (recursive_add_folder): Pass NULL for @custom_icon_name to evolution_storage_new_folder(). * mail-folder-cache.c (real_flush_updates): Pass NULL for @custom_icon_name to evolution_storage_new_folder(). * evolution-test-component.c (setup_custom_storage): Pass NULL for @custom_icon_name to evolution_storage_new_folder(). * e-local-storage.c (new_folder): Pass the custom_icon_name here to evolution_storage_new_folder(). * evolution-shell-client.c (impl_FolderSelectionListener_selected): Set customIconName here too. * e-folder.c (e_folder_to_corba): Set customIconName too. * e-corba-storage-registry.c (impl_StorageRegistry_getFolderByUri): Set customIconName. Also, use e_safe_corba_string() to clean up the code a bit. * evolution-storage.c (evolution_storage_new_folder): New arg @custom_icon_name. * Evolution-common.idl: New member customIconName in struct Folder. svn path=/trunk/; revision=17397
* fixed a compile warningJeffrey Stedfast2002-07-101-1/+1
| | | | svn path=/trunk/; revision=17396
* Don't ever use the mail-display's current_message, this can causeJeffrey Stedfast2002-07-096-33/+53
| | | | | | | | | | | | | | | | | 2002-07-08 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (redirect): Don't ever use the mail-display's current_message, this can cause problems. * mail-ops.c (get_message_free): Unref the gotten message. All of the callers seemed to think that they didn't have to unref the message. * mail-display.c (mail_display_set_message): Now refs the message. (mail_display_destroy): Unref the current_message if we still have ownership of it. svn path=/trunk/; revision=17387
* removed the news editor widget since it sucked.Jeffrey Stedfast2002-07-091-113/+0
| | | | svn path=/trunk/; revision=17384
* Only queue a send operation if we are in Online mode, otherwise don'tJeffrey Stedfast2002-07-062-2/+10
| | | | | | | | | | 2002-07-05 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_send_queued_cb): Only queue a send operation if we are in Online mode, otherwise don't bother wasting our time. svn path=/trunk/; revision=17381
* No longer need to pass a postpone_cb function into the composerJeffrey Stedfast2002-07-069-81/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-05 Jeffrey Stedfast <fejj@ximian.com> * main.c (main): No longer need to pass a postpone_cb function into the composer factory_init. * mail-send-recv.c (get_receive_type): If the provider is a transport, return SEND_SEND. * mail-config.c (mail_config_get_default_transport): If the default account doesn't have a transport, find the first account that does. * mail-callbacks.c (append_mail_cleanup): Don't bother freeing the appended_uid here. (composer_send_internal): New helper function that does all the similar work that composer_send_cb and composer_postpone_cb did. (composer_send_cb): Append the message to Outbox and in the async callback, queue a message send operation. (composer_postpone_cb): Removed. (composer_send_queued_cb): The new async callback for composer_send_cb(). If the append is successful, queue a message send operation and destroy the composer otherwise re-show the composer. (save_draft_done): g_strdup the appended uid. (compose_msg): Don't connect to the postpone signal anymore as it no longer exists. (send_to_url): Same. (mail_reply): Here too. (forward_get_composer): And here. (redirect_get_composer): Again here. (do_edit_messages): And finally here. * mail-ops.c (append_mail_free): Free the appended uid. svn path=/trunk/; revision=17379
* cleaned up mail-config.glade to remove the notebook tab for the accounts_tabJeffrey Stedfast2002-07-051-257/+100
| | | | svn path=/trunk/; revision=17373
* Removed.Jeffrey Stedfast2002-07-053-265/+2
| | | | | | | | 2002-07-04 Jeffrey Stedfast <fejj@ximian.com> * mail-account-editor-news.[c,h]: Removed. svn path=/trunk/; revision=17371
* changed a commentJeffrey Stedfast2002-07-051-1/+2
| | | | svn path=/trunk/; revision=17370
* Removed special-case code for NNTP support.Jeffrey Stedfast2002-07-059-364/+31
| | | | | | | | | | | | | | | | | | | | | | 2002-07-04 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c: Removed special-case code for NNTP support. * mail-account-gui.c (mail_account_gui_setup): Allow configuration of both mail and news accounts. * component-factory.c (mail_load_storages): No longer need the is-account argument. * subscribe-dialog.c (populate_store_list): Don't special-case news accounts anymore. * mail-config.c (mail_config_get_default_news): Removed. (mail_config_get_news): Removed. (mail_config_add_news): Removed. (mail_config_remove_news): Removed. svn path=/trunk/; revision=17368
* Pass TRUE as the auto_connect argument to mail_load_storage_from_uri().Jeffrey Stedfast2002-07-046-14/+32
| | | | | | | | | | | | | | | | | | | | | 2002-07-03 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (vfolder_load_storage): Pass TRUE as the auto_connect argument to mail_load_storage_from_uri(). * mail-account-gui.c (add_new_store): Pass FALSE as the auto_connect value to mail_load_storage_from_uri(). * mail-format.c (handle_multipart_encrypted): Pass the correct pointer into camel_multipart_encrypted_decrypt(). * component-factory.c (mail_add_storage): Now takes an auto-connect argument which it passes along to add_storage(). (mail_load_storage_from_uri): Same. (add_storage): Only call mail_note_store() if we plan on auto-connecting. svn path=/trunk/; revision=17363
* Increase the size of the escapped mlist buffer, we can't assume that thereJeffrey Stedfast2002-07-032-0/+2
| | | | | | | | | | | 2002-07-02 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (on_right_click): Increase the size of the escapped mlist buffer, we can't assume that there can only ever be a single '_' in the mlist name afaik. (filter_type_uid): Ugh, we need to copy the fdata->source here. svn path=/trunk/; revision=17354
* Increase the size of the escapped mlist buffer, we can't assume that thereJeffrey Stedfast2002-07-032-1/+5
| | | | | | | | | | 2002-07-02 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (on_right_click): Increase the size of the escapped mlist buffer, we can't assume that there can only ever be a single '_' in the mlist name afaik. svn path=/trunk/; revision=17353
* Fixes bug #27263.Jeffrey Stedfast2002-07-034-15/+56
| | | | | | | | | | | | | | | | | | | | | | | 2002-07-02 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #27263. * folder-browser.c (filter_subject): Decide the filter source type based on the folder we are in (Sent/Outbox folders use FILTER_SOURCE_OUTGOING). (filter_sender): Same. (filter_recipient): Here too. (filter_mlist): 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