Commit Graph

412 Commits

Author SHA1 Message Date
f37b0a1ab7 ...And a whole bunch more build fixes.
2002-12-17  Jeffrey Stedfast  <fejj@ximian.com>

	...And a whole bunch more build fixes.

	* mail-vfolder.c (mail_vfolder_delete_uri): Don't use
	g_string_sprintfa() anymore since it is apparently deprecated.

	* mail-session.c (main_get_filter_driver): Don't use
	g_string_sprintfa() anymore since it is apparently deprecated.

	* mail-ops.c (build_from): Don't use g_string_sprintfa() anymore
	since it is apparently deprecated.

	* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Don't use
	g_string_sprintfa() anymore since it is apparently deprecated.

	* mail-autofilter.c: Don't use g_string_sprintfa() anymore since
	it is apparently deprecated.

	* folder-browser.c: Don't use g_string_sprintfa() anymore since it
	is apparently deprecated.

	* mail-search.c (mail_search_set_subject): Remove the unnecessary
	g_strdup()'age as well as fix a possible buffer overrun.

	* mail-local.c (mail_local_folder_construct): Use
	g_path_get_basename().

	* mail-config-druid.c (make_account): Don't use e_utf8_*
	functions.

svn path=/trunk/; revision=19152
2002-12-17 20:38:25 +00:00
5a5eec6a63 Make sure the folder-browser is not NULL or we'll crash.
2002-12-13  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (check_send_configuration): Make sure the
	folder-browser is not NULL or we'll crash.

svn path=/trunk/; revision=19115
2002-12-13 22:51:35 +00:00
25a94bfe0c Get rid of unneeded CamelObject casts. (user_message_response): Don't
2002-12-13  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c: Get rid of unneeded CamelObject casts.
	(user_message_response): Don't unref the dialog object after we've
	destroyed it.

	* mail-display.c (write_data_to_file): Don't unref the dialog
	object after we've destroyed it.

	* mail-callbacks.c: Same here.

	* component-factory.c: Here too.

	* message-tag-editor.c: Added MESSAGE_TAG_EDITOR_GET_CLASS macros.

svn path=/trunk/; revision=19112
2002-12-13 18:52:35 +00:00
0fe83413d0 Use the same logic as mail_generate_reply(). Fixes bug #34882
2002-12-03  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (guess_me_from_accounts): Use the same logic as
	mail_generate_reply(). Fixes bug #34882

	Fixes bug #34315

	* component-factory.c (message_rfc822_dnd): Return TRUE if we
	successfully handled all messages in the mbox stream, or FALSE
	otherwise.
	(destination_folder_handle_drop): For TEXT_URI_LIST, use the
	retval from message_rfc822_dnd() rather than relying on an
	exception, because one will not always necessarily be set. For
	MESSAGE_RFC822, also use the retval from message_rfc822_dnd().

