Commit Graph

108 Commits

Author SHA1 Message Date
Tor Lillqvist 9093a7c172 Include just <gtk/gtk.h> and not a handful of individual gtk headers.
2005-12-13  Tor Lillqvist <tml@novell.com>

	* mail-session.c: Include just <gtk/gtk.h> and not a handful of
	individual gtk headers. Harmonize #include order and syntax. Use
	pthread_equal() to compare pthread_t values.

svn path=/trunk/; revision=30837
2005-12-17 17:43:19 +00:00
Not Zed 44f24cdf5a ** See bug #273885.
2005-08-04  Not Zed  <NotZed@Ximian.com>

        ** See bug #273885.

        * em-utils.c (em_utils_edit_filters): setup filter source names
        properly translated.

        * em-filter-editor.c (em_filter_editor_construct): take an array
        of structs for the filter source so the incoming/outgoing is
        properly translated.

        ** See bug #312397.

        * em-format-quote.c (emfq_format_message): dont quote credits
        here.
        (emfq_format_message_prefix): new prefix handler for credits.
        (emfq_format_clone): invoke the message prefix before anything
        else.

        ** See bug #310840.

        * em-icon-stream.c (em_icon_stream_get_image): check for /0
        possibility.

        ** See bug #308512.

        * em-account-editor.c (emae_authtype_changed): take into account
        the writability of the password when sensitising remember
        password.
        (get_password): small hack to disable the save-password button
        when appropriate.

svn path=/trunk/; revision=29997
2005-08-05 06:53:35 +00:00
Vivek Jain 9c86f9ed98 moved to plugins/sa-junk-plugin updated to removed/add these files. assign
2005-07-06  Vivek Jain <jvivek@novell.com>

	* em-junk-filter.c : moved to plugins/sa-junk-plugin
	* Makefile.am :updated to removed/add these files.
	* mail-session.c: (mail_session_init):
	assign NULL to junk_plugin, remove included file
	"em-junk-filter.h"
	* mail-component-factory.c : (make_factory)
	register type for EMJunkHook

svn path=/trunk/; revision=29643
2005-07-06 04:54:32 +00:00
Not Zed 9066b42ddd ** See bug #307398
2005-06-25  Not Zed  <NotZed@Ximian.com>

        ** See bug #307398

        * mail-session.c (alert_user): copy the prompt string, in 'no
        cancel' mode we run asynchronously.
        (free_user_message): & free it.

2005-06-24  Not Zed  <NotZed@Ximian.com>

        * em-format-html.c (efh_url_requested): dont pass data gtkhtml
        definitely can't handle, to gtkhtml.  This is no security patch,
        but stops gtkhtml wasting time tying to render malicious mails or
        other rubbish.

svn path=/trunk/; revision=29582
2005-06-24 17:38:12 +00:00
Not Zed d0f0cfc884 move e-error into e-util/
2005-05-16  Not Zed  <NotZed@Ximian.com>

        * move e-error into e-util/

svn path=/trunk/; revision=29366
2005-05-16 06:15:38 +00:00
Not Zed 9c26fef2d4 include atkutil.h (message_list_construct): cast warning.
2005-03-01  Not Zed  <NotZed@Ximian.com>

        * message-list.c: include atkutil.h
        (message_list_construct): cast warning.

        * mail-session.c (mail_session_set_interactive): remove unused
        variable since we can no longer terminate password requests.

        * mail-autofilter.c (em_vfolder_rule_from_address): properly
        define in header.

        * em-utils.c (emu_get_save_filesel): only define filename in the
        !gtkfilechooser case.

        * em-mailer-prefs.c (restore_labels_clicked): cast for warning.
        (em_mailer_prefs_construct): same.

        * em-format-html.c (efh_format_header): remove unused variable.

        * em-account-editor.c (emae_widget_druid_glade): remove unused
        variable.

        * importers/mail-importer.h: forward-delcare struct
        _MailComponent.

        * *c: remove/disable various debug.

