Commit Graph

392 Commits

Author SHA1 Message Date
95d963dec5 ** This and jeffs patch for #43862.
2003-06-02  Not Zed  <NotZed@Ximian.com>

	** This and jeffs patch for #43862.

	* mail-folder-cache.c (store_online_cb): If the store is still
	around, then flow on to a get folderinfo update, otherwise just
	clear up.

	* mail-ops.c (mail_store_set_offline): return the msgid of this so
	it can be cancelled.

2003-05-30  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-folder-cache.c (mail_note_store): If the session is
	'online' and we are noting a CamelDiscoStore, make sure that it is
	changed to online status and call mail_get_folderinfo().

svn path=/trunk/; revision=21369
2003-06-02 17:50:26 +00:00
6784da1b28 New async "empty trash" op.
* mail-ops.c (mail_empty_trash): New async "empty trash" op.

	* mail-callbacks.c (empty_trash): Use it rather than requiring
	that mail_tool_get_vtrash() work without blocking. #43091

svn path=/trunk/; revision=21243
2003-05-19 12:44:32 +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
8bfabb5cf2 revert a commit that I didn't mean to do
svn path=/trunk/; revision=20267
2003-03-12 19:07:27 +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
0701addc19 Use g_signal_emit() rather than gtk_signal_emit(). (build_flat): Same
2003-02-10  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c (build_tree): Use g_signal_emit() rather than
	gtk_signal_emit().
	(build_flat): Same here.

	* mail-signature-editor.c: #include <string.h>

	* mail-vfolder.c: #include <string.h>

	* mail-session.c: #include <string.h>

	* mail-search.c: #include <string.h>

	* mail-mt.c: #include <string.h>

	* mail-ops.c (save_part_save): Use strcasecmp() instead of
	g_strcasecmp().

	* mail-local.c: #include <string.h>
	(reconfigure_folder_reconfigured): Use a GtkDialog instead of
	gnome_error_dialog().

	* mail-format.c (find_preferred_alternative): Use g_ascii_strdown
	since g_strdown is deprecated.
	(fake_mime_part_from_data): Removed, no longer used it seems.
	(destroy_part): Also removed.

	* mail-display.c (make_popup_window): Replace call to
	gtk_window_set_polociy() with gtk_window_set_resizable() instead.
	(popup_size_allocate_cb): Use gtk_window_set_position() with
	GTK_WIN_POS_MOUSE instead of calculating the position to put it
	in.

svn path=/trunk/; revision=19878
2003-02-10 19:50:55 +00:00
e0053bce8e Updated. (request_password): Same.
2003-01-17  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c (do_get_pass): Updated.
	(request_password): Same.

	* mail-send-recv.c (mail_send): Fixed to use EAccountService.

	* mail-config-druid.c (make_account): Updated to use EAccount and
	friends.

	* mail-account-gui.c (service_check_supported): Updated to use
	EAccountService.
	(mail_account_gui_new): Ref the account passed in and also update
	to use EAccount objects.
	(save_service): Updated to use an EAccountService.
	(add_new_store): Updated to use an EAccount.
	(mail_account_gui_save): Updated to use EAccounts.
	(setup_signatures): Updated because the new account->id->def_sig
	is now an int and not a structure pointer.

	* mail-account-editor.c (construct): Updated.
	(mail_account_editor_new): Now takes an EAccount object as an
	argument instead of a MailConfigAccount.

	* mail-crypto.c (mail_crypto_get_pgp_cipher_context): Updated to
	use EAccounts.

	* subscribe-dialog.c (populate_store_foreach): Removed.
	(populate_store_list): Can't use populate_store_foreach here
	because of the change to EAccountList so do it manually.

	* mail-vfolder.c (uri_is_ignore): Rewrote to use EAccountList and
	EIterator and all that fun.

	* mail-send-recv.c (build_dialogue): Updated to use EAccountList
	and EAccount object stuff. *ugh*
	(mail_send_receive): Here too.
	(mail_autoreceive_setup): Same.

	* mail-callbacks.c (check_send_configuration): Updated.
	(composer_get_message): Updated.
	(compose_msg): "
	(list_add_addresses): "
	(guess_me): "
	(guess_me_from_accounts): Same.
	(forward_get_composer): Here too.
	(mail_generate_reply): Same.
	(redirect_get_composer): "
	(empty_trash): And finally here.

	* mail-accounts.c (account_edit_clicked): Updated.
	(account_delete_clicked): Same.
	(account_default_clicked): Here too.
	(account_able_clicked): "
	(account_cursor_change): "
	(mail_accounts_load): Again here.

	* folder-browser.c (folder_browser_is_drafts): Updated to use
	EAccountList and EAccount stuff.
	(folder_browser_is_sent): Same.

	* component-factory.c (mail_load_storages): Updated to use
	EAccount and EAccountList stuff.
	(owner_set_cb): Same.
	(send_receive_cb): Here too.

	* mail-config.c: Rewritten to use EAccount and EAccountList
	objects.