svn path=/trunk/; revision=18995
2002-12-03 17:42:44 +00:00
df22fc1623 gnome_pixmap -> gtkimage. (construct): gtk_clist -> gtk_tree_view, setup
2002-11-27  Not Zed  <NotZed@Ximian.com>

        * message-tag-followup.c (construct): gnome_pixmap -> gtkimage.
        (construct): gtk_clist -> gtk_tree_view, setup columns.  They dont
        size well :-/
        (message_tag_followup_append_message): Append using model, remove
        clist stuff.
        (construct): Show date edit (glade bugs?)

        * folder-browser.c (folder_browser_class_init): gtk_marshal -> g_cclosure_marshal
        (setup_popup_icons): gnome_pixmap -> gtk_image.
        (on_right_click): gtk_pixmap -> gtk_image.

        * mail-accounts.c (account_delete_clicked): removed #if 0'd out code.

        * mail-send-recv.c (receive_done): remove FIXME and extra unref.

        * mail-session.c (request_password): Removed #if 0'd out stuff.

        * mail-vfolder.c (new_rule_clicked): proper cast for g_object_get_data.

        * mail-local.c (reconfigure_response): cast for g_object_get_data.

        * mail-account-editor.c (construct): GNOME_DIALOG -> GTK_DIALOG.

        * *.[ch]: re-ran fix.sh for e_notice change

        * mail-callbacks.c (save_msg_ok): g_object_get_data +
        gtk_object_remove_no_notify -> g_object_steal_data.
        (find_socket): gtk_container_children ->
        gtk_container_get_children
        (edit_msg): gnome_*_dialog -> gtk_message_dialog.
        (resent_msg): "
        (search_msg): "
        (confirm_goto_next_folder): gtkmessagedialogised (even if not
        used).
        (confirm_expunge): gtkmessagedialogised
        (filter_edit): "
        (do_mail_print): e_notice -> gtk_message_dialog.
        (are_you_sure): removed e_gnome_ok_cancel_dialog crap, replaced
        with a gtk dialog.
        (are_you_sure): gtkmessagedialogised.
        (edit_msg_internal): Dont free uids array, are_you_sure() free's
        it.
        (resend_msg): Same.
        (check_send_configuration): Use e_notice for stuff.  Sigh, here we
        go again ...!
        (e_question): A utility function to ask a question, potentially
        with 'dont ask again' as well.
        (configure_mail): use e_question to save code.  Here we go again,
        again ...
        (ask_confirm_for_unwanted_html_mail): "
        (ask_confirm_for_only_bcc): "
        (ask_confirm_for_only_bcc): "
        (composer_get_message): Use e_notice.
        (composer_save_draft_cb): Use e_question
        (edit_msg): use e_notice, & change to an ERROR.
        (resend_msg): same.
        (save_msg_ok): Properly initialise ret to OK, and use e_question,
        and use access() to determine existance/write access rather than
        stat, display an error if we can't write to a file that exists,
        and print the filename in all dialogues.
        (confirm_goto_next_folder): Use e_question.
        (confirm_expunge): use e_question.
        (filter_edit): Use e_notice.
        (do_mail_print): use e_notice.

svn path=/trunk/; revision=18974
2002-12-02 03:16:54 +00:00
cbdf3bccf6 Duh idiot, "un-fixed" the memleak i added.
2002-11-26  Not Zed  <NotZed@Ximian.com>

        * message-list.c (get_normalised_string): Duh idiot, "un-fixed"
        the memleak i added.

        * mail-callbacks.c (composer_get_message): Set parent window in
        message dialogue & DESTROY_WITH_PARENT flag.
        (composer_save_draft_cb):
        (configure_mail):
        (check_send_configuration): Add DESTROY_WITH_PARENT flag to
        gtk_message_dialog's
        (local_configure_done): remove some unecessary/wrong casts.
        (empty_trash_expunged_cb): "
        (do_mail_print): use gtk_window_set_transient_for instead of
        e_dialog_set_parent.

svn path=/trunk/; revision=18923
2002-11-26 11:28:29 +00:00
989e199638 gtk_widget_set_parent_window -> gtk_window_set_transient_for.
2002-11-26  Not Zed  <NotZed@Ximian.com>

        * mail-account-editor.c (mail_account_editor_new):
        gtk_widget_set_parent_window -> gtk_window_set_transient_for.

        * mail-callbacks.c (composer_send_queued_cb): dont unref composer.

        * message-browser.c (message_browser_destroy): moved back from
        finalise.

2002-11-25  Not Zed  <NotZed@Ximian.com>

        * message-list.c (message_list_dispose): move saving tree state
        here.
        (message_list_finalise): And take it from here.

        * mail-display.c (mail_display_destroy): @#$@# gtk.  changed this
        around a bit.
        (mail_display_init): Fix prototype, its a gobject.
        (mail_display_init): ref/sink the invisible gtkobject.

svn path=/trunk/; revision=18919
2002-11-26 06:43:31 +00:00
3324e67a17 removed e_messagebox, and use gtk_message_dialog directly.
2002-11-22  Not Zed  <NotZed@Ximian.com>

        * mail-callbacks.c (ask_confirm_for_unwanted_html_mail): removed
        e_messagebox, and use gtk_message_dialog directly.
        (ask_confirm_for_empty_subject): and here.
        (ask_confirm_for_only_bcc): And here too.
        (msgbox_destroy_cb): Removed, since no longer needed.

