Commit Graph

2028 Commits

Author SHA1 Message Date
Radek Doulik ee74c23472 call set_body later to allow ignored words to be sent to gtkhtml control
2002-02-07  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (mail_generate_reply): call set_body later to
	allow ignored words to be sent to gtkhtml control ahead

svn path=/trunk/; revision=15598
2002-02-07 20:30:29 +00:00
JP Rosevear ce46cd2607 remove "New" from user creatable menu item
2002-02-07  JP Rosevear  <jpr@ximian.com>

	* component-factory.c (create_component): remove "New" from user
	creatable menu item

svn path=/trunk/; revision=15597
2002-02-07 19:38:51 +00:00
Christopher James Lahey b7ac37f6b1 Bumped the required version of gal.
2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* configure.in: Bumped the required version of gal.

From addressbook/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* gui/widgets/e-addressbook-view.c
	(e_addressbook_view_setup_menus): Changed this function to use the
	new GalViewMenus which takes a GalViewInstance, instead of a
	GalViewCollection.

From calendar/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* gui/e-tasks.c (e_tasks_setup_view_menus), gui/gnome-cal.c
	(gnome_calendar_setup_view_menus): Made these use the new
	GalViewMenus stuff.

From mail/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* folder-browser.c, folder-browser.h, folder-browser-ui.c,
	folder-browser-ui.h
	(folder_browser_ui_setup_view_menus,
	folder_browser_ui_discard_view_menus): Changed this to use the new
	GalViewMenus stuff.  Made these exported functions.

	* mail-callbacks.c, message-browser.c: Changed these to not pass
	the now removed row parameter to message_list_select.

	* mail-config.c, mail-config.h (mail_config_folder_to_safe_url):
	Refactored this out of mail_config_folder_to_cachename.

	* message-list.c, message-list.h (message_list_select): Removed
	the row argument.  Changed this to use the new function in ETree
	for finding the next cursor row that matches a test.
	(message_list_construct): Handle a failed construction of the
	ETree here.
	(message_list_setup_etree, save_tree_state): Don't load or save
	the header state.  folder-browser-ui.c deals with this now.

From views/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* addressbook/galview.xml, calendar/galview.xml, mail/galview.xml,
	tasks/galview.xml: Added default-view parameters.

	* mail/As_Sent_Folder.galview: New galview.

	* mail/Makefile.am, mail/galview.xml: Added As_Sent_Folder
	galview.

From widgets/ChangeLog:

2002-02-07  Christopher James Lahey  <clahey@ximian.com>

	* menus/gal-view-menus.c, menus/gal-view-menus.h
	(gal_view_menus_new): Made this take a GalViewInstance instead of
	a GalViewCollection.  Reworked most of this to utilize the
	interfaces provided by GalViewInstance.

svn path=/trunk/; revision=15592
2002-02-07 11:24:08 +00:00
Jeffrey Stedfast bfd54850fa Rearranged the #if checks so that we don't ever try to access any smime
2002-02-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_new): Rearranged the #if
	checks so that we don't ever try to access any smime widgets
	(since they are now being destroyed) if smime isn't enabled.
	(mail_account_gui_save): Same here.

svn path=/trunk/; revision=15587
2002-02-07 01:58:50 +00:00
Jeffrey Stedfast a184d302d5 Removed references to NEEDS_REPLY.
2002-02-06  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c: Removed references to NEEDS_REPLY.

	* mail-callbacks.c (mark_as_needing_reply): Removed.
	(mark_as_not_needing_reply): Removed.
	(toggle_need_reply): Removed.

	* folder-browser.c (on_right_click): Remove CAN_MARK_NEEDS_REPLY
	stuff, this is going to be implemented in an entirely different
	way.

svn path=/trunk/; revision=15585
2002-02-07 00:27:24 +00:00
Jeffrey Stedfast 411fd545df Look for DOCTYPE XML comments too to decide if the message content is
2002-02-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (handle_text_plain): Look for DOCTYPE XML comments
	too to decide if the message content is really HTML.

svn path=/trunk/; revision=15581
2002-02-06 19:52:08 +00:00
Not Zed 45e4e8c185 Dont double-free the text body data.
2002-02-06  Not Zed  <NotZed@Ximian.com>

        * mail-callbacks.c (mail_generate_reply): Dont double-free the
        text body data.