svn path=/trunk/; revision=28934
2005-03-02 05:23:46 +00:00
Hans Petter Jansson e75013c201 Make mailer depend on libedataserverui.
2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* configure.in: Make mailer depend on libedataserverui.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* Makefile.am (eutilinclude_HEADERS)
	(libeutil_la_SOURCES): Remove e-passwords from here, it now
	lives in libedataserverui.

	* e-passwords.[ch]: Removed.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* gui/component/addressbook-view.c:
	* gui/component/addressbook.c: Include
	<libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* common/authentication.c:
	* gui/e-pub-utils.c:
	* gui/alarm-notify/alarm-notify.c:
	* gui/alarm-notify/notify-main.c:
	* gui/dialogs/url-editor-dialog.c:
	Include <libedataserverui/e-passwords.h>.
	* gui/itip-utils.c: Remove e-passwords.h include, it's not
	needed.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* mail-session.c:
	* mail-config.c: Include <libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* gui/component.c:
	* lib/e-cert-db.c:
	* lib/e-pkcs12.c: Include <libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* e-shell-window-commands.c:
	* e-shell.c:
	* main.c: Include <libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* camel-gw-listener.c: Include <libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* send-options.c: Include <libedataserverui/e-passwords.h>.

svn path=/trunk/; revision=28871
2005-02-23 18:57:00 +00:00
Not Zed 9526b53ea4 if we aren't waiting for cancel, then don't worry about waiting on the
2005-02-04  Not Zed  <NotZed@Ximian.com>

        * mail-session.c (alert_user, do_user_message): if we aren't
        waiting for cancel, then don't worry about waiting on the reply
        port, otherwise we could block when we don't need to, if there is
        another window already up.

svn path=/trunk/; revision=28698
2005-02-04 02:17:21 +00:00
Not Zed 8652353f28 Moved various things from e-util to libedataserver.
2004-11-15  Not Zed  <NotZed@Ximian.com>

        * *.c: Moved various things from e-util to libedataserver.

        * GNOME_Evolution_Mail.server.in.in: remove the startup wizard stuff.

        * mail-config-druid.[ch]:
        * mail-account-editor.[ch]:
        * mail-account-gui.[ch]: removed & deleted.

        * mail-session.c (mail_session_init): and here too.
        * em-migrate.c (em_migrate_1_4): init camel-provider library too.
        (e_path_to_physical): copy from e-util/e-path.c.

        * Makefile.am (libevolution_mail_la_LIBADD): link to new libcamel
        provider too.

svn path=/trunk/; revision=28047
2004-12-03 03:38:03 +00:00
Radek Doulik 94cc53a705 when starting new spamd, call it with --socketpath parameter to use unix
2004-10-12  Radek Doulik  <rodo@ximian.com>

	* em-junk-filter.c: when starting new spamd, call it with
	--socketpath parameter to use unix sockets instead of opening TCP
	port. kill such started daemon in finalize callback which is
	installed by atexit. also try to respawn spamd in case spamc
	returns error, if respawning is too fast (8 restarts in last 5
	minutes) fallback to spamassassin

	* mail-component.c (impl_quit): call mail_session_quit

	* mail-session.c (mail_session_init): call junk plugin init
	(mail_session_quit): new method, called on evo exit