svn path=/trunk/; revision=18905
2002-11-25 00:31:50 +00:00
e3713d58cd fix warning message, outlook->mbox.
2002-11-19  Not Zed  <NotZed@Ximian.com>

        * importers/evolution-mbox-importer.c (mail_importer_module_init):
        fix warning message, outlook->mbox.

        * importers/Makefile.am: fix serverdir to point to
        $libdir/bonobo/servers.

        * mail-callbacks.c (addrbook_sender): add type to
        bonobo_widget_set_property.

        * mail-vfolder.c (vfolder_editor_response): dont unref after destroy.

        * mail-session.c (pass_response): dont unref aftrer destroy.

        * mail-local.c (reconfigure_response): dont unref after destroy.

        * mail-display.c (launch_cb): dont unref after destroy.
        (launch_cb): "
        (drag_data_get_cb): "
        (html_button_press_event): add type to bonobo_widget::set_property

        * mail-config.c (mail_config_check_service): dont unref after
        destroy.

        * component-factory.c (send_receive_cb): dont unref after destroy.
        (request_quit): "

        * mail-signature-editor.c (mail_signature_editor): Use version 3.0
        of gtkhtml editor interfaces.
        (do_exit): dont unref after destroy.
        (format_html_cb): Add type to bonobo_widget::set_property.

svn path=/trunk/; revision=18837
2002-11-19 05:03:29 +00:00
4ff0a43cd4 Use g_object_weak_ref rather than connecting to destroy.
2002-11-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (account_edit_clicked): Use g_object_weak_ref
	rather than connecting to destroy.
	(account_add_clicked): Same.

	* mail-callbacks.c (addrbook_sender): Make this use
	g_object_weak_notify also.
	(subscribe_dialog_destroy): Add NULL guards here since I think we
	really do want to connect to the "destroy" signal in the function
	that connects us to that signal.

	* mail-config-factory.c (config_control_factory_cb): Same.

	* mail-display.c (save_part): Here too.
	(make_popup_window): And here.

	* mail-send-recv.c (build_dialogue): Same here.

	* mail-summary.c (create_summary_view): Use g_object_weak_notify
	instead of connecting to the destroy signal.

svn path=/trunk/; revision=18764
2002-11-14 23:26:55 +00:00
bc9886539a Do not #include <libgnome/gnome-defs.h>. Likewise. Likewise. Likewise.
* mail-format.c: Do not #include <libgnome/gnome-defs.h>.
* mail-importer.c: Likewise.
* mail-mt.c: Likewise.
* mail-ops.c: Likewise.
* mail-search-dialogue.c: Likewise.
* mail-session.c: Likewise.
* mail-vfolder.c: Likewise.
* message-tag-followup.c: Likewise.
* main.c: Likewise, and <libgnomeui/gnome-init.h>.

* mail-callbacks.c: Do not #include <libgnome/gnome-paper.h>.
(do_mail_print): Remove the GnomePaper local variable.

svn path=/trunk/; revision=18739
2002-11-13 16:46:52 +00:00
02237b6f44 destroy->weak ref. (owner_set_cb): shell client changes.
2002-11-13  Not Zed  <NotZed@Ximian.com>

        * component-factory.c (owner_set_cb): destroy->weak ref.
        (owner_set_cb): shell client changes.

        * mail-signature-editor.c (mail_signature_editor): bonobo api changes.

        * mail-local.c (save_metainfo): go back to using xmlSaveFile.

        * Makefile.am: Removed libevolution-importer from mail.