svn path=/trunk/; revision=15574
2002-02-06 01:35:22 +00:00
Not Zed 45c3370178 Add attachments after we've seen if the composer object is valid.
2002-01-31  Not Zed  <NotZed@Ximian.com>

        * mail-callbacks.c (mail_generate_reply): Add attachments after
        we've seen if the composer object is valid.
        (mail_generate_reply): Support new flag REPLY_NO_QUOTE - if set,
        then dont quote any of the message in the reply.

svn path=/trunk/; revision=15560
2002-02-04 02:22:18 +00:00
Ettore Perazzoli bd3b4f5462 Destroy the S/MIME frame if not available, instead of just graying it out.
* mail-account-gui.c (mail_account_gui_new): Destroy the S/MIME
frame if not available, instead of just graying it out.  [I would
just hide it, but it looks like there is a show_all somewhere so
that doesn't work.]

svn path=/trunk/; revision=15554
2002-02-02 17:14:53 +00:00
Ettore Perazzoli 1483504f83 Some touchups from me and Anna.
* mail-config.glade: Some touchups from me and Anna.

svn path=/trunk/; revision=15553
2002-02-02 17:06:54 +00:00
Jeffrey Stedfast 7078e68956 Don't bother setting the auto-cc/bcc recipients here. I'm moving the code
2002-01-31  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Don't bother setting
	the auto-cc/bcc recipients here. I'm moving the code to add them
	in the GUI in the composer so they will already be in the
	recipient list by this point.

svn path=/trunk/; revision=15549
2002-02-01 20:49:30 +00:00
Radek Doulik 81762a26a3 ignore spell checking of words in addresses, move set_body_text after all
2002-01-31  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (mail_generate_reply): ignore spell checking of
	words in addresses, move set_body_text after all ignored words are
	set so we don't have to spell check whole document again
	(mail_ignore_address): helper function
	(mail_ignore): ditto

svn path=/trunk/; revision=15541
2002-01-31 18:58:59 +00:00
Jeffrey Stedfast 207303df9e Pass the parent window to mail_account_editor_new().
2002-01-30  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (mail_edit): Pass the parent window to
	mail_account_editor_new().

	* mail-account-editor.c (mail_account_editor_new): Set the parent
	window here because construct() inadvertantly
	gtk_widget_show_all's the editor.

	* mail-account-gui.c (mail_account_gui_save): Use g_basename()
	rather than strrchr for '/' especially since the strrchr code
	wasn't doing any NULL checks.

svn path=/trunk/; revision=15533
2002-01-30 23:46:32 +00:00
Radek Doulik ae64f7d6bf print quoted text in italic
2002-01-30  Radek Doulik  <rodo@ximian.com>

	* mail-format.c (handle_text_plain_flowed): print quoted text in
	italic

svn path=/trunk/; revision=15530
2002-01-30 21:12:29 +00:00
Not Zed d4c2e5853d re-enable popup menu. (populate_folder_context_menu): If we're on a
2002-01-30  Not Zed  <NotZed@Ximian.com>

        * component-factory.c (create_component): re-enable popup menu.
        (populate_folder_context_menu): If we're on a vfolder, and its not
        UNMATCHED, create a change properties item, and set it up
        approriately.
        (change_prop_popup): Callback to edit the vfolder rule.  For
        #3358.

svn path=/trunk/; revision=15523
2002-01-30 07:28:21 +00:00
Dave West c874c06ba8 Changed the function signature so that we can pass in whom we want to
2002-01-29  Dave West  <kat@unleashed.org>

	* mail-callbacks.c (create_msg_composer): Changed the function
	signature so that we can pass in whom we want to compose as.
	Should fix bug #10391.
	(compose_msg): Get the current profile account and pass it along
	to create_msg_composer.
	(send_to_url): Pass in a NULL profile account to cause
	create_msg_composer to use the default account.

svn path=/trunk/; revision=15518
2002-01-30 00:33:34 +00:00
Jeffrey Stedfast a435c47304 Make X-Evolution-Account take priority over X-Evolution-Transport. Should
2002-01-29  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (mail_send_message): Make X-Evolution-Account take
	priority over X-Evolution-Transport. Should we just get rid of
	X-Evolution-Transport? Anyways, this ought to fix a number of
	complaints.

svn path=/trunk/; revision=15516
2002-01-29 23:43:45 +00:00
Jeffrey Stedfast 1045127126 Don't pass NULL text to gtk_entry_set_text. Maybe this will fix bug
2002-01-29  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (construct): Don't pass NULL text to
	gtk_entry_set_text. Maybe this will fix bug #18971.

svn path=/trunk/; revision=15512
2002-01-29 22:51:40 +00:00
Jeffrey Stedfast 865606984f New function that implements the Redirect feature.
2002-01-29  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (redirect): New function that implements the
	Redirect feature.

	* mail-ops.c (mail_send_message): If we are redirecting a message,
	get the Resent-* recipients otherwise get the normal To/Cc/Bcc
	recipients and use them in the CamelTransport::send_to() method.

	* mail-session.c (main_get_filter_driver): Set the beep_func to
	the beep_cb, not the play_sound_func. Oops ;-)

	* folder-browser-ui.c: Add Redirect bonobo verb thingy here.
	(folder_browser_ui_set_selection_state): Add MessageRedirect to
	the proper string arrays.