svn path=/trunk/; revision=19509
2003-01-17 23:31:27 +00:00
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
a4a43fe1fc Use camel_text_to_html() instead of e_text_to_html(). (mail_text_write):
2002-12-16  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (mail_error_printf): Use camel_text_to_html()
	instead of e_text_to_html().
	(mail_text_write): Write the content directly to gtkhtml through
	an html stream filter.

	* mail-format.c (attachment_header): Use camel_text_to_html()
	instead of e_text_to_html().
	(write_text_header): Same.
	(write_address): Here too.
	(mail_get_message_rfc822): And here.
	(mail_get_message_body): And finally here.

svn path=/trunk/; revision=19133
2002-12-16 20:11:36 +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
f9804e1193 Commented out stuff that doesn't build yet. Also fixed idl build rule.
2002-11-13  Not Zed  <NotZed@Ximian.com>

	* Makefile.am: Commented out stuff that doesn't build yet.  Also
	fixed idl build rule.  importers still not built.

	* main.c (main): bonobactivationise.  remove push visual/colormap.
	(main): no longer activate activation, let bonobo_init do it.

	* mail-signature-editor.c (menu_help): Change help api.

	* mail-session.c (user_message_destroy_noreply): removed.  Not
	used?

	* mail-local.c (load_metainfo): xml root->children.

	* mail-format.c (g_string_append_len): Removed, it exists now.

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

	* subscribe-dialog.c: gnome2ised, use gtkdialog.
	(subscribe_get_global_extras): use a weak ref rather than destroy signal.

	* message-tag-followup.c: gnome2ised.

	* message-tag-editor.c: gnome2ised & converted to gtkdialog.

	* message-list.c: gnome2ised.
	(message_list_finalise): From destroy method.  maybe should be
	destroy still.

	* message-browser.c: port to gnome2
	(message_browser_finalise): renamed from destroy method.

	* mail-stream-gtkhtml.c: removed redundant
	camel_class_get_global_classfuncs() call.

	* mail-signature-editor.c: gtkdialogised, & bonobo api changes.


	* mail-search-dialogue.c: gtkdialogised.

	* mail-folder-cache.c: cleaned up camel ref/hook casts.

	* mail-composer-prefs.c (mail_composer_prefs_get_type): convert to
	gtype.

	* mail-font-prefs.c (mail_font_prefs_destroy): from finalise.

	* mail-config.c: s/bonobo_config/e_config_listener/
	Added /apps/Evolution prefix to the evolution keys.
	Changed to use e_config_listener, etc.
	(mail_config_init): remove bonobo_config stuff.
	(mail_config_check_service): gtk dialogise.
	(check_response): from check_cancelled.

	* mail-config-druid.c (mail_config_druid_destroy): renamed from
	_finalize, turned into destroy handler.
	(construct): set type to toplevel, GTK_WINDOW_DIALOG no longer exists.

	* mail-config-factory.c (mail_config_register_factory): bonobo api
	changes.

	* mail-crypto.c (mail_crypto_get_pgp_cipher_context): cleaned up
	unref casts.

	* mail-display.c (write_data_to_file): gnome->gtkdialog.
	(on_link_clicked): use ascii_str*cmp on url.
	(save_part): g_path stuff.
	(launch_cb): gtk dialog.
	(pixmap_press): de-oafify.
	(pixbuf_for_mime_type): gnome-vfs api changes.
	(do_attachment_header): Change the pixmap to a gtkimage.
	(do_signature): "
	(pixbuf_gen_idle): "
	(do_attachment_header): ascii_str*cmp
	(do_attachment_header): gnome pixmap->gtkimage.
	(mail_display_destroy): protect against gtk mentalness.
	(html_button_press_event): ascii_str*cmp
	(drag_data_get_cb): added comment for translators of filename.

	* mail-format.c (component_supports): de-oafise.
	(is_anonymous): ascii_strncmp
	(attachment_header): remove utf8<>locale stuff, and gnomevfs api
	changes.
	(format_mime_part): fix g_strdown call.
	(write_field_row_begin): kill utf8->gtk stuff.
	(write_address): "
	(default_header_index): ascii_strcasecmp
	(handle_text_plain): "
	(handle_text_enriched): "
	(handle_multipart_encrypted): remove utf/gtk stuff.
	(handle_message_external_body): ascii_str*cmp

	* mail-identify.c (mail_identify_mime_part):
	(identify_by_magic): gnome vfs api changes.

	* mail-importer.c: Converted.

	* mail-local.c (load_metainfo): xml childs -> children.
	(mls_get_folder): g_strerror.
	(mls_delete_folder): g_strerror.
	(reconfigure_got_folder): Gnome->GtkDialog
	(reconfigure_response): from reconfigure_clicked.

	* mail-mt.c (mail_msg_check_error): gnome -> gtk dialog
	(error_response): renmae from error_gone.  destroy widget on any
	response.

	* mail-offline-handler.c (impl_finalise): renamed from
	impl_destroy since thats what it should be anyway.

	* mail-ops.c: removed utf8 widget conversion & camel_object_un/ref
	casts.

	* mail-preferences.c (mail_preferences_get_type): glib2'ised.

	* mail-search.c (mail_search_finalise): renmaed from destroy &
	properly chain.
	(mail_search_get_type): glib2 & make gtkdialog parent.
	(entry_run_search): run search when entry activated.  not sure if
	gtkdialog has anohter way to do this on an arbitrary widget.

	* mail-send-recv.c (dialogue_response): renamed from clicked.  Use
	gtkdialog.

	* mail-session.c (request_password_deleted): removed, redundant.
	(pass_response): rename from pass_got, changed for gtkdialog.
	(user_message_destroy): Removed, redundant.
	(user_message_response): Renamed from user_message_clicked.

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

	* mail-stream-gtkhtml.c (mail_stream_gtkhtml_class_init): dont use
	get_global_classfuncs, just get the type

	* mail-tools.c: converted gnome2 api's.

	* mail-vfolder.c (vfolder_editor_response): clicked->response.
	(vfolder_editor_destroy): Removed.
	(vfolder_edit): gtk dialog api
	(edit_rule_response): clicked->response.
	(vfolder_edit_rule): gnomedialog->gtkdialog.
	(vfolder_gui_add_rule): "
	(new_rule_clicked): clicked->response