svn path=/trunk/; revision=18736
2002-11-13 09:53:36 +00:00
9e4f25d532 Added to cvs. Currently contains no configurable stuff, but maybe it will
2002-11-13  Not Zed  <NotZed@Ximian.com>

        * GNOME_Evolution_Mail.server.in.in: Added to cvs.  Currently
        contains no configurable stuff, but maybe it will one day.

        * Makefile.am (server_DATA): change oaf stuff to server stuff for
        bonobo activation.

        * mail-preferences.c (mail_preferences_apply): handle const entry text.

        * mail-composer-prefs.c (url_requested): Fixed typo.
        (mail_composer_prefs_construct): gnomepixmap->gtkimage.

        * mail-callbacks.c (configure_mail): destroy dialogue before dealing
        with response.
        (mail_generate_reply): Fix a typo.
        (popup_listener_cb): fix prototype.
        (tag_editor_response): Handle gtk dialog response.
        (flag_for_followup): Change gnome dialog to gtk dialog stuff.
        (tag_editor_destroy_cb):
        (tag_editor_cancel):
        (tag_editor_ok): Removed, handled in _response().
        (filter_editor_response): renamed from _clicked, handle gtk
        dialogue signal.
        (filter_editor_destroy): Removed.
        (footer_info_new): gnome font api changes.
        (do_mail_print): port to gnome print 2.

        * mail-autofilter.c (mail_filter_delete_uri): message_dialog uses
        a specific button enum, not the stock ones.

        * mail-accounts.c (mail_accounts_tab_get_type): gobjectify.
        (account_delete_clicked): gdkdialogise.

        * mail-account-gui.c (mail_account_gui_setup): Hack around font
        metric determination code.

        * mail-account-editor.c (mail_account_editor_get_type):
        gobjectise.
        (mail_account_editor_new): ""

        * folder-info.c (evolution_folder_info_notify_ready): use pbclient
        interface.

        * folder-browser-factory.c (control_destroy_cb): fix a typo.
        (folder_browser_factory_new_control): More typos.

        * folder-browser.c (on_right_click): cast around const warning.
        (context_menu_position_func): fix for api change.

        * e-searching-tokenizer.c (e_searching_tokenizer_finalise):
        Changed from destroy since it only frees memory.
        (e_searching_tokenizer_get_type): glibify.

        * component-factory.c (request_quit): gtkdialogise.
        (send_receive_cb): "
        (create_component): gdk_pixbuf api.
        (component_factory_init): bonobo activation stuff.
        (warning_response): renamed from warning_clicked.
        (owner_set_cb): gtkdialogise.

svn path=/trunk/; revision=18731
2002-11-13 04:40:07 +00:00
016bf0dc64 Half way ported. I'll finish the rest later.
2002-11-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c: Half way ported. I'll finish the rest later.

	* mail-autofilter.c: Ported.

svn path=/trunk/; revision=18716
2002-11-12 00:30:39 +00:00
d45b7b4852 pass fb->uri to the folder selection dialog so the current folder is
2002-10-22  Mike Kestner  <mkestner@ximian.com>

	* mail-callbacks.c (transfer_msg): pass fb->uri to the folder
	selection dialog so the current folder is selected on display.
	"fixes" 15966.

svn path=/trunk/; revision=18420
2002-10-23 19:20:39 +00:00
00eecfd48b If mode == REPLY_LIST and the mlist is "" (we only checked NULL before),
2002-10-16  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mail_generate_reply): If mode == REPLY_LIST
	and the mlist is "" (we only checked NULL before), change the mode
	to REPLY_ALL so that we don't accidently reply to the user's
	address. Fixes bug #28735

svn path=/trunk/; revision=18381
2002-10-17 02:12:41 +00:00
8ed14acbc8 If we are trying to reply to a list, first check that we can by getting
2002-10-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mail_generate_reply): If we are trying to
	reply to a list, first check that we can by getting the mlist
	token (makes it easier to fix the mem leak). If not, then change
	the mode to REPLY_ALL. If we can reply to list, the make sure we
	free the CamelMessageInfo when we're done so we don't leak.

svn path=/trunk/; revision=18376
2002-10-16 16:17:10 +00:00
27c2e27920 If we are trying to reply to a list, first check that we can by getting
2002-10-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mail_generate_reply): If we are trying to
	reply to a list, first check that we can by getting the mlist
	token. If not, then change the mode to REPLY_ALL. If we can reply
	to list, the make sure we free the CamelMessageInfo when we're
	done so we don't leak. Also added a check to see if the mlist
	token could be found in the Reply-To ehader (since some mailing
	lists override the Reply-To with their address).

svn path=/trunk/; revision=18375
2002-10-16 16:12:57 +00:00
e23ff89a60 Don't default 'me' to the source account until after we've tried to detect
2002-10-02  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mail_generate_reply): Don't default 'me' to
	the source account until after we've tried to detect the account
	based on recipients. When adding accounts to the account hash, if
	any accounts have identical email addresses, the ones that are
	enabled take precedence over ones that aren't. This will hopefully
	make everyone happy with reply account picking. Fixes bug #31693.