svn path=/trunk/; revision=15511
2002-01-29 21:06:01 +00:00
Radek Doulik e43d51f0f3 (footer_info_free): unref footer font
svn path=/trunk/; revision=15509
2002-01-29 19:56:48 +00:00
Radek Doulik 2488e2dfc1 (do_mail_print): get rid of static global variables, as they are
not thread safe (thanks to clahey for pointing this out)

svn path=/trunk/; revision=15508
2002-01-29 19:37:29 +00:00
Radek Doulik be2809c7b8 initialize line to 0 to make everybody happy ;-) ops, set local_font to
2002-01-29  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (do_mail_print): initialize line to 0 to make
	everybody happy ;-)
	ops, set local_font to NULL

svn path=/trunk/; revision=15506
2002-01-29 19:16:29 +00:00
Jeffrey Stedfast 2f904b426c Don't bother checking for invalid recipients anymore. If a recipient is
2002-01-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Don't bother checking
	for invalid recipients anymore. If a recipient is invalid, the
	transport error message will specify that now.

svn path=/trunk/; revision=15501
2002-01-29 00:43:49 +00:00
Radek Doulik d5f73b0fdd print footer (footer_print_cb): print page number and number of pages
2002-01-28  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (do_mail_print): print footer
	(footer_print_cb): print page number and number of pages

svn path=/trunk/; revision=15499
2002-01-28 23:34:26 +00:00
Ettore Perazzoli 79a377ddf2 Final cleanup for the CFLAGS and LIBS in the Makefiles.
svn path=/trunk/; revision=15486
2002-01-27 17:21:36 +00:00
Jeffrey Stedfast 4158f7bd05 We need to return a value here. I think FALSE is fine (I hope).
2002-01-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (delete_event_cb): We need to return a value
	here. I think FALSE is fine (I hope).

svn path=/trunk/; revision=15476
2002-01-25 21:38:32 +00:00
Jeffrey Stedfast 22e539d536 Save the pathname. (save_part): Use the new mail_config cruft to get the
2002-01-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (save_data_cb): Save the pathname.
	(save_part): Use the new mail_config cruft to get the last used
	save pathname.

	* mail-config.c (config_read): Read in last_filesel_dir string.
	(mail_config_write_on_exit): Save the last_filesel_dir setting.
	(mail_config_get_last_filesel_dir): New
	(mail_config_set_last_filesel_dir): New

svn path=/trunk/; revision=15474
2002-01-25 19:32:27 +00:00
Jeffrey Stedfast 91dd1d75d7 Do some NULL checking on the url before using it.
2002-01-25  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c (destination_folder_handle_motion): Do some
	NULL checking on the url before using it.
	(destination_folder_handle_drop): Make sure the uri is non-NULL
	before freeing.

svn path=/trunk/; revision=15473
2002-01-25 19:08:00 +00:00
Ettore Perazzoli 4ba09274d6 Clean up some of the Makefiles so we dont' link every library multiple
times, causing big libtool 1.4 pain.

svn path=/trunk/; revision=15461
2002-01-24 23:16:18 +00:00
Jeffrey Stedfast d656b69c9b This wrapper for gdk_beep().
2002-01-24  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c (session_system_beep): This wrapper for gdk_beep().

svn path=/trunk/; revision=15460
2002-01-24 21:06:12 +00:00
Jeffrey Stedfast 5302fdbacd Don't bother trying to see if the domain looks like a FQDN.
2002-01-24  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (is_email): Don't bother trying to see if the
	domain looks like a FQDN.