svn path=/trunk/; revision=27990
2004-11-25 10:50:47 +00:00
Michael Zucci ef6a3af717 Merged notzed-eplugin-2-branch to head.
svn path=/trunk/; revision=27300
2004-09-20 05:59:55 +00:00
Not Zed 85ae1fd47c just call e_passwords_ask_password directly. (pass_activate,
2004-08-10  Not Zed  <NotZed@Ximian.com>

        * mail-session.c (get_password): just call
        e_passwords_ask_password directly.
        (pass_activate, pass_response, request_password, do_get_pass)
        (do_free_pass, main_forget_password): no longer required as
        e_password now handles the magic, and is thread safe.

        * mail-config.c (mail_config_write_on_exit): epasswords api
        change.

svn path=/trunk/; revision=26880
2004-08-12 06:53:45 +00:00
Not Zed a218c7d2f7 ** See #59885.
2004-06-17  Not Zed  <NotZed@Ximian.com>

        ** See #59885.

        ** Moved all of the mail specific filtering stuff from filter/* to
        here.  Renamed appropriately into em* space, etc.

        * em-filter-folder-element.c (emff_copy_value): implement for folders.

        * em-vfolder-rule.c (get_widget): read the vfolder glade from
        mail-config.glade.

        * mail-config.glade: moved the vfolder source selector here.

        * em-search-context.c: new mail search specific rule context.

        * mail-component.c (setup_search_context): use the new
        em_search_context.

        * vfolder-rule.c (validate): change error to mail context.

        * filter-folder.c (validate): change error to mail context.

        * Makefile.am (em-filter-i18n.h): added rule for i18n of mail
        filter type stuff.
        (libevolution_mail_la_SOURCES): added in the filter and vfolder
        rule stuff specific to mail.

        ** See #59885.

        * em-format-html-quote.[ch]: remove and remove from build, not
        used.

        * Makefile.am (libevolution_mail_la_LIBADD): add libeabutil and
        evolutionsmime.

        * mail-component-factory.c (factory): there is no mail_config
        anymore.

svn path=/trunk/; revision=26380
2004-06-17 07:34:50 +00:00
William Jon McCann f9d996db29 Don't pack entry and checkbox widgets directly into the dialog vbox so
2004-06-03  William Jon McCann  <mccann@jhu.edu>

	* mail-session.c (request_password): Don't pack entry and checkbox
	widgets directly into the dialog vbox so that they line up
	correctly with the action area buttons.

svn path=/trunk/; revision=26206
2004-06-04 02:11:38 +00:00
Not Zed ffa75e6801 add marshaller for p_ppppp call.
2004-05-21  Not Zed  <NotZed@Ximian.com>

        * mail-mt.c (do_call): add marshaller for p_ppppp call.

        * mail-session.c (get_password): fix for camel api changes.
        (forget_password): same.

        ** See #58376.

        * message-list.c (mail_regen_list): do some timeout foo so we
        don't keep doing list regnerations if we're getting called too
        often.  God knows what this will break.
        (message_list_set_selected): removede bug printf.
        (regen_list_free): move the message-list poking stuff into
        regen_list_regened.
        (message_list_set_folder): call mail_regen_cancel to cancel any
        regen stuff.
        (mail_regen_cancel): cancel/clear outstanding regenerations.
        (message_list_destroy): do it here too.
        (message_list_select_uid): also set the pending select uid if we
        have a timeout pending.

        * mail-component.c (impl_createControls): set the defualt parent
        to the main folderview as soon as its created.

        * em-folder-tree.c (emft_popup_copy_folder_selected): use
        get_toplevel rather than get_ancestor.  seems the more reliable
        one.  also we're always parented so we shoudl always find a
        toplevel window.
        (em_folder_tree_create_folder): same.
        (emft_popup_delete_response): set error parent.
        (emft_popup_delete_folder, emft_popup_rename_folder)
        (emft_popup_rename_folder, emft_popup_rename_folder):

svn path=/trunk/; revision=26030
2004-05-21 09:10:00 +00:00
Not Zed e24fd5f7d1 removed.
2004-05-03  Not Zed  <NotZed@Ximian.com>

        * mail-send-recv.c (receive_update_done): removed.

        * em-mailer-prefs.h:
        * message-tag-followup.h:
        * mail-config-druid.h:
        * mail-tools.h: clean up & use forward decls.  Fix users with
        busted includes.

svn path=/trunk/; revision=25745
2004-05-03 10:31:00 +00:00
Not Zed db2c17f660 forgot to prefix error type with "mail:"
2004-04-29  Not Zed  <NotZed@Ximian.com>

        * mail-session.c (error_type[]): forgot to prefix error type with
        "mail:"

svn path=/trunk/; revision=25681
2004-04-29 06:42:12 +00:00
Not Zed e23cf1ca36 ** Changed error messages to use EError.
2004-04-28  Not Zed  <NotZed@Ximian.com>

        ** Changed error messages to use EError.

svn path=/trunk/; revision=25653
2004-04-28 06:39:25 +00:00
Not Zed 9e126a8d01 Cleaned up header inclusions and added plenty of forward declarations.
2004-03-31  Not Zed  <NotZed@Ximian.com>

        * *.[ch]: Cleaned up header inclusions and added plenty of forward
        declarations.  Sped up complete re-compilation by upto 20%.

        ** See bug #55950.

        * em-utils.c (em_utils_in_addressbook): utility for checking if an
        email address is in the addressbook.  I can't tell if it works
        'cause it crashes eds.

        * em-format-html.c (emfh_gethttp): handle addressbook checking.

2004-03-30  Not Zed  <NotZed@Ximian.com>

        * mail-config.h: clean up the headers and use some forward decl's
        instead.

        * em-format-html.c (em_format_html_set_load_http): change state to
        an int 'style' instead.

        * em-folder-view.c (emfv_setting_notify): set the format load http
        option to the config value directly.

        ** See bug #56147.

        * message-list.c (clear_info): set the node data to NULL when we
        unref its data.
        (ml_get_save_id): use a different test for the root node, and
        return NULL if we don't have any data on the node (because we're
        cleaing it).

        ** See bug #54962.

        * em-folder-tree.c (emft_popup_new_folder_response): put back the
        old hack to open the vfolder editor if you try to create a folder
        under vfolders.

        ** See bug #55940.

        * mail-autofilter.c (mail_filter_rename_uri): map the uri to an
        email uri before passing to filter code.
        (mail_filter_delete_uri): same here.

svn path=/trunk/; revision=25261
2004-03-31 10:09:04 +00:00
Jeffrey Stedfast e948af7be8 Focus the entry widget. Fixes bug #55330.
2004-03-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c (request_password): Focus the entry widget. Fixes
	bug #55330.

svn path=/trunk/; revision=25012
2004-03-10 19:50:05 +00:00
Not Zed 467bbf6fb6 if we have the folder opened already, and its the outbox, then use the
2004-03-03  Not Zed  <NotZed@Ximian.com>

        * em-inline-filter.c (emif_scan):

        * em-folder-tree-model.c (em_folder_tree_model_set_folder_info):
        if we have the folder opened already, and its the outbox, then use
        the total count instead of unread count.  Bit of hack, but copies
        mail-folder-cache stuff.

        * mail-component.c (mc_add_store): renamed from
        mail_component_add_store, internal call.  Added a done callback.
        (mc_add_local_store): renamed from mc_add_store, callback for
        local store.
        (mail_component_add_store): call mc_add_store to do the work.
        (mc_add_local_store_done): ugh, the target of all this shit - note
        all the default folders now they should be setup.

        * mail-folder-cache.c (mail_note_folder): clean up the logic a
        bit.  was gonna do osmething else but it didn't work.

2004-03-02  Not Zed  <NotZed@Ximian.com>

        * mail-send-recv.c (mail_send): if we're already sending, up the
        again count to tell it we need to re-send again.
        (receive_done): if we've been asked to run a send again while we
        were already running it, run it again to make sure we didn't miss
        any new messages.  See bug #46839.

        * em-mailer-prefs.c (em_mailer_prefs_construct): update
        check_incoming_imap changes for merge conflicts.
        (settings_changed): i have no idea what these changes jeff did do,
        but check_incoming_imap is no longer needed, so i've deleted most
        of it.

2004-02-27  Not Zed  <NotZed@Ximian.com>

        * em-format.c (emf_multipart_encrypted, emf_multipart_signed): If
        validation fails, display as multipart/mixed rather than unkown
        attachment type, and make the error a little clearer that its an
        error.  See #52939.

2004-02-26  Not Zed  <NotZed@Ximian.com>

        * message-list.c (regen_list_regened): NOOP if the folder has
        changed.

        * mail-session.c (mail_session_check_junk_notify): remove
        check_incoming_imap test.
        (mail_session_init): "

        * evolution-mail.schemas.in.in: Remove check_incoming_imap option.

        * mail-config.glade: Remove check incoming imap checkbox.

        * em-mailer-prefs.c (em_mailer_prefs_construct): remove
        check_incoming_imap test.
        (em_mailer_prefs_apply): "
        (settings_changed): "

svn path=/trunk/; revision=24944
2004-03-03 06:39:14 +00:00
5 09070e7446 set seen flag for junk messages
2004-02-25    <rodo@ximian.com>

	* mail-session.c (main_get_filter_driver): set seen flag for junk
	messages

svn path=/trunk/; revision=24867
2004-02-25 18:40:29 +00:00
Radek Doulik 9c080b3f3a handle the sa prefs here, have own gconf client with sa dir added
2004-02-03  Radek Doulik  <rodo@ximian.com>

	* em-junk-filter.c: handle the sa prefs here, have own gconf
	client with sa dir added

	* mail-session.c: removed sa prefs

svn path=/trunk/; revision=24578
2004-02-03 13:11:41 +00:00
Jeffrey Stedfast 96729a9fd1 Use gtk_tree_view_get_dest_row_at_pos() instead of
2004-01-27  Jeffrey Stedfast  <fejj@ximian.com>

	* em-folder-tree.c (tree_drag_data_received): Use
	gtk_tree_view_get_dest_row_at_pos() instead of
	gtk_tree_view_get_path_at_pos() since this is what Nautilus
	uses. Unfortunately, it still gives us back the wrong GtkTreePath
	so it looks to me like Gtk+ is borked.

	* em-migrate.c (em_migrate_imap_caches_1_4): Copy the imap cache
	into the right place. Duh.

svn path=/trunk/; revision=24477
2004-01-27 21:08:16 +00:00
Radek Doulik aa85963848 translate DEMAND to INCOMING to get the right rules
2004-01-26  Radek Doulik  <rodo@ximian.com>

	* mail-session.c (main_get_filter_driver): translate DEMAND to
	INCOMING to get the right rules

	* mail-ops.c (mail_filter_on_demand): use FILTER_SOURCE_DEMAND

	Fixes #53266

svn path=/trunk/; revision=24436
2004-01-26 16:00:48 +00:00
Radek Doulik c6ba8e9f2d use mail_session_get_sa_daemon_port
2004-01-23  Radek Doulik  <rodo@ximian.com>

	* em-junk-filter.c: use mail_session_get_sa_daemon_port

	* em-mailer-prefs.c (em_mailer_prefs_construct): added
	check_incoming_imap
	(em_mailer_prefs_apply): ditto
	(settings_changed): set check_incoming_imap sensitivity by
	check_incoming state

	* mail-session.c: add sa_daemon_port
	(mail_session_init): init sa_daemon_port and check_junk_for_imap
	(mail_session_check_junk_notify): watch for sa_daemon_port and
	check_junk_for_imap
	(mail_session_get_sa_daemon_port): new wrapper
	(mail_session_set_sa_daemon_port): ditto

svn path=/trunk/; revision=24382
2004-01-23 17:21:50 +00:00
Jeffrey Stedfast 7f3a61ee52 Changed the logic of the visibility of the passwd text so that we hid ethe
2004-01-20  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c (request_password): Changed the logic of the
	visibility of the passwd text so that we hid ethe passwd if the
	flags have the SECRET bit set.

svn path=/trunk/; revision=24328
2004-01-20 17:32:06 +00:00
Not Zed 1d2599d6a8 ** See Bug #52817.
2004-01-20  Not Zed  <NotZed@Ximian.com>

        ** See Bug #52817.

        * mail-session.c (request_password, do_get_pass, get_password):
        Fix for api changes to camel_session_get_password.
        (request_password): if we have a STATIC password, don't show any
        'remember' checkbox.

svn path=/trunk/; revision=24324
2004-01-20 05:37:22 +00:00
Radek Doulik 1c4599a829 added SA prefs (mail_session_get_sa_local_only): new helper method
2004-01-12  Radek Doulik  <rodo@ximian.com>

	* mail-session.c: added SA prefs
	(mail_session_get_sa_local_only): new helper method
	(mail_session_set_sa_local_only): ditto
	(mail_session_get_sa_use_daemon): ditto
	(mail_session_set_sa_use_daemon): ditto
	(mail_session_check_junk_notify): fix the key comparison
	(mail_session_init): add gconf dir so that we get notified

	* mail-config.glade: added SA preferences

	* em-mailer-prefs.c (em_mailer_prefs_construct): added more junk
	prefs
	(em_mailer_prefs_apply): ditto

	* em-junk-filter.c: use preferences

svn path=/trunk/; revision=24174
2004-01-12 17:11:18 +00:00
Radek Doulik 429ac6ac1d monitor gconf key /apps/evolution/mail/junk/check_incoming and keep
2003-12-04  Radek Doulik  <rodo@ximian.com>

	* mail-session.c: monitor gconf key
	/apps/evolution/mail/junk/check_incoming and keep session junk
	flag uptodate

	* em-mailer-prefs.c (em_mailer_prefs_construct): added junk
	preferences

svn path=/trunk/; revision=23630
2003-12-04 14:14:36 +00:00
Not Zed c05d371673 if we're setting the fragment, strip leading /'s.
2003-11-19  Not Zed  <NotZed@Ximian.com>

        * mail-component.c (em_uri_to_camel): if we're setting the
        fragment, strip leading /'s.

        * mail-tools.c (mail_tool_get_meta_data)
        (mail_tool_delete_meta_data, meta_data_key): old stuff killed.
        (mail_tool_uri_to_folder): handle email: uri's specially.  this is
        a bit of a hack, the filter callbacks should manage this itself
        since filters are the only bits which use those uri's.

svn path=/trunk/; revision=23437
2003-11-19 06:17:56 +00:00
Radek Doulik 8e1251fa17 merged spam filtering branch
svn path=/trunk/; revision=23302
2003-11-12 21:13:05 +00:00
Jeffrey Stedfast 49265bef8d User vfolder rules should be in ${evolution_dir}/mail/vfolders.xml rather
2003-11-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-vfolder.c (mail_vfolder_delete_uri): User vfolder rules
	should be in ${evolution_dir}/mail/vfolders.xml rather than
	${evolution_dir}/vfolders.xml
	(mail_vfolder_rename_uri): Same.
	(store_folder_deleted): Here too.
	(store_folder_renamed): And here.
	(vfolder_load_storage): Again here.
	(vfolder_editor_response): Same.
	(edit_rule_response): And here.
	(new_rule_clicked): Here too.

	* mail-session.c (main_get_filter_driver): User filter rules
	should be in ${evolution_dir}/mail/filters.xml rather than
	${evolution_dir}/filters.xml

	* mail-autofilter.c (filter_gui_add_from_message): Same.
	(mail_filter_rename_uri): And here.
	(mail_filter_delete_uri): Here too.

	* em-utils.c (filter_editor_response): Again here.
	(em_utils_edit_filters): Same.

	* em-migrate.c (em_migrate_filter_file): Same (also for
	vfolders.xml)

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

	* em-migrate.[c,h]: New source files to migrate from the old mail
	directory to the new mail directory.

	* mail-component.c (mail_component_init): Changed to use
	~/.evolution and added code to migrate the old mail folders over
	if ~/.evolution/mail does not yet exist.

svn path=/trunk/; revision=23201
2003-11-06 21:54:49 +00:00
Ettore Perazzoli 0fb08f3ff8 Merge new-ui-branch to the trunk.
svn path=/trunk/; revision=22964
2003-10-21 18:28:34 +00:00
Not Zed d60e250a6e implement, we hook into the mail progress reporting stuff by overriding
2003-09-21  Not Zed  <NotZed@Ximian.com>

        * mail-session.c (ms_thread_msg_new): implement, we hook into the
        mail progress reporting stuff by overriding the CamelOperation
        member with one from a dummy mail_msg.
        (ms_thread_msg_free): handle freeing.

        * mail-mt.c (mail_msg_free): mute the camel-operaiton when we free
        it so we no longer get updates.

svn path=/trunk/; revision=22649
2003-09-22 18:53:26 +00:00
Jeffrey Stedfast 2a88606f5d updated for camel namespace changes
2003-09-18  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c: updated for camel namespace changes

	* em-folder-view.c: updated for camel namespace changes

	* em-format-html-display.c: updated for camel namespace changes

	* em-format-html-quote.c: updated for camel namespace changes

	* em-format.c: updated for camel namespace changes

	* em-popup.c: updated for camel namespace changes

	* em-utils.c: updated for camel namespace changes

	* mail-autofilter.c: updated for camel namespace changes

	* mail-ops.c: updated for camel namespace changes

	* mail-session.c: updated for camel namespace changes

	* message-list.c: updated for camel namespace changes

	* message-tag-followup.c: updated for camel namespace changes

	* importers/evolution-mbox-importer.c: updated for camel namespace
	changes

2003-09-18  Jeffrey Stedfast  <fejj@ximian.com>

	* em-popup.c (emp_standard_menu_factory): Don't forget to
	initialise/increment 'i' when using it as an object id in the
	for-loop.

	* em-format.c (em_format_format_text): Initialise charset to NULL
	or it may be used uninitialised. Also include
	gnome-vfs-mime-handlers.h for gnome_vfs_mime_type_get_description().

svn path=/trunk/; revision=22610
2003-09-18 17:05:23 +00:00
Jeffrey Stedfast 1fcc2835b5 Removed the new-mail-notification mess.
2003-08-18  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c (main_get_filter_driver): Removed the
	new-mail-notification mess.

	* mail-folder-cache.c (notify_idle_cb): New idle callback to alert
	the user about new mail.
	(notify_type_changed): New function to intercept user changes to
	his/her notification settings changes.
	(real_flush_updates): Initialise new mail notification if not yet
	initialised and setup an idle callback if none is already set.
	(update_1folder): Now takes an additional argument `new' which
	states whether or not the fodler got any new mail so that we may
	handle notify the user (if needed).
	(folder_changed): Pass in the number of new messages received.

svn path=/trunk/; revision=22290
2003-08-19 17:59:34 +00:00
Jeffrey Stedfast 5a9032ef86 removed all the timeout shite that we don't even use anymore
svn path=/trunk/; revision=22180
2003-08-12 02:03:46 +00:00
Dan Winship a356037663 Fix type warnings (folder_browser_toggle_caret_mode): Remove unused
* folder-browser.c (message_list_drag_data_get): Fix type warnings
	(folder_browser_toggle_caret_mode): Remove unused variable.

	* folder-browser-ui.c (basename): remove unused function

	* mail-account-gui.c (mail_account_gui_build_extra_conf): Fix
	warnings

	* mail-callbacks.c (empty_trash): Remove unused variable.

	* mail-display.c: #include gal/widgets/e-gui-utils.h for
	e_auto_kill_popup_menu_on_selection_done

	* mail-importer.c: #include e-util/e-path.h for e_path_to_physical

	* mail-session.c (main_play_sound): don't declare filename to be
	const and then free it.

	* mail-vfolder.c (vfolder_edit_rule, vfolder_gui_add_rule): Fix
	casts

	* message-list.c (build_flat_diff): Fix a typo in the
	non-BROKEN_ETREE code

svn path=/trunk/; revision=21903
2003-07-23 15:01:26 +00:00
Jeffrey Stedfast d120c67b62 Use mail-config's gconf client. (target_date_new): Same.
2003-06-06  Jeffrey Stedfast  <fejj@ximian.com>

	* message-tag-followup.c (get_week_start_day): Use mail-config's
	gconf client.
	(target_date_new): Same.

	* message-list.c (message_list_set_folder): Use mail-config's
	gconf client.
	(mail_regen_list): Same.

	* mail-tools.c (mail_tool_quote_message): Use mail-config's gconf
	client.
	(mail_tool_forward_message): Same.

	* mail-session.c (main_get_filter_driver): Use mail-config's gconf
	client.

	* mail-preferences.c (mail_preferences_init): Use mail-config's
	gconf client.
	(mail_preferences_finalise): Don't unref the gconf client.

	* mail-format.c (write_headers): Use mail-config's gconf client.
	(mail_format_data_wrapper_write_to_stream): Same.
	(handle_text_plain): And here.

	* mail-display.c (save_data_cb): Use mail-config's gconf client.
	(save_part): Same.
	(on_url_requested): Here too.
	(mail_text_write): And here.
	(mail_display_init): And here.
	(mail_display_destroy): Here too.
	(mail_display_new): Again here.

	* mail-composer-prefs.c (sig_add_cb): Use mail-config's gconf
	client.
	(mail_composer_prefs_construct): Same.

	* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Use
	mail-config's gconf client.
	(ask_confirm_for_empty_subject): Same.
	(ask_confirm_for_only_bcc): Here too.
	(composer_get_message): And here.
	(create_msg_composer): Again here.
	(mail_generate_reply): Same.
	(forward): And here.
	(transfer_msg_done): "
	(delete_msg): "
	(confirm_expunge): "

	* component-factory.c (owner_unset_cb): Use mail-config's gconf
	client.

	* folder-browser-ui.c (folder_browser_ui_add_message): Use the
	mailer's gconf client.
	(folder_browser_ui_add_list): Same.
	(folder_browser_ui_add_global): Here too.

	* folder-browser.c (save_cursor_pos): Use the mailer's gconf
	client.
	(folder_browser_set_message_preview): Same.
	(folder_browser_toggle_preview): Here too.
	(folder_browser_toggle_threads): And here.
	(folder_browser_toggle_hide_deleted): Here as well.
	(folder_browser_set_message_display_style): And here.
	(fb_resize_cb): Here.
	(paned_realised): And here.
	(done_message_selected): And everywhere...

	* mail-account-gui.c (sig_add_new_signature): Use the mailer gconf
	client.

	* mail-config.c (mail_config_get_gconf_client): New function to
	return the global GConfClient used by the mailer.
	(mail_config_write_on_exit): On exit, free our objects and such.
	(mail_config_signature_run_script): Use config->gconf.

2003-06-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (invert_selection): Get rid of the if-focused
	code, that will always prevent the etree from getting the
	selection inverted because the menu item will always have focus at
	this time. Fix for bug #43972.


it takes more than good relations to some of the major spirits in this
branch of the multiverse to write apps that don't leak gconf-client
refs, good coding is important, too.

that... or a 100-megaton-kill-o-zap bomb

svn path=/trunk/; revision=21410
2003-06-11 16:19:36 +00:00
Jeffrey Stedfast 4a67f45b4a Fixes bug #43805.
2003-05-29  Jeffrey Stedfast  <fejj@ximian.com>

	Fixes bug #43805.

	* mail-session.c (session_system_beep): Proxy the gdk_beep() call
	to the main thread.
	(session_play_sound): Proxy the gnome_sound_play() call to the
	main thread.

svn path=/trunk/; revision=21348
2003-05-30 03:01:47 +00:00
Jeremy Katz a878c6c70b Add #include to fix warning.
2003-05-17  Jeremy Katz  <katzj@redhat.com>

	* mail-offline-handler.c: Add #include to fix warning.

	* mail-mt.c (mail_msg_new): Use glib macros for pointer/int
	conversions.
	(mail_msg_free): Likewise.
	(mail_msg_cancel): Likewise.
	(mail_msg_wait): Likewise.
	(mail_msg_active): Likewise.
	* mail-session.c (main_register_timeout): Likewise.
	(register_timeout): Likewise.
	(main_remove_timeout): Likewise.
	(remove_timeout): Likewise.
	* message-list.c (ml_value_to_string): Likewise.

	* mail-identify.c: Add #include to fix warning.

	* mail-config.c (config_write_fonts): Don't pass extra arguments
	to g_warning.

	* mail-callbacks.c: Add #include to fix warning.

svn path=/trunk/; revision=21222
2003-05-16 18:52:14 +00:00
Ettore Perazzoli 38a69e37f2 (request_password): Make sure password_dialog is
NULLified when the dialog is destroyed in any case, using
g_object_add_weak_pointer().  Prevents a crash that could happen
if the shell would quit with the password dialog still up.

svn path=/trunk/; revision=21133
2003-05-08 19:04:38 +00:00
Ettore Perazzoli c85822a98c (request_password): Set OK as the default
response for the password_dialog.

svn path=/trunk/; revision=21104
2003-05-05 18:08:49 +00:00
Ettore Perazzoli e8a5147580 (mail_session_forget_passwords): Forget all
passwords again.  [#41817]

svn path=/trunk/; revision=20986
2003-04-28 18:04:09 +00:00
Jeffrey Stedfast c6cb5d9631 Add padding around the entry/checkbox and change the border width of the
2003-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c (request_password): Add padding around the
	entry/checkbox and change the border width of the dialog window to
	comply with the HIG. Fixes bug #41004.

svn path=/trunk/; revision=20822
2003-04-11 18:18:52 +00:00
Not Zed 90b3cda80e Only clear the Mail passwords.
2003-04-02  Not Zed  <NotZed@Ximian.com>

        * mail-session.c (mail_session_forget_passwords): Only clear the
        Mail passwords.

svn path=/trunk/; revision=20632
2003-04-02 04:52:22 +00:00
Jeffrey Stedfast 7bbc53fbef Properly init message_list. Fixed a type-o that initialized it to the
2003-03-31  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c: Properly init message_list. Fixed a type-o that
	initialized it to the password_list.

svn path=/trunk/; revision=20605
2003-03-31 23:28:47 +00:00
Not Zed eeadfa251c need to check for config_service != NULL, not service != NULL before
2003-03-31  Not Zed  <NotZed@Ximian.com>

	* mail-session.c (pass_response): need to check for config_service
	!= NULL, not service != NULL before calling set_save_password.
	Fix for #40472.

2003-03-28  Not Zed  <NotZed@Ximian.com>

	* folder-browser-ui.c: include e-meta.h

	* folder-browser.c (on_right_click): remove unused var.

svn path=/trunk/; revision=20586
2003-03-31 02:57:41 +00:00
Jeffrey Stedfast 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