svn path=/trunk/; revision=18723
2002-11-12 14:59:35 +00:00
944861b198 Use 0666 as the create mode so that the user's umask is used to it's
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
2002-09-23 21:10:28 +00:00
190d2b0b7f Use e_strftime_fix_am_pm here which fixes locale issues as well as working
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
2002-09-17 20:20:32 +00:00
542afa22f7 fixed a comment
svn path=/trunk/; revision=18090
2002-09-17 19:23:06 +00:00
4fd7dd89f3 Enforce the mailer policy that deleted messages are marked as seen. Fixes
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
2002-08-26 19:04:23 +00:00
5c45e184a4 Check driver != NULL, if folder_filter freed it already.
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
2002-08-06 03:55:12 +00:00
abafd9de4f Unref the driver before returning to main thread, so any closing
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
2002-08-06 02:45:07 +00:00
435f2e3e58 No real need for this to be an async function sync we are going to call
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
2002-07-26 20:44:03 +00:00
6ea2a4da8b Update to take argc and argv arguments since this is the new definition
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
2002-07-25 07:46:06 +00:00
e78a5a2635 cast!
svn path=/trunk/; revision=17577
2002-07-24 20:23:38 +00:00
86d2d39580 Call camel_session_get_service instead of camel_session_get_store, as
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
2002-07-24 19:37:57 +00:00
2131710f75 Commit a fix that I thought I committed a while ago:
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
2002-07-24 06:18:36 +00:00
a2ab50c057 Don't ever use the mail-display's current_message, this can cause
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
2002-07-08 22:59:23 +00:00
a293a2aa21 No longer need to pass a postpone_cb function into the composer
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
2002-07-05 19:38:11 +00:00
17bd1b5a45 Prompt the user to see if he really wants to quit when there are queued
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
2002-06-03 21:54:54 +00:00
be2d7023bf Implement prep_offline for an individual folder. (set_offline_do): Only
2002-05-15  Not Zed  <NotZed@Ximian.com>

        * mail-ops.c (prep_offline_do):
        (prep_offline_done):
        (prep_offline_free):
        (mail_prep_offline): Implement prep_offline for an individual
        folder.
        (set_offline_do): Only call disco_store_set_status or disconnect
        for the store, dont do any offline prep stuff.

        * mail-offline-handler.c: Applied patch from Ettore to hook in
        extra offline interfaces.
        (impl_destroy): Dont free listener here anymore, its removed, but
        free sync table.
        (mail_offline_handler_init): Same for setup.
        (impl_syncFolder): Implement.
        (sync_done): handles finalising synchronisation of 1 folder.
        (sync_status): progress reporting, camel side.
        (sync_timeout): progress reporting, gmainloop side.
        (impl_cancelSyncFolder): Implement.
        (impl_goOffline, storage_go_offline, went_offline): Dont copy the
        listener to our struct - its an argument, not a member, so give
        each thread its own copy.