svn path=/trunk/; revision=15457
2002-01-24 20:14:36 +00:00
Jeffrey Stedfast 57af36acc7 If the mail-display is in focus, then select-all in the mail display
2002-01-24  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (select_all): If the mail-display is in focus,
	then select-all in the mail display rather than the
	message-list. Fixes bug #19126.

svn path=/trunk/; revision=15456
2002-01-24 20:09:04 +00:00
Ettore Perazzoli c76fc18144 Pass a NULL icon to `evolution_shell_component_add_user_creatable_item()'.
* component-factory.c (create_component): Pass a NULL icon to
`evolution_shell_component_add_user_creatable_item()'.

svn path=/trunk/; revision=15441
2002-01-23 22:23:51 +00:00
Jeffrey Stedfast 8cdf205496 Implements bug #15692
2002-01-23  Jeffrey Stedfast  <fejj@ximian.com>

	Implements bug #15692

	* folder-browser.c (html_button_press_event): New callback that
	checks to make sure that the mouse isn't over a link or image in
	the html view and then calls the on_right_click handler after
	getting the appropriate args.
	(my_folder_browser_init): Connect to the button_press_event here.

svn path=/trunk/; revision=15437
2002-01-23 20:43:16 +00:00
Dan Winship 1dbe7b59d9 Define CAMEL_PROVIDERDIR to be the configure.in-defined camel_providerdir.
* Makefile.am (INCLUDES): Define CAMEL_PROVIDERDIR to be the
	configure.in-defined camel_providerdir. (Was supposed to have been
	committed a month ago... oops.)

svn path=/trunk/; revision=15430
2002-01-23 16:44:19 +00:00
Jeffrey Stedfast b863a7b277 Now takes a boolean notify argument. If this is *not* set, then remove the
2002-01-22  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (mail_filter_folder): Now takes a boolean notify
	argument. If this is *not* set, then remove the sound-notify
	filter rule that mail-session adds. Kinda kludgy, but good enough
	for the moment.

	* mail-callbacks.c (guess_me): Simplified.

svn path=/trunk/; revision=15426
2002-01-23 00:13:08 +00:00
Jeffrey Stedfast f87bf7fa77 Simplified.
2002-01-22  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (guess_me): Simplified.

svn path=/trunk/; revision=15424
2002-01-22 20:52:16 +00:00
Jeffrey Stedfast 16b174cf0e If the first "token" in the body is "<html>", then treat this as a
2002-01-21  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (handle_text_plain): If the first "token" in the
	body is "<html>", then treat this as a text/html part rather than
	a text/plain part. Fixes bug #16817.

	* component-factory.c (destination_folder_handle_drop): Removed
	some unused variables.

