2004-08-30 Jeffrey Stedfast <fejj@novell.com>
* em-folder-tree.c (emft_popup_delete_folder): Set the store and
full_name info on the dialog.
(emft_popup_delete_response): Use the requisite data stored on the
dialog object rather than examining the selection again. Fixes bug
#62665.
svn path=/trunk/; revision=27095
2004-08-30 Not Zed <NotZed@Ximian.com>
** See bug #64377.
* em-folder-selector.c (emfs_response): only set the uri if we
have one to set.
* em-folder-tree.c (em_folder_tree_finalize): Removed
cose using selected_path and selected_uri strings.
(emft_popup_new_folder): "
(emft_popup_copy_folder_selected): "
(emft_tree_selection_changed):
(emft_tree_row_activated): ", free paths after use.
* em-folder-selector.c (emfs_create_name_changed): free
get_selected_uri return.
(emfs_create_name_activate): "
(em_folder_selector_get_selected_path): handle api change, store
the selected_path too.
* em-folder-tree.c (em_folder_tree_get_selected_uri):
de-constify,and get the selection directly from the tree.
(em_folder_tree_get_selected_path): same.
svn path=/trunk/; revision=27092
2004-08-27 Not Zed <NotZed@Ximian.com>
** See bug #63456.
* message-list.c (main_folder_changed): noop if the async_event
pointer is NULL which can happen during destroy.
svn path=/trunk/; revision=27072
2004-08-27 Hans Petter Jansson <hpj@ximian.com>
* em-utils.c (emu_can_save): Don't crash if we're passed a NULL
path. GtkFileChooser can return NULL filenames that get passed
to this function.
svn path=/trunk/; revision=27048
2004-08-24 Jeffrey Stedfast <fejj@novell.com>
Fix for bug #63177
* em-folder-tree.c (emft_drop_async_drop): Check full_name == NULL
rather than full_name[0] since store's have NULL full_names, not
empty string (like they used to).
(emft_drop_folder): Same.
(tree_drag_data_received): Don't abort the drop if the user
dropped on a store, this is allowed (depending on the store).
svn path=/trunk/; revision=27035
2004-08-25 Not Zed <NotZed@Ximian.com>
* mail-component.c (store_info_new): only open the trash or junk
if they're vfolders here. Some stores that implement their own
trash folders are unacceptably slow to open otherwise.
svn path=/trunk/; revision=27027
* importers/evolution-mbox-importer.c: (load_file_fn):
* importers/evolution-outlook-importer.c: (load_file_fn):
* importers/mail-importer.c: (import_folders_rec):
Convert filename to UTF-8 from local encoding before displaying it.
svn path=/trunk/; revision=27019
2004-08-23 Not Zed <NotZed@Ximian.com>
* em-folder-tree.c (em_folder_tree_set_selected): store the
select-uri on the view not in the thread message.
(emft_get_folder_info__free):
(emft_get_folder_info__got): select_uri removed.
(em_folder_tree_set_selected_list): don't set each selected
separately, do it as a list.
(emft_maybe_expand_row): if this is a selected row, select it too.
(emft_get_folder_info__got): do no pending set selection stuff
here.
(em_folder_tree_set_selected): just call set_selected_list with
one item.
(emft_expand_node): if this is a selected row, select it too.
(emft_get_folder_info__got): no longer need to track lost folders.
(emft_tree_row_activated): clear the pending select list.
(emft_tree_selection_changed): and here too.
(em_folder_tree_get_selected_uris): get the lost folders from the
un-applied selected ones now. also fixes a list appending error.
(emft_tree_user_event): find out when the user hits a key or mouse
button to override any pending single-user select and don't
override the cursor setting either.
(emft_tree_row_expanded): set the 'load subdirs' false before we
load it, so we don't try to load it again if its still being
loaded.
(emft_get_folder_info__got): don't check the loaded flag here, it
should be set by the callee, also check the exception return.
svn path=/trunk/; revision=27002
2004-08-13 Jeffrey Stedfast <fejj@novell.com>
Fix for bug #62812
* em-format-html-display.c (em_format_html_display_search): Set
the search_dialog to be transient for the parent window and make
sure to destroy the search_dialog when the parent gets destroyed.
svn path=/trunk/; revision=26995
2004-08-16 Not Zed <NotZed@Ximian.com>
** See bug #62963.
* message-list.c (build_tree, build_flat): define selected in
declaration block, not inline. Spotted by Vincent Noel
<vnoel@cox.net>
svn path=/trunk/; revision=26959
2004-08-13 Not Zed <NotZed@Ximian.com>
* em-utils.c (em_utils_message_to_html): don't include the
terminating NUL in the data length.
(em_utils_part_to_html): nor here.
svn path=/trunk/; revision=26942
2004-08-12 Carlos Garnacho Parro <carlosg@gnome.org>
* em-utils.c: Optionally use GtkFileChooser if compiled against
Gtk+ >= 2.4.0
* mail-config.glade: added the "use_filechooser" property to the
various GnomeFileEntries
svn path=/trunk/; revision=26897
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-03 Jeffrey Stedfast <fejj@novell.com>
* em-composer-utils.c (format_sender): If type="{Sender}" and name
is an empty string, use the addr. Fixes bug #62377
svn path=/trunk/; revision=26820
2004-08-01 JP Rosevear <jpr@novell.com>
* default/C/Inbox: Update to just call us "Evolution" and be more
accurate about the new features included
svn path=/trunk/; revision=26792
2004-07-28 Not Zed <NotZed@Ximian.com>
** See #61958.
* mail-folder-cache.c (real_flush_updates): remove the soreinfo
lookup, it isn't used anywhere anymore.
(mail_note_folder): hook onto the events outside of the lock, and
don't pass the mfi pointer anymore.
(mail_note_store): hook onto the events outside of the lock.
(folder_changed, folder_finalised, folder_renamed): lookup the mfi
if needed, it is no longer passed to the callback.
(unset_folder_info): change unhook calls for new parameters.
svn path=/trunk/; revision=26764
2004-07-28 Not Zed <NotZed@Ximian.com>
** See #61940.
* em-composer-utils.c (composer_set_body): add emformat source arg.
(em_utils_reply_to_message): take source arg. Fixed callers.
* em-utils.c (em_utils_message_to_html): take a source formatter
argument, so we can copy/honour settings from it.
(em_utils_part_to_html): similar.
svn path=/trunk/; revision=26757
2004-07-27 Not Zed <NotZed@Ximian.com>
** See #57972.
* message-list.c (search_func): removed.
(ml_search_path): new function to just search, not actually change
the cursor like e_tree_find does.
(message_list_can_select): new function, returns true if the
selection specified is possible without changing the selection.
(message_list_select): rewritten.
(select_path): helper to select a path in a way that 'works
reliably'.
(message_list_select_next_thread): rewritten to use the
table-adapter, so it properly handles arbitrary sorting.
* em-folder-view.c (em_folder_view_get_popup_target): setup
next/prev flags as appropriate.
(emfv_enable_map[]): setup next/prev flags.
* em-folder-view.h: added last and first message status bits to
folder view select mask.
svn path=/trunk/; revision=26749
2004-07-23 Radek Doulik <rodo@ximian.com>
* added len parameter to em_utils_part_to_html and
em_utils_message_to_html. it is used to return length of returned
buffer. we use that info later when setting composer body content.
svn path=/trunk/; revision=26747
2004-07-22 Not Zed <NotZed@Ximian.com>
* mail-component.c (impl_createControls): dont call
e_error_default parent here, we dont have access to the toplevel
yet.
svn path=/trunk/; revision=26728
2004-07-23 Not Zed <NotZed@Ximian.com>
** See bug #61824.
* em-popup.c (emp_part_popup_reply_sender)
(emp_part_popup_reply_list, emp_part_popup_reply_all): use new
api. We have no uid/folder to update here.
* em-folder-view.c (emfv_message_reply): use new api for replying
so we can supply the message content and have flags updated.
* em-composer-utils.c (em_utils_reply_to_message): added optional
folder and uid.
(em_utils_reply_to_message_by_uid): removed, use the other
interface instead.
(reply_to_message): just call reply_to_message if we get a message
to reply to.
(em_utils_reply_to_message): if no message supplied, load it via
the uid.
svn path=/trunk/; revision=26727
2004-07-22 Not Zed <NotZed@Ximian.com>
* em-utils.c (em_utils_part_to_html, em_utils_message_to_html):
set the session on the formatter. See #61767.
2004-07-22 Not Zed <NotZed@Ximian.com>
** See bug #61747.
* message-list.c (search_func): don't emit a message_selected here
(god knows why we did?). Don't update cursor_uid either, just
clear it.
(message_list_select): select the path if we find it here, causing
the cascade of selection action.
svn path=/trunk/; revision=26710
2004-07-19 Jeffrey Stedfast <fejj@novell.com>
* em-migrate.c (em_migrate_folder): Free uri and name
strings. Fixes a leak.
svn path=/trunk/; revision=26688
2004-07-13 Jeffrey Stedfast <fejj@novell.com>
* em-folder-view.c (emfv_message_reply): Chck that the selection
is active. Hopefully this will fix bug #61427.
svn path=/trunk/; revision=26667
2004-07-09 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c (emfb_folder_expunge): only call expunge if
the folder is set.
(emfb_enable_map[]): only enable expunge menu item if we have a
valid folder set.
** See bug #60900.
* em-format-html.c: convert the text_inline_parts hash to be keyed
off the partid.
(efh_free_inline_parts): -> efh_free_cache and fix to do it.
* em-format.c (emf_free_cache): make the inline table cache other
info too based on partid, this frees the structure.
(emf_clone_inlines): copy all of the cache data.
(em_format_is_inline): use the new data structure to determine
state.
(em_format_set_inline): same for setting.
(emf_multipart_signed): cache/lookup the cached part.
(emf_insert_cache): helper to add a cache entry.
(emf_multipart_encrypted): cache decrypted part.
(emf_application_xpkcs7mime): same.
2004-07-08 Not Zed <NotZed@Ximian.com>
** See bug #60900 (related only).
* em-format-html-display.c (efhd_attachment_show): let set_inline
do the redraw itself if required. kill some dead code.
* em-format.c (em_format_set_inline): trigger a redraw here like
the other em_format_set methods, if the state changed.
* em-format.c (emf_format_clone): free inline table keys & setup
string hash table.
* em-format-quote.c (emfq_format_attachment):
* em-format-html-display.c (efhd_format_attachment):
* em-format-html.c (efh_format_attachment): is_inline api changes.
* em-format-html-display.c (efhd_attachment_show): set_inline api
changes.
* em-format.c (em_format_is_inline): make this use the partid
rather than the part address as a key, which may change.
(emf_init): make the inline talbe a string hashtable.
(emf_finalise): free inline keys.
(emf_clone_inlines): copy the key string.
svn path=/trunk/; revision=26614
2004-06-29 Not Zed <NotZed@Ximian.com>
* em-folder-tree-model.c (folder_created_cb): call
folder_subscribed directly from the async function not
foldre_subscribed_cb, otherwise we run out of order. Part of
#60775.
svn path=/trunk/; revision=26547
2004-06-23 Jeffrey Stedfast <fejj@novell.com>
* em-folder-selector.c (em_folder_selector_get_selected_path):
Don't prepend the path string with a '/'.
* em-folder-tree.c (em_folder_tree_create_folder): This takes a
full_name so update the argument to make that clear.
(emft_create_folder): Same and also don't strip a leading '/'
svn path=/trunk/; revision=26513
2004-06-24 Rodney Dawes <dobey@novell.com>
* em-utils.c (em_utils_add_address): Add code to set the parent,
position, and type hint of the "Add address" dialog
Fixes#60030
svn path=/trunk/; revision=26501
2004-06-23 Not Zed <NotZed@Ximian.com>
** See #54030.
* e-searching-tokenizer.c (e_searching_tokenizer_match_count):
only return a count if we're using the primary search string.
* em-format-html-display.c (efhd_search_response): set the primary
search string to NULL instead of resetting it.
(efhd_update_search): dont noop if we have a null search text,
just set an empty search.
* e-searching-tokenizer.c (e_searching_tokenizer_reset): remove
this, revert jeff's fixes for 54030. this is incomplete and so
doesn't work either (search text stays remembered and secondary
search text lost too).
** See #60523.
* em-folder-view.c (emfv_finalise): unhook the folder changed
before destroying the async thing, and move it all to destroy
event anyway.
(emfv_destroy): as above.
svn path=/trunk/; revision=26472