2003-02-06 Larry Ewing <lewing@ximian.com>
* mail-session.c (pass_activate): add an activate handler to the
entry so that hitting return will return an OK response.
svn path=/trunk/; revision=19800
2003-02-05 Not Zed <NotZed@Ximian.com>
* importers/netscape-importer.c: update from ../../importers/.
(main): Removed.
(mail_importer_module_init): Setup module init fn.
(factory_fn): api changes.
(is_dir_empty): deprecated changes, and clean up logic.
(importer_cb): pulse progress bar, use idle function for
processing next item.
(import_next): Remove link before recursing, also fix memleak, and
api changes.
(netscape_import_file): dont release importer.
(*): gconf'ify
* importers/elm-importer.c (elm_factory_fn): Track the
evolution_intelligent_importer, so we can unref it when done.
(*): gconf'ify.
* importers/pine-importer.c (parse_line): use gobject stuff rather
than gtkobject.
(import_addressfile): close down 'properly' when finished.
(importer_timeout_fn): Do most processing decisions here, either
from a timeout or idle function. This prevents us getting 1 stack
frame per message and per folder. Close down properly also.
(importer_cb): Add a timeout, ignore the callback, or add an idle
function to process the next item.
(pine_import_file): dont release the importer if we can't load it,
its released elsewhere, i think.
(import_addressfile): step the progress bar as we go.
(factory_fn): Track the evolution_intelligent_importer, so we can
unref when done.
(*): gconf'ify
2003-01-31 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c (elm_can_import): g_file_exists ->
lstat, and g_build_filename api changes.
* importers/pine-importer.c: moved from
../../importers/pine-importer.c
(factory_fn): oaf->bonobo_activation
(mail_importer_module_init): setup factory.
(main): Removed.
(*): REemove bonobo config stuff.
(factory_fn): destroy signal -> weak ref.
(pine_destroy_cb): Fix signature for weak ref notify.
(import_addressfile): use new glib filename stuff.
(import_addressbook): same.
(pine_can_import): and here.
(import_next): and here.
(scan_dir): and here
(pine_create_structure): And here.
(pine_can_import): g_file_exists -> lstat.
(importer_cb): If there are more items, use an idle handler to
drop back a few stack frames rather than recursing for each
message.
(import_next): unlink data from dir_list before recursing, and fix
leak.
2003-01-30 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c (elm_destroy_cb): Change for weak ref
setup.
(elm_factory_fn): destroy -> weak ref.
2003-01-29 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c (importer_cb): Pass processItem off to
an idle handler, so we dont blow our stacks. Also update to use
progress_bar_pulse().
(import_item_idle): Get the next message here instead.
(import_next): Fix a glist leak. Unlink the file before we import
it too. And close the dialogue and clean up when we've run out of
folders to import.
2003-01-17 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c (elm_create_structure): use/free elmdir
rather than double-free maildir.
2003-01-16 Not Zed <NotZed@Ximian.com>
* importers/elm-importer.c: update from ../importers/elm-importer.c
svn path=/trunk/; revision=19752
2003-02-03 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (mail_regen_list): Get the thread_subject setting
here instead of in regen_list_regen since that function will be
called in another thread and we can't make corba calls in anything
but the main thread.
(regen_list_regen): Don't make CORBA calls here! (shame on me).
svn path=/trunk/; revision=19715
2003-02-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-identify.c (mail_identify_mime_part): Just use
gnome_vfs_get_mime_type_from_name() so we can forget all the crap
I implemented before.
2003-02-01 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (on_link_clicked): Pass in the *address* of the
GError to gnome_url_show(), otherwise bad things happen :-)
svn path=/trunk/; revision=19711
2003-01-31 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_labels): New function to return a
cached list of labels.
(mail_config_get_label_color_by_name): New convenience function to
search the cached labels.
(mail_config_get_label_color_by_index): Same.
(mail_config_init): Cache the labels and also listen for changes
to them in the gconf db.
(config_cache_labels): Internal function to cache the labels.
* folder-browser.c (on_right_click): Fixed the label colours in
the menu by using the cached linked list of labels.
* mail-preferences.c (colorpicker_set_color): Now takes a string
argument allowing us to get rid of converting a string into an rgb
guint32 all over the place when trying to set defaults, since we
now store colors in gconf as strings.
(mail_preferences_construct): Use the cached labels (they are
already parsed for us).
svn path=/trunk/; revision=19694
2003-01-27 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_remove_folder): Change
strcmp(fi->path, path) to strcmp(fi->name, name) and now the
execution takes the right path. My patch base on Callie's patch
for bug #33525.
svn path=/trunk/; revision=19661
2003-01-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-identify.c (mail_identify_mime_part): Fixed a #warning by
converting a local path into a file: uri before feeding it to
gnome-vfs.
* message-list.c (message_list_set_folder): Removed a FIXME that
I've decided is no longer needed.
2003-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_add_account): Emit the account-added
event.
(mail_config_remove_account): Emit the account-removed event.
* mail-account-gui.c (mail_account_gui_save): Emit the changed
event on the account-list for the changed account.
svn path=/trunk/; revision=19655
2003-01-24 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_global): Set the
paned_size here.
* folder-browser.c (folder_browser_gui_init): Don't bother
connecting to the hide-deleted, message-display-style, paned-size,
nor show-preview gconf notifications anymore, since we can just
set them when the view becomes active again in
folder-browser-ui.c. Cuts down on extra overhead.
(folder_browser_destroy): No need to disconnect from those
notifications anymore either.
svn path=/trunk/; revision=19626
2002-12-07 leon.zhang <leon.zhang@sun.com>
* component-factory.c (user_create_new_item_cb): transfer the
current acount info, which will be regarded as the sender of
new composer, to send_to_url().
* mail-callbacks.h (send_to_url): Add a new parameter for parent
folder uri.
* mail-callbacks.c (send_to_url): Create composer base on source
account info from parent folder physical uri.
(post_to_url): create composer based on current account from
parent folder physical uri.
* mail-display.c (on_link_clicked): Apply new format of function:
send_to_url.
Fixes bug #35123#35289
2003-01-24 Not Zed <NotZed@Ximian.com>
* mail-local.c (non_equal): We do actually need to check they are
file url's, otherwise, all url's match.
svn path=/trunk/; revision=19611
2003-01-23 Rodney Dawes <dobey@ximian.com>
* folder-browser.c (fb_resize_cb): Use button_release instead of
size_allocate, and get the position from the Paned widget to prevent
calling CORBA all the time for GConf stuff
svn path=/trunk/; revision=19607
* configure.in (idldir): Define componentdir instead of
COMPONENT_DIR. Set it to $privlibdir/components instead of
$libdir/evolution-$(BASE_VERSION)/components.
* gui/component/select-names/Makefile.am (componentdir): Remove
definition; no need to set it here since it's now defined in
configure.in
* gui/component/Makefile.am (componentdir): Likewise.
* gui/Makefile.am (componentdir): Removed definition; this is now
defined in configure.in.
* Makefile.am (componentdir): Removed definition; this is now
defined in configure.in.
* Makefile.am (componentdir): Removed definition; this is now
defined in configure.in.
svn path=/trunk/; revision=19588
2003-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_get_thread_list): Removed.
(mail_config_set_thread_list): Removed.
(mail_config_uri_renamed): No longer needs to change threaded
state for each url either.
(mail_config_write_on_exit): Updated.
* folder-browser-ui.c (folder_browser_ui_add_list): Get the
threaded state via gconf.
* folder-browser.c (folder_browser_toggle_threads): Save the
threaded state.
svn path=/trunk/; revision=19580
* folder-browser-ui.c (folder_browser_ui_setup_view_menus): Use
EVOLUTION_GALVIEWSDIR.
* message-browser.c (set_bonobo_ui): Get
evolution-mail-messagedisplay.xml from EVOLUTION_UIDIR.
* mail-signature-editor.c (mail_signature_editor): Get
evolution-signature-editor.xml from EVOLUTION_UIDIR.
* folder-browser-ui.c (ui_add): Get the evoluiton-mail* XML files
from EVOLUTION_UIDIR.
* Makefile.am (INCLUDES): Define EVOLUTION_GALVIEWSDIR; update
EVOLUTION_IMAGESDIR to include the $(BASE_VERSION).
(gladedir): Version using $(BASE_VERSION).
(etspecdir): Likewise.
(iconsdir): Likewise.
(buttonsdir): Likewise.
(etspecdir): Likewise.
* component-factory.c (owner_set_cb): Look for vfoldertypes.xml in
the new version-aware location.
* mail-summary.c (generate_folder_summaries): Likewise.
* mail-search-dialogue.c (mail_search_dialogue_construct): Likewise.
* mail-vfolder.c (vfolder_load_storage): Likewise.
* mail-autofilter.c (filter_gui_add_from_message): Look for
filtertypes.xml in the new version-aware location.
(mail_filter_rename_uri): Likewise.
(mail_filter_delete_uri): Likewise.
* mail-session.c (main_get_filter_driver): Likewise.
* mail-callbacks.c (filter_edit): Likewise.
svn path=/trunk/; revision=19562
2003-01-22 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): put unrealized html widget
into top level widget (gtk window) before realizing it
destroy temporary widgets (w, html)
svn path=/trunk/; revision=19545
2003-01-20 Jeffrey Stedfast <fejj@ximian.com>
* evolution-mail.schemas: Default to hiding deleted
messages. Fixes bug #35929.
* mail-preferences.c (entry_changed): Removed.
(toggle_button_toggled): Removed.
(settings_changed): New callback that replaces the two above. No
need to have multiple callback functions when the signature is the
same.
svn path=/trunk/; revision=19532
2003-01-18 Larry Ewing <lewing@ximian.com>
* mail-callbacks.c (save_msg_ok): e_question returns a boolean,
don't test for a specific value.
svn path=/trunk/; revision=19518
2003-01-18 Larry Ewing <lewing@ximian.com>
* mail-display.c (html_button_press_event): make the event
handlers return FALSE so that gtkhtml can process the events.
svn path=/trunk/; revision=19514
2003-01-17 Larry Ewing <lewing@ximian.com>
* mail-format.c (handle_text_enriched): wrap eriched entries with
a table so that they get proper indentation.
svn path=/trunk/; revision=19512
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-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-config-druid.c (get_fn): Connect to the toggled event on
the transport_needs_auth toggle button so if the user turns this
off after having deleted the username field, the Next button
becomes re-enabled. Fixes bug #36862.
svn path=/trunk/; revision=19500
2003-01-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (sig_fill_clist): Same as below.
* mail-account-gui.c (sig_fill_options):
mail_config_get_signature_list() now returns a GSList instead of a
GList.
* mail-config.c (signature_new_from_xml): New function to parse a
signature xml blob into a MailConfigSignature structure.
(config_read_signatures): Rewritten to use above function.
(signature_to_xml): New function to write a signature to xml.
(config_write_signatures_num): Removed.
(config_write_signature): Removed.
(config_write_signatures): Rewritten to use signature_to_xml and
gconf.
svn path=/trunk/; revision=19497
* mail-config.h (MailConfigAccount): Add a UID field (to match
EAccount), which never changes and can be used by gconf watchers
to distinguish an account rename from a deletion and creation.
* mail-config.c (account_copy): Create a new UID on the new
account.
(account_new_from_xml): Read the UID. (If it doesn't have one,
make one.)
(account_to_xml): Write the UID.
* mail-config-druid.c (make_account): add a UID to each account
svn path=/trunk/; revision=19496
2003-01-15 Not Zed <NotZed@Ximian.com>
* mail-accounts.c (account_able_clicked): Change the
enable/disable button when the state changes.
svn path=/trunk/; revision=19487
* message-tag-editor.c (message_tag_editor_init): Make dialog
Cancel/OK to match HIG.
* mail-signature-editor.c (do_exit): Make confirmation dialog
Discard/Cancel/Save to match the HIG.
* mail-composer-prefs.c (mail_composer_prefs_construct): Make
dialog Cancel/OK to match HIG.
* mail-account-editor.c (construct): Make the dialog
Apply/Close/OK to match HIG.
svn path=/trunk/; revision=19469
2003-01-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Call
mail_config_save_accounts ().
* mail-config.c (mail_config_save_accounts): New function to save
accounts without having to re-load them.
svn path=/trunk/; revision=19464
2003-01-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (pixmap_press): Change the user_data argument to
be of type gpointer instead of EScrollFrame, since, well, it's not
an EScrollFrame anymore.
svn path=/trunk/; revision=19461
2003-01-13 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_copy): Correctly create the
clipboard buffer by using a nul to delimit the uri and the list of
uids.
svn path=/trunk/; revision=19433
2003-01-13 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_message): Check the
state of message_style in gconf and set the menus accordingly.
* folder-browser.c (folder_browser_destroy): Remove listener for
message_style change notification.
(folder_browser_gui_init): Connect a listener for changes to
message_style.
svn path=/trunk/; revision=19432
2003-01-13 Not Zed <NotZed@Ximian.com>
* mail-mt.c (mail_msg_check_error): hook onto destroy to remove
dialogue from active table.
(error_response): Just destroy on any response, dont unref either.
svn path=/trunk/; revision=19423
2003-01-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_data_wrapper_write_to_stream):
g_strdup the md->charset otherwise we'll get memory corruption
later. This may be why non-usascii text is displaying incorrectly.
svn path=/trunk/; revision=19419
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_list): We also need
to call message_list_set_hidedeleted() here so that any
deactivated folder controls will change to the currently set state
when re-activated.
(folder_browser_ui_add_global): Same for show_preview.
* folder-browser.c (hide_deleted_changed): Don't call
message_list_set_hidedeleted() here.
(folder_browser_toggle_hide_deleted): Instead, call it here. This
way we get a faster "response time". Also, this will make it so
that not all folder controls will regen their message-list at the
same time.
(folder_browser_toggle_preview): Same idea as the hide-deleted
changes.
(show_preview_changed): See above.
* mail-config-druid.c (make_account): Default the new account to
enabled.
(wizard_finish_cb): Don't set enabled here.
svn path=/trunk/; revision=19417
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (main_get_filter_driver): notify-type is a int,
not a bool. Duh.
svn path=/trunk/; revision=19411
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (factory): Updated for function rename.
* mail-config-factory.c (mail_config_control_factory_cb):
Namespaced the function name.
* folder-browser-ui.c (folder_browser_ui_add_global): Don't add
the listener for show_preview here, it was moved into
folder-browser.c so we could detach the listener when the
folder-browser is destroyed. Also prevents a listener being added
multiple times (which was possible? before).
* folder-browser.c (folder_browser_destroy): Remove the gconf
notify handler for show_preview.
(show_preview_changed): Moved here from folder-browser-ui.c
svn path=/trunk/; revision=19408
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (storage_remove_folder): Fixed a situation
in which we could notify the shell listener twice.
svn path=/trunk/; revision=19401