svn path=/trunk/; revision=16799
2002-05-15 12:39:17 +00:00
b05542ec2d Update for camel_folder_append_message / camel_folder_transfer_messages_to
* (various places): Update for camel_folder_append_message /
	camel_folder_transfer_messages_to API change.

	* mail-ops.c (mail_append_mail): Pass the appended_uid to the
	callback.

	* mail-callbacks.c (composer_save_draft_cb, save_draft_done,
	do_edit_messages): Take advantage of the append_message change to
	keep track of the UID of the saved draft so that we can delete the
	old copy of the draft each time we save a new one. Remove the
	FIXME suggesting we should do that, since we're doing it now. :)

svn path=/trunk/; revision=16766
2002-05-13 16:15:55 +00:00
a45637985e Don't add any shortcuts here. (mail_config_remove_account): And don't
2002-05-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (mail_config_add_account): Don't add any shortcuts
	here.
	(mail_config_remove_account): And don't remove them here. This
	code has never worked properly.

	* mail-ops.c (save_part_save): Use the exception enum names rather
	than '1' since it makes the code clearer.

svn path=/trunk/; revision=16756
2002-05-10 19:51:03 +00:00
cf18d0940f Simplify. Use transfer_messages_to instead of picking between copy and
* mail-ops.c (transfer_messages_transfer): Simplify. Use
	transfer_messages_to instead of picking between copy and move.
	Remove vtrash special-casing since it's all in
	camel-vtrash-folder.c now. Remove duplicate source == dest check.

	* mail-local.c (mail_local_folder_reconfigure): Use
	transfer_messages_to instead of copy_messages_to.

svn path=/trunk/; revision=16745
2002-05-10 16:46:04 +00:00
65431a3347 Flush the filter log to make Tuomas happy :-)
2002-05-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (filter_folder_free): Flush the filter log to make
	Tuomas happy :-)

	* mail-session.c (mail_session_flush_filter_log): New convenience
	function to flush the session's filter log file.