svn path=/trunk/; revision=15420
2002-01-21 21:58:07 +00:00
Jeffrey Stedfast a51a121e95 Update to match new uudecode interface (ie, no longer need a uulen state
2002-01-17  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (try_uudecoding): Update to match new uudecode
	interface (ie, no longer need a uulen state variable).

svn path=/trunk/; revision=15350
2002-01-17 19:32:19 +00:00
Jeffrey Stedfast e9db6d2a07 New callback to handle the set_base signal. (on_url_requested): If the
2002-01-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (on_set_base): New callback to handle the
	set_base signal.
	(on_url_requested): If the base_url is set, prepend it to the data
	url (we don't want to do this for cid urls or part urls tho).
	(mail_display_init): Initialize md->base_url to NULL.
	(mail_display_destroy): Free the base_url.
	(mail_display_initialize_gtkhtml): Connect to the set_base signal.
	(on_link_clicked): If the base_url is set, prepend it to the url
	string passed to us from gtkhtml.

svn path=/trunk/; revision=15329
2002-01-15 21:38:50 +00:00
Jeffrey Stedfast 22604df27b Don't remove any X-Evolution* headers here, the composer already knows to
2002-01-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (do_edit_messages): Don't remove any
	X-Evolution* headers here, the composer already knows to ignore
	these. Besides, it needs to know the X-Evolution-Format header.

svn path=/trunk/; revision=15287
2002-01-10 21:25:57 +00:00
Jeffrey Stedfast 1b28e0bb92 Do proper refcounting on the draft folder.
2002-01-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_save_draft_cb): Do proper refcounting
	on the draft folder.

svn path=/trunk/; revision=15268
2002-01-09 02:16:50 +00:00
Jeffrey Stedfast 956b6f95d0 When performing a wraparound, check to see if the first (or last depending
2002-01-08  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c (message_list_select): When performing a
	wraparound, check to see if the first (or last depending on
	direction) message fits the selection criteria before telling
	etable to find the next/previous matching node.

	* mail-account-gui.c (mail_account_gui_new): When connecting to
	the transport username changed event, pass the gui->transport not
	the gui->source.

svn path=/trunk/; revision=15267
2002-01-08 22:47:21 +00:00
Jeffrey Stedfast 9d39da64dc When connecting to the transport username changed event, pass the
2002-01-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_new): When connecting to
	the transport username changed event, pass the gui->transport not
	the gui->source.

svn path=/trunk/; revision=15266
2002-01-08 20:32:54 +00:00
Iain Holmes a4db79a6d6 Make the mbox importer check for Mozilla status headers and act on them.
svn path=/trunk/; revision=15265
2002-01-08 16:42:55 +00:00
Jeffrey Stedfast 1cca6b2433 Renamed. (mail_config_get_new_mail_notify_sound_file): Renamed.
2002-01-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (mail_config_set_new_mail_notify_sound_file): Renamed.
	(mail_config_get_new_mail_notify_sound_file): Renamed.

	* mail-accounts.c (notify_radio_toggled): Replace EXEC with
	PLAY_SOUND.
	(construct): renamed the exec_command stuff to play_sound.

	* main.c (main): Init and shutdown gnome_sound.

	* mail-ops.c (fetch_mail_fetch): Don't do any new-mail
	notification here.
	(filter_folder_filter): call camel_filter_driver_flush.

	* mail-session.c (main_get_filter_driver): Set the filter-driver
	exec_func here instead.

	* mail-ops.c (mail_fetch_mail): Don't set the filter-driver
	exec_func here.

svn path=/trunk/; revision=15263
2002-01-08 00:48:54 +00:00
Jeffrey Stedfast b5ca749f36 Add an Organization header.
2002-01-03  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Add an Organization
	header.

svn path=/trunk/; revision=15242
2002-01-03 23:54:28 +00:00
Jeffrey Stedfast 2ad2e53049 Simplified. Also no longer needs an "ignore_addr" argument as far as I can
2002-01-02  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (list_add_addresses): Simplified. Also no
	longer needs an "ignore_addr" argument as far as I can tell so
	that has been removed.
	(mail_generate_reply): Don't pass an ignore_addr argument to
	list_add_addresses and also change to use g_strcase_hash and
	g_strcase_equal since addresses are not case snesitive
	(mostly). Also, Reply-To can contain multiple addresses, so handle
	this case too.

svn path=/trunk/; revision=15231
2002-01-03 00:03:05 +00:00
JP Rosevear 178c7af85f remove e_gnome_dialog util functions and use e-util ones instead
2002-01-02  JP Rosevear  <jpr@ximian.com>

	* mail-callbacks.c: remove e_gnome_dialog util functions and use
	e-util ones instead

2002-01-02  JP Rosevear  <jpr@ximian.com>

	* e-dialog-utils.c (e_gnome_dialog_set_parent): util function
	moved from mail-callbacks, also destroys the dialog if the parent
	is destroyed
	(e_gnome_warning_dialog_parented): similarly
	(e_gnome_ok_cancel_dialog_parented): ditto

	* e-dialog-utils.h: new protos

svn path=/trunk/; revision=15225
2002-01-02 19:11:03 +00:00
Jeffrey Stedfast 5df4d0a321 The idea here is that if we consistantly name the movemail file between
2001-12-21  Jeffrey Stedfast  <fejj@ximian.com>

	The idea here is that if we consistantly name the movemail file
	between Send&Receive sessions that if the user cancells the
	"download" of a mbox spool that the next Send&Receive will not
	"lose" mail that didn't finish the previous session. Fixes bug
	#17759. Well, mostly. If you have 200 messages and cancel after
	the first 100, say, then the next time you hit Send&Receive, it
	will start over from 1 so you'll end up duplicating the first 100
	messages, but at least you won't "lose" mail.

	* mail-tools.c (mail_tool_get_local_movemail_path): Now a static
	internal function, takes a char *uri argument and no longer
	generates movemail.%d filenames... they are now based on the uri
	provided.
	(mail_tool_do_movemail): Pass along the source_uri.

svn path=/trunk/; revision=15224
2002-01-02 18:04:46 +00:00