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-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-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-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-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
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-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-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-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-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-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-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-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-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-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-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-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 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-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
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-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-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-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-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-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-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
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-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-02 Not Zed <NotZed@Ximian.com>
* mail-session.c (mail_session_forget_passwords): Only clear the
Mail passwords.
svn path=/trunk/; revision=20632
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 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-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