2003-04-02 Not Zed <NotZed@Ximian.com>
* mail-session.c (mail_session_forget_passwords): Only clear the
Mail passwords.
svn path=/trunk/; revision=20632
2003-04-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (save_part): Don't allow the 'prefix' argument to
make_safe_filename() be NULL. If we don't yet have a save_dir in
gconf, use $HOME, etc. Fixes bug #40608.
svn path=/trunk/; revision=20621
2003-04-01 Not Zed <NotZed@Ximian.com>
* mail-display.c (mail_display_redisplay): if we're called and the
idle handler is set, remove it, so we dont go and redisplay it
again. Fixes#40522.
svn path=/trunk/; revision=20609
2003-03-31 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c: Properly init message_list. Fixed a type-o that
initialized it to the password_list.
svn path=/trunk/; revision=20605
2003-03-31 Not Zed <NotZed@Ximian.com>
* mail-session.c (pass_response): need to check for config_service
!= NULL, not service != NULL before calling set_save_password.
Fix for #40472.
2003-03-28 Not Zed <NotZed@Ximian.com>
* folder-browser-ui.c: include e-meta.h
* folder-browser.c (on_right_click): remove unused var.
svn path=/trunk/; revision=20586
2003-03-28 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c (fe_check_for_children): Declare a prototype
for this function prior to fe_got_children() so that
fe_got_children() can call us.
svn path=/trunk/; revision=20558
2003-03-27 Not Zed <NotZed@Ximian.com>
* folder-browser.c (folder_browser_gui_init): dont set the paned
initial size here, but hook onto the realize signal.
(paned_realised): set the paned size once we're realised. Fixes
#37084, its a bit of a hack, but it seems to work.
svn path=/trunk/; revision=20536
2003-03-26 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #40074.
* folder-browser-factory.c (control_deactivate): Save message-list
state.
* message-list.c (message_list_save_state): Save the various
states.
svn path=/trunk/; revision=20525
2003-03-26 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #39870
* message-browser.c (transfer_msg_done): Close the
message-browser. Since the message doesn't exist anymore, we
should close it.
(message_browser_delete): New callback to handle deletion in the
message-browser window.
svn path=/trunk/; revision=20524
2003-03-26 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c (fe_got_children): If the CamelFolderInfo
node doesn't have \NoInferriors set, then check for
subfolders. Fixes bug #40314.
svn path=/trunk/; revision=20520
2003-03-26 Not Zed <NotZed@Ximian.com>
* mail-display.c (popup_window_destroy_cb): Undo jeff's patch
below for #40275, the destroy timeout is already removed in
popup_info_free. Unref the widget 'w' when we're done with it.
(popup_info_free): Move everything in here to popup_window_destroy
and remove, since nothing else uses it.
(make_popup_window): Ref the widget so it doesn't go away before
we're finished with it. Really fixes bug #40275/40188.
svn path=/trunk/; revision=20512
2003-03-25 Jeffrey Stedfast <fejj@ximian.com>
* subscribe-dialog.c: Remove search entry which never worked right
(and can't work as users expect anyway, since we don't do
namespace stripping). Fixes bug #40083.
(ftree_node_new): Ignore \NoSelect as far as marking it
"subscribable". Fixes bug #40124.
svn path=/trunk/; revision=20509
2003-03-25 Not Zed <NotZed@Ximian.com>
* mail-tools.c (meta_data_key): strdup the key before freeing the
url as it is probably pointing there.
svn path=/trunk/; revision=20491
2003-03-25 Not Zed <NotZed@Ximian.com>
* component-factory.c (got_folder): remove a debug printf that
made it in a commit.
svn path=/trunk/; revision=20480
2003-03-25 Not Zed <NotZed@Ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_global): Load
per-folder setting of show_preview from meta data.
(folder_browser_ui_add_list): Same, for thread_list.
* mail-tools.c (mail_tool_get_meta_data)
(mail_tool_delete_meta_data): helpers to lookup/delete meta data.
* mail-config.c (mail_config_uri_deleted): delete the meta-data
for the folder.
* folder-browser.c (folder_browser_reload): dont reload the uri if
we're in the process of loading it still.
(folder_browser_new): load the folder meta data before loading the
folder.
(folder_browser_toggle_preview):
(folder_browser_toggle_threads): save change to meta-data.
(got_folder): Load the metadata if we have a folder to set, and
the meta-data has changed from initislisation.
svn path=/trunk/; revision=20478
2003-03-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_data_wrapper_write_to_stream):
Default to the charset provied in the MimePart's Content-Type over
that of the user's mailer charset. Fixes bug #39204.
svn path=/trunk/; revision=20462
2003-03-21 Larry Ewing <lewing@ximian.com>
* mail-display.c (pixbuf_gen_idle): remember to disconnect the
destroy handler if whenever the loader is shut down.
svn path=/trunk/; revision=20449
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (owner_set_cb): Change the message_destroy
callback to just gtk_widget_destroy. No need to have a callback
simply to call this function.
(warning_response): Removed (see above).
svn path=/trunk/; revision=20447
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (sig_add_script_response): Don't forget to
add the signature to the signature list if it is a valid script.
svn path=/trunk/; revision=20444
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_signature_unregister_client): Make
sure we can find the registered handler before trying to remove it
from the list.
svn path=/trunk/; revision=20443
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (do_user_message): Make the 5th argument to
gtk_message_dialog_new() "%s" and move the m->prompt to arg 6 so
that we are safe if the prompt string contains any %'s. Also
connect to the response signal for the user_msg dialog and set the
callback to gtk_widget_destroy so that the user can actually close
the dialog. We also need to g_object_weak_ref() the dialog so that
we can set the global message_dialog pointer back to NULL when it
gets destroyed. Fixes bug #40043.
svn path=/trunk/; revision=20435
* mail-ops.c (build_from): Remove this since there's a function in
CamelMimeMessage to do it now.
(save_messages_save): Use camel_mime_message_build_mbox_from.
svn path=/trunk/; revision=20431
2003-03-21 Not Zed <NotZed@Ximian.com>
** for mail part of bug #38461.
* importers/evolution-outlook-importer.c (load_file_fn): dont pass
in create flag to uri_to_folder, the folder must already exist.
* importers/evolution-mbox-importer.c (folder_created_cb):
Removed, we now force the caller to create the destination folder
first.
(load_file_fn): Dont try and create a folder if it doesn't exist.
Also, use the uri directly as the destination uri, so we can
import into any folder.
(process_item_fn): If we dont have a folder, thats just an error,
return BAD_FILE.
* importers/netscape-importer.c (netscape_import_file): As below
for elm_import_file.
(import_next): similarly as for pine import_next.
(importer_cb): just record result.
(importer_timeout_fn): removed.
* importers/pine-importer.c (import_next): Similar to below for
the elm import_next.
(pine_import_file): As below for elm_import_file.
(importer_timeout_fn): removed.
(importer_cb): just record the result, and exit.
(import_next): change around to behave more like the elm importer,
cleaning up when we're done.
* importers/elm-importer.c (elm_import_file): Create the
destination folder ourselves, dont pass it onto the mbox importer.
Simplify logic, just do the import within a while loop, polling
the g main loop as necessary, remove need for idle callbacks and
other crap.
(import_next): If elm_import_file fails, then just go straight to
the next folder, stops it falling in a heap.
(import_item_idle): removed.
(importer_cb): just record result/exit.
* mail-importer.c (mail_importer_create_folder): removed.
(mail_importer_make_local_folder): new function to create a
local-only folder from a path. It runs synchronously by using a
recursive main loop.
(folder_created_cb): callback for make_local_folder.
svn path=/trunk/; revision=20379
2003-03-19 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (spell_load_values): changed default
language to en_us instead of en
(spell_language_button_press): new handler, ported from 1.2
(spell_setup): use spell_language_enable and
spell_language_button_press
svn path=/trunk/; revision=20356
2003-03-18 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (do_mail_print): fix leak, cleanup variable
name, and call gtk_window_set_transient_for with a parent that is
actually a GtkWindow.
(mark_as_unseen): use g_source_remove.
svn path=/trunk/; revision=20348
2003-03-18 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (mail_config_druid_new): Set the type hint
to DIALOG so that Metacity shows this window on top. Fixes bug
#39914.
svn path=/trunk/; revision=20343
2003-03-18 Not Zed <NotZed@Ximian.com>
* mail-vfolder.c (new_rule_clicked): validate rule & rule is
unique. Workaround for #39464. Should this just use
rule_context_add_rule_gui??
svn path=/trunk/; revision=20333
2003-03-18 Not Zed <NotZed@Ximian.com>
* mail-search.c (mail_search_destroy): unhook from the html engine
signals here, before we redisplay the message. Also make sure
this processing only happens once. For #39759.
(mail_search_finalise): dont unhook from signals here.
svn path=/trunk/; revision=20326
2003-03-12 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (expunge_folder): use a hack to find out if the
message-list was focussed before we desensitise it.
(expunged_folder): If the message-list was focussed before,
re-grab the focus. For bug #29564.
svn path=/trunk/; revision=20325
2003-03-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (pixbuf_gen_idle): If we fail to load the pixbuf,
don't use it (stops some g_warnings).
svn path=/trunk/; revision=20319
2003-03-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (do_external_viewer): Lookup the handler for the
type. If we don't have a registered handler or if the registered
handler is not meant to be handled via a bonobo component, don't
use a bonobo component.
* mail-format.c (mail_lookup_handler): If we register a new
handler that is to be handled by a bonobo component, set
handler->is_bonobo to TRUE.
svn path=/trunk/; revision=20311
2003-03-12 Jeffrey Stedfast <fejj@ximian.com>
Security vulnerability fixes.
* mail-display.c (do_external_viewer): Make sure that we don't
launch a bonobo control to view a mime-type that we handle
internally, otherwise maliciously formed HTML mail using <object>
tags could potentially launch a bonobo vontrol to view the mime
part bypassing any checks that Evolution might do on the data
normally.
svn path=/trunk/; revision=20269