svn path=/trunk/; revision=18326
2002-10-04 18:12:20 +00:00
43dfa91e96 It's a grand old string-review! Nitpicky and minor changes; details in the appropriate ChangeLog files.
svn path=/trunk/; revision=18268
2002-09-30 20:11:15 +00:00
faf4db97fa add "mail/public". Leave "vtrash" as it is rather than renaming it to
* 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
2002-09-25 21:41:53 +00:00
3ca27fca1b Unset the changed bit on the composer and also drop any undo operations
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
2002-09-19 20:49:16 +00:00
fd67fd43ea Handle file uri's too.
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
2002-09-11 04:27:23 +00:00
8269bb5271 Make sure that fb->message_list is non-NULL before checking
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
2002-09-09 20:22:11 +00:00
bf86bdf817 All this snot is to fix bug #29930. What I think was happening was that
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
2002-09-05 21:36:54 +00:00
8b14d4031c Made sure account->id->address is not NULL before adding it to the hash
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
2002-09-04 19:01:27 +00:00
b1971b08cd Logic change for when untoggling a message from deleted-dom.
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
2002-08-26 21:19:07 +00:00
1f651552bc be sure that widget is realized so that e_utf8_from_gtk_string works
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
2002-08-20 22:37:30 +00:00
1cb3f6986b Change this into a GnomeApp so we get a statusbar and the dialog is a
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
2002-08-16 19:28:54 +00:00
818312e892 Removed an unused variable.
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
2002-08-13 20:10:28 +00:00
f3e71a93f5 Use mail_get_messages() instead of mail_get_message().
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
2002-08-12 20:14:16 +00:00
ed7a3070c6 Use mail_get_messages() instead of mail_get_message().
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
2002-08-12 19:36:44 +00:00
9dc535310a If the ccd is NULL, create a new ccd, disconnect the old signal handlers,
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
2002-08-09 21:59:05 +00:00
d6c5e8db0d Handle the fact that ccd may be NULL (if the composer was created via
* 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
2002-08-09 18:54:45 +00:00
d5d4d529b2 oops, forgot to save before I commit'd apparently
svn path=/trunk/; revision=17742
2002-08-08 05:56:42 +00:00
1e5b5f8b7e Don't check permanent_flags for the CAMEL_MESSAGE_DELETED bit here, if we
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
2002-08-08 05:40:00 +00:00
a3648b5912 Delete the Draft item that this was edited from if that is the case as
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
2002-08-07 23:39:57 +00:00
ce3ae88564 If we are not in interactive mode, don't display error dialogs.
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
2002-08-05 21:20:59 +00:00
a8a50b5085 Updated to call post_to_url if the id is "post".
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
2002-08-05 18:33:04 +00:00
becfb9e15d Only reply to all or reply to list, set CAMEL_MESSAGE_ANSWERED_ALL too.
* mail-callbacks.c (mail_reply): Only reply to all or reply to
	list, set CAMEL_MESSAGE_ANSWERED_ALL too.

svn path=/trunk/; revision=17695
2002-08-05 13:38:19 +00:00
405ef3bcf3 Updated to use the new Follow-Up tags. Instead of storing a string
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
2002-08-02 22:36:11 +00:00
70c9d1ce6a Removed folder-browser-window from the build.
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
2002-08-01 03:54:13 +00:00
66642cda02 Make sure that the url isn't an empty string and also make sure to free it
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
2002-07-25 19:23:20 +00:00
0d27a62785 Use mail_tools_folder_to_url().
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
2002-07-25 18:21:15 +00:00
65f894d915 Check for whether current_message is NULL as well as preview_shown (if we
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
2002-07-24 21:31:50 +00:00
16750936d9 Try including gtkhtml/gtkhtml.h instead. Test really is a 4 letter word
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
2002-07-19 03:22:24 +00:00
71fb81afc7 Removed bogus static pre-declaration.
* 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
2002-07-18 18:13:34 +00:00
7a069d4e58 use "saved" gtkhtml command
2002-07-17  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (save_draft_done): use "saved" gtkhtml command

svn path=/trunk/; revision=17494
2002-07-17 18:15:52 +00:00
bbe7410889 Pass 'info' into mail_append_mail(), seems I created the info but forgot
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
2002-07-15 21:13:52 +00:00
2249eb203e use new save_header_state flag
2002-07-15  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c: use new save_header_state flag

svn path=/trunk/; revision=17467
2002-07-15 20:45:06 +00:00