svn path=/trunk/; revision=16696
2002-05-06 21:39:10 +00:00
2e55f851fb Set the window title/icon here instead.
2002-04-03  Jeffrey Stedfast  <fejj@ximian.com>

	* message-tag-followup.c (construct): Set the window title/icon
	here instead.

	* message-tag-editor.c (message_tag_editor_init): Don't set the
	title or window icon here, this is a generic class.

	* mail-format.c (handle_multipart_signed): Replace
	get_url_for_icon with the new mail_display_get_url_for_icon
	function.
	(handle_multipart_digest): Here too.
	(get_cid): Use mail_display_add_url instead.
	(get_location): Same.
	(handle_text_enriched): Here too.
	(handle_multipart_signed): And here.

	* message-tag-followup.c (message_tag_followup_i18n_name): Use the
	U_() macro, not the _() macro as it is what we really want.

	* mail-ops.c (mail_send_message): Don't cast the message into a
	CamelMedium before sending anymore.

	* mail-callbacks.c (expunge_folder): Set the followup argument to
	NULL here.
	(done_message_selected): Get the followup value here and pass it
	to the mail-display here.
	(do_mail_fetch_and_print): Again with the NULL followup here.

	* folder-browser.c (folder_browser_set_message_preview): Update to
	pass in NULL as the followup since we are setting the message to
	NULL here.
	(done_message_selected): Get and set the appropriate followup
	value here.
	(do_message_selected): Update to pass in NULL as the followup
	since we are setting the message to NULL here.

	* mail-display.c (mail_display_set_message): Now takes a followup
	tag value.
	(mail_display_init): Set md->followup to NULL.
	(mail_display_destroy): Free md->followup.
	(mail_display_add_url): New: replaces the static add_url function
	originally in mail-format.c
	(mail_display_get_url_for_icon): New: replaces get_url_for_icon
	which was originally in mail-format.c

svn path=/trunk/; revision=16334
2002-04-03 22:55:34 +00:00
a1bb1ba0fe merge new signature handling
svn path=/trunk/; revision=15960
2002-03-07 00:21:59 +00:00
dc0b9c9b6c Set X-Mailer to say "Ximian Evolution", not just "Evolution".
* mail-ops.c (mail_send_message): Set X-Mailer to say "Ximian
Evolution", not just "Evolution".

svn path=/trunk/; revision=15901
2002-03-04 18:16:30 +00:00
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
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
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
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
c7702f6292 Argh, don't notify about new mail here. (fetch_mail_fetch): Notify about
2001-12-18  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (filter_folder_free): Argh, don't notify about new
	mail here.
	(fetch_mail_fetch): Notify about new mail here instead.

svn path=/trunk/; revision=15170
2001-12-18 23:54:13 +00:00
b265717d39 Setup the new-mail-notification widgets. (notify_command_changed): Update
2001-12-18  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (construct): Setup the new-mail-notification
	widgets.
	(notify_command_changed): Update the command-line for new mail
	notification.
	(notify_radio_toggled): Update the new-mail-notification type.

	* mail-ops.c (filter_folder_free): See if we got any new mail and
	"sound the alarm" if we did.

svn path=/trunk/; revision=15168
2001-12-18 23:22:36 +00:00
33e0c37234 Set the filter driver's shell-exec callback.
2001-12-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (mail_fetch_mail): Set the filter driver's shell-exec
	callback.

svn path=/trunk/; revision=15088
2001-12-14 23:50:04 +00:00
3622e520dd set the new-mail-notify command.
2001-12-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (mail_config_set_new_mail_notification_command):
	set the new-mail-notify command.
	(mail_config_get_new_mail_notification_command): get the
	new-mail-notify command.
	(mail_config_set_new_mail_notification): set the
	new-mail-notification action.
	(mail_config_get_new_mail_notification): get the
	new-mail-notification action.
	(mail_config_write_on_exit): save the new-mail-notification
	settings.
	(config_read): Read in the new-mail-notification settings.

	* mail-ops.c (mail_execute_shell_command): New function to execute
	a shell command async. Will be used for playing sounds on new mail
	or whatever.

svn path=/trunk/; revision=15005
2001-12-12 21:14:30 +00:00
b9cdb00a64 Don't expunge when we sync anymore, this fixes bug #4472.
2001-12-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (filter_folder_filter): Don't expunge when we sync
	anymore, this fixes bug #4472.

svn path=/trunk/; revision=14969
2001-12-11 03:24:59 +00:00
7ac457c031 s/PREVIEW_RELEASE/VERSION_COMMENT
2001-12-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (mail_send_message): s/PREVIEW_RELEASE/VERSION_COMMENT

svn path=/trunk/; revision=14924
2001-12-07 03:14:30 +00:00
9b46a3eda4 Don't append "(Preview Version)" at the end of the version string. Use the
2001-12-03  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (mail_send_message): Don't append "(Preview Version)"
	at the end of the version string. Use the PREVIEW_RELEASE #define
	instead.

svn path=/trunk/; revision=14913
2001-12-06 21:51:58 +00:00
d6d55273d4 Require gal 0.15.99.8
2001-10-29  Joe Shaw  <joe@ximian.com>

	* configure.in: Require gal 0.15.99.8

	* addressbook/backend/ebook/e-card-simple.c,
	addressbook/gui/component/addressbook-storage.c,
	addressbook/gui/widgets/e-addressbook-view.c,
	calendar/gui/e-calendar-table.c,
	calendar/gui/e-itip-control.c,
	calendar/gui/e-meeting-model.c,
	calendar/gui/itip-utils.c,
	calendar/gui/print.c,
	calendar/gui/alarm-notify/alarm-notify-dialog.c,
	filter/rule-editor.c,
	mail/mail-config.c,
	mail/mail-folder-cache.c,
	mail/mail-format.c,
	mail/mail-local.c,
	mail/mail-ops.c,
	mail/mail-vfolder.c,
	shell/e-local-storage.c,
	shell/e-summary-storage.c: Change includes of
	e-util/e-unicode-i18n.h to gal/util/e-unicode-i18n.h

svn path=/trunk/; revision=14427
2001-10-30 05:02:49 +00:00
0
093a00cf2b Argh!!! Dont free the async op data here, the async op is still running
2001-10-30    <NotZed@Ximian.com>

        * subscribe-dialog.c (fe_cancel_op_foreach): Argh!!! Dont free the
        async op data here, the async op is still running and will access
        it!  Just try to cancel it and mark it as cancelled (id == -1)
        (fe_done_subscribing): Only remove outselves from the hash table
        if we're not cancelled.  The handle should always be set here,
        since this code runs in the gui thread.

        * message-list.c (on_cursor_activated_idle): If nothing
        selected/cursor not activated, then select no message.

        * mail-folder-cache.c (update_1folder): Make the trash count
        optional on EVOLUTION_COUNT_TRASH, becuase some lusers are just
        too stupid to understand what its for.

        * component-factory.c (storage_xfer_folder): Return slightly
        better error codes for copying folders, since its not implemented
        yet.

        * mail-vfolder.c, mail-local.c, mail-folder-cache.c,
        message-list.c component-factory.c, mail-ops.c,
        subscribe-dialog.c, mail-session.c: d() out some debug printfs,
        w() out some warnings.

        * folder-browser-ui.c (folder_browser_ui_add_message): Fix typo,
        Resent->Resend.

svn path=/trunk/; revision=14412
2001-10-30 03:28:40 +00:00
2e6dc6d43f Don't warn the user if the source and destination folders are the same.
2001-10-29  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (transfer_messages_transfer): Don't warn the user if
	the source and destination folders are the same.

svn path=/trunk/; revision=14410
2001-10-30 03:25:51 +00:00
c0cddd6d1d Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14191
2001-10-27 00:47:22 +00:00
5fe02094b8 Don't forget to unref the filter driver here.
2001-10-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (send_mail_free): Don't forget to unref the filter
	driver here.

svn path=/trunk/; revision=14103
2001-10-25 22:04:48 +00:00
7
a31ef049c0 Clone the folderinfo before passing to async event. (real_folder_created):
2001-10-17    <NotZed@Ximian.com>

        * mail-folder-cache.c (store_folder_subscribed): Clone the
        folderinfo before passing to async event.
        (real_folder_created): Free when done.
        (store_folder_unsubscribed):
        (real_folder_deleted): And same here.

        * mail-ops.c (mail_expunge_folder): Use the queued thread for
        expunging folders.

svn path=/trunk/; revision=13741
2001-10-17 22:45:18 +00:00