Commit Graph

2654 Commits

Author SHA1 Message Date
b2602b6c9c pass FALSE for e_destination_get_textrep's include_email arg.
2003-03-23  Chris Toshok  <toshok@ximian.com>

	* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): pass
	FALSE for e_destination_get_textrep's include_email arg.

svn path=/trunk/; revision=20468
2003-03-23 09:19:15 +00:00
d7a4a66632 Default to the charset provied in the MimePart's Content-Type over that of
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 21:26:06 +00:00
3cb47e53a6 "en_us" should not be translated. Fixes bug #40088.
2003-03-21  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-composer-prefs.c (spell_load_values): "en_us" should not be
	translated. Fixes bug #40088.

svn path=/trunk/; revision=20454
2003-03-21 16:22:27 +00:00
53fdce7e28 remember to disconnect the destroy handler if whenever the loader is shut
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-21 07:53:13 +00:00
bca5dffbb7 Change the message_destroy callback to just gtk_widget_destroy. No need to
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 22:27:25 +00:00
43561d50ef Don't forget to add the signature to the signature list if it is a valid
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 20:34:52 +00:00
10325a5d48 Make sure we can find the registered handler before trying to remove it
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 20:25:22 +00:00
d7f89b244f Make the 5th argument to gtk_message_dialog_new() "%s" and move the
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
2003-03-20 17:55:12 +00:00
98063be897 Remove this since there's a function in CamelMimeMessage to do it now.
* 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-20 16:44:05 +00:00
1dc4c5de39 ** for mail part of bug #38461.
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-20 10:17:25 +00:00
43517230a9 Revert ettore's broken patch.
2003-03-19  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (mail_config_druid_new): Revert ettore's
	broken patch.

	* mail-search-dialogue.c: Removed - nothing uses this.

svn path=/trunk/; revision=20373
2003-03-19 22:21:37 +00:00
2416330235 Revert ettore's broken patch.
2003-03-19  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (mail_config_druid_new): Revert ettore's
	broken patch.

	* mail-search-dialogue.c (mail_search_dialogue_construct): Make
	the default size a little smaller.

svn path=/trunk/; revision=20372
2003-03-19 22:02:18 +00:00
7b8ae9b994 Replace "evolution:menu-name" prop with "evolution:menu_name". [#39692]
* importers/GNOME_Evolution_Mail_Mbox_Importer.server.in.in:
Replace "evolution:menu-name" prop with "evolution:menu_name".
[#39692]
* importers/GNOME_Evolution_Mail_Outlook_Importer.server.in.in:
Likewise.

svn path=/trunk/; revision=20369
2003-03-19 20:29:25 +00:00
28a37c0885 (mail_config_druid_new): Give the druid the
DIALOG hint.  [#39741 and friends.]

svn path=/trunk/; revision=20357
2003-03-19 18:24:30 +00:00
afc9db89eb changed default language to en_us instead of en
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-19 14:37:32 +00:00
e977f1be9e e_msg_composer_get_subject() now returns a const char *, so update
2003-03-18  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message):
	e_msg_composer_get_subject() now returns a const char *, so update
	appropriately.

svn path=/trunk/; revision=20349
2003-03-18 22:10:38 +00:00
680504834f fix leak, cleanup variable name, and call gtk_window_set_transient_for
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 21:47:43 +00:00
15ba3005bc Set the type hint to DIALOG so that Metacity shows this window on top.
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 19:58:02 +00:00
9623072931 validate rule & rule is unique. Workaround for #39464. Should this just
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 08:31:28 +00:00
9ecca5f32e unhook from the html engine signals here, before we redisplay the message.
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-18 00:13:41 +00:00
42508f7a3b use a hack to find out if the message-list was focussed before we
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 22:44:58 +00:00
bbba025a3f (mail_signature_editor): Give the editor
the GDK_WINDOW_TYPE_HINT_DIALOG hint.  [#38926]

svn path=/trunk/; revision=20320
2003-03-17 21:32:11 +00:00
8b4ca6c023 If we fail to load the pixbuf, don't use it (stops some g_warnings).
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 21:08:04 +00:00
c56a8e8c2d Part of a fix for bug #39809
2003-03-17  Jeffrey Stedfast  <fejj@ximian.com>

	Part of a fix for bug #39809

	* mail-vfolder.c (vfolder_edit): Don't add the cancel button here.

	* mail-callbacks.c (filter_edit): Don't add the cancel button here.

svn path=/trunk/; revision=20316
2003-03-17 19:55:25 +00:00
e1328c5de8 Lookup the handler for the type. If we don't have a registered handler or
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-17 16:45:04 +00:00
dbf748d3d2 Update for EvolutionStorage change
* component-factory.c (storage_connect, storage_connected): Update
	for EvolutionStorage change

svn path=/trunk/; revision=20299
2003-03-14 18:16:44 +00:00
69c9fbff69 reverted mail-display.c and mail-format.c fixes - pondering better fixes
svn path=/trunk/; revision=20279
2003-03-13 20:09:27 +00:00
4b32de61d0 Security vulnerability fixes.
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
2003-03-12 21:39:09 +00:00
1f54deb558 Security vulnerability fixes.
2003-03-12  Jeffrey Stedfast  <fejj@ximian.com>

	Security vulnerability fixes.

	* mail-format.c (handle_text_html, attachment_header)
	(handle_image, handle_via_bonobo): Encode the result from
	get_cid() so that malicious Content-Id strings cannot bypass the
	user's preference to not load http images, force a bonobo control
	to load passing it arbitrary data, etc.

svn path=/trunk/; revision=20268
2003-03-12 20:55:04 +00:00
0dadd92027 Rewritten to do the same as the composer's build_message() code.
2003-03-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-signature-editor.c (menu_file_save_cb): Rewritten to do the
	same as the composer's build_message() code.

svn path=/trunk/; revision=20266
2003-03-12 19:05:53 +00:00
b35e87b9e0 Various small fixes leading up to a real fix.
2003-03-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-signature-editor.c: Various small fixes leading up to a real fix.

svn path=/trunk/; revision=20265
2003-03-12 18:35:51 +00:00
179239f0e5 Use gtk_window_set_transient_for() on the druid with the settings dialog
2003-03-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (account_add_clicked): Use
	gtk_window_set_transient_for() on the druid with the settings
	dialog as the parent window.

svn path=/trunk/; revision=20253
2003-03-11 21:11:44 +00:00
4cebbd43b9 Remove the yes/no buttons. Fixes bug #39382.
2003-03-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-signature-editor.c (do_exit): Remove the yes/no
	buttons. Fixes bug #39382.

svn path=/trunk/; revision=20246
2003-03-10 20:36:45 +00:00
a2ef1d7ccf New callback function to handle the checkbox getting toggled.
2003-03-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (account_able_toggled): New callback function to
	handle the checkbox getting toggled.
	(mail_accounts_treeview_new): Save the toggle renderer so we can
	later connect to it's toggled signal.
	(mail_accounts_tab_construct): Connect to the toggle-cell's
	toggled signal. Fixes bug #39325.

svn path=/trunk/; revision=20245
2003-03-10 20:06:46 +00:00
c8a1141a55 Fix the response code, because some bastard changed the filter/* code and
2003-03-11  Not Zed  <NotZed@Ximian.com>

        * mail-vfolder.c (vfolder_editor_response): Fix the response code,
        because some bastard changed the filter/* code and didn't fix the
        callers.  Partial fix for #39165.

svn path=/trunk/; revision=20231
2003-03-10 08:17:05 +00:00
63a340aa63 Removed the debug printf. Added a case for the composer. Part of fixing
2003-03-10  Not Zed  <NotZed@Ximian.com>

        * component-factory.c
        (factory): Removed the debug printf.  Added a case for the
        composer.  Part of fixing #39256.

svn path=/trunk/; revision=20228
2003-03-10 06:38:56 +00:00
bc78d367b0 removed main.c from the build.
2003-03-10  Not Zed  <NotZed@Ximian.com>

        * Makefile.am (libevolution_mail_la_SOURCES): removed main.c from
        the build.

        * component-factory.c (component_factory_init): Remove, not used
        anymore, causes linking problems some places.
        (factory): Removed the debug printf.

svn path=/trunk/; revision=20226
2003-03-10 04:27:35 +00:00
0b5acb6141 All this snot just to fix bug #38925 and an attempt to fix bug #38926 (but
2003-03-07  Jeffrey Stedfast  <fejj@ximian.com>

	All this snot just to fix bug #38925 and an attempt to fix bug
	#38926 (but it seems no matter what I do, I can't work around the
	bonoboness/modality/whatever of the shell's preferences dialog).

	* mail-account-gui.c (sig_add_new_signature): Get the toplevel
	parent GtkWindow and pass that along to
	mail_composer_prefs_new_signature() so that window layering can be
	done correctly.

	* mail-composer-prefs.c (mail_composer_prefs_new_signature):
	Simplify. We don't want to add the signature to the list until
	after they have saved.
	(sig_edit_cb): Pass FALSE as the is_new argument to
	mail_signature_editor().
	(sig_event_client): Listen for signatures being added.
	(mail_composer_prefs_new_signature): Now takes a GtkWindow arg as
	the first arg rather than a MailComposerPrefs arg since we don't
	really need it to be a MailComposerPrefs object. We'd rather use
	the first arg as the parent GtkWindow so that we can set
	transience for the editor window.

	* mail-signature-editor.c (mail_signature_editor): Now takes a
	'parent' argument (so we can set transient_for()) and a 'is_new'
	argument specifying whether the editor is editing a new signature
	or not. If it is, when the user saves, it will be added to the
	signature list. otherwise it won't.
	(sig_name_changed): Only use the mail_config_signature_set_name()
	interface if it is *not* a new signature.
	(menu_file_save_cb): If is_new, then save the signature to the
	config - otherwise do what we did before and set the modifications
	to it and emit the CHANGED event.

	* mail-config.c (mail_config_signature_new): Renamed from
	mail_config_signature_add(). We no longer immediately add the
	signature to the list of saved signatures.
	(mail_config_signature_add): New function which adds the signature
	and emits the SIG_ADDED event.

svn path=/trunk/; revision=20221
2003-03-07 20:54:54 +00:00
36d9b4794e If the part url is a text part, use
2003-03-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (on_url_requested): If the part url is a text
	part, use mail_format_data_wrapper_write_to_stream(). This should
	fix bug #39204.

	* mail-format.c (mail_format_data_wrapper_write_to_stream): Make public.

svn path=/trunk/; revision=20219
2003-03-07 18:43:38 +00:00
b59d15607b (mail_accounts_treeview_new): Set the
shadow_type of the scrlled window to GTK_SHADOW_IN.

svn path=/trunk/; revision=20205
2003-03-06 18:01:41 +00:00
72a9c92228 Add some spacing to the buttons. [#38227]
svn path=/trunk/; revision=20204
2003-03-06 17:58:43 +00:00
1363750693 Use G_GNUC_FUNCTION instead of __FUNCTION__. (OUT): Likewise. Likewise.
* importers/evolution-mbox-importer.c (IN): Use G_GNUC_FUNCTION
instead of __FUNCTION__.
(OUT): Likewise.
* importers/netscape-importer.c (netscape_import_file): Likewise.
* mail-send-recv.c (receive_done): Likewise.
* mail-summary.c (SUMMARY_OUT): Likewise.
(SUMMARY_IN): Likewise.
(folder_changed_cb): Likewise.
(message_changed_cb): Likewise.

svn path=/trunk/; revision=20202
2003-03-06 17:27:48 +00:00
b85ba12a6c #include <string.h>
2003-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-factory.c: #include <string.h>

svn path=/trunk/; revision=20194
2003-03-06 15:34:30 +00:00
b327312920 Don't use __inline__ as not all platforms/compilers support this keyword.
2003-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* e-searching-tokenizer.c (camel_utf8_getc): Don't use __inline__
	as not all platforms/compilers support this keyword.
	(g): Same.

svn path=/trunk/; revision=20193
2003-03-06 15:32:24 +00:00
0cc70ca0f7 remove debug printf.
2003-03-06  Not Zed  <NotZed@Ximian.com>

	* component-factory.c (owner_unset_cb): remove debug printf.

svn path=/trunk/; revision=20168
2003-03-05 14:12:11 +00:00
b0deb6e8ac Removed old quit code. (owner_unset_cb): Make this call synchronous. Wont
2003-03-05  Not Zed  <NotZed@Ximian.com>

	* component-factory.c (idle_quit): Removed old quit code.
	(owner_unset_cb): Make this call synchronous.  Wont cover all
	cases but should be ok most of the time.

svn path=/trunk/; revision=20167
2003-03-05 13:48:41 +00:00
b7cc601332 Prototype some functions to shut the compiler up.
2003-03-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-search.c: Prototype some functions to shut the compiler up.

svn path=/trunk/; revision=20163
2003-03-04 22:38:47 +00:00
d833e66982 Go back to using e_destination_get_address() but use the camel-address
2003-03-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Go back to using
	e_destination_get_address() but use the camel-address parser on
	the strings to make sure they are non-empty. Fixes bug #37854.

svn path=/trunk/; revision=20137
2003-03-04 18:02:53 +00:00
e908d772d3 Use 'filename' when creating the uri rather than using the uninitialised
2003-03-03  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-signature-editor.c (menu_file_save_cb): Use 'filename' when
	creating the uri rather than using the uninitialised 'uri'
	variable to create itself. Fixes bug #38864.

svn path=/trunk/; revision=20125
2003-03-03 18:54:16 +00:00
5fa6f6bc8a Do the same as below for request_password, so we dont leave a mainloop
2003-03-03  Not Zed  <NotZed@Ximian.com>

        * mail-session.c (do_user_message): Do the same as below for
        request_password, so we dont leave a mainloop lying around.

2003-03-03  Jeffrey Stedfast  <fejj@ximian.com>

        * mail-session.c (request_password): Don't connect to the response
        signal if we are in the main thread - instead just use the return
        value from gtk_dialog_run and then call pass_response() with the
        response value.

svn path=/trunk/; revision=20122
2003-03-03 08:17:57 +00:00