2006-06-30 Harish Krishnaswamy <kharish@novell.com>
Enhanced search functionality. patch submitted by Johnny Jacob
Reviewed and committed by Harish.
svn path=/trunk/; revision=32207
2006-01-09 Kjartan Maraas <kmaraas@gnome.org>
* em-account-editor.h: s/int/guint/g for 1-bit bitfield.
* em-composer-utils.c: (em_utils_redirect_message): Remove cruft
* em-folder-tree.c: (emft_drop_target): use guint for 1-bit bitfield
and rename a variable with a name clash.
* em-folder-utils.c: (em_folder_utils_rename_folder): Rename var to
avoid name clashes.
* em-folder-view.c: guint for 1-bit bitfields.
* em-folder-view.h: Same as above.
* em-format-html-print.h: Again.
* em-format-html.c: (efh_text_html), (efh_multipart_related): Add comments
* em-format.c: (emf_multipart_alternative): Add comment about using var that
is passed in rather than a local variable.
* em-inline-filter.c: (emif_scan): Remove unused var. Mark code static.
* em-mailer-prefs.h: guint for 1-bit bitfields.
* em-migrate.c: (em_migrate_folder): mark a struct static. remove unused var
* em-subscribe-editor.c: guint for 1-bit bitfield
* em-utils.c: remove unused function
* em-vfolder-rule.c: mark array static
* importers/mail-importer.c: (decode_status): Remove unused code. Use guint
for 1-bit bitfield.
* mail-autofilter.c: (rule_from_message): rename a variable
* mail-component.c: guint for 1-bit bitfield
* mail-folder-cache.c: (update_1folder): remove unused code
* mail-mt.c: mark some structs static
* message-list.c: (message_list_select_uid), (ml_value_to_string),
(ml_tree_value_at), (find_next_undeleted), (build_tree),
(build_flat): Remove unused code and fix some format specifiers.
svn path=/trunk/; revision=31448
2006-01-16 Srinivasa Ragavan <sragavan@novell.com>
** Fixes bug #218570
* em-folder-browser.c (emfb_expand_all_threads),
(emfb_collapse_all_threads), (emfb_set_folder), (emfb_activate):
Added code to handle expande/collapse all and call e-tree for regen of
the list.
* message-list.c (load_tree_expand_all),
(message_list_set_threaded_expand_all),
(message_list_set_threaded_collapse_all),
(message_list_set_expand_all), (regen_list_regened): Added code to
conditionally check for expand/collapse all and save the state after
the operation.
* message-list.h: Added state variable for expand/collapse all of
threads.
svn path=/trunk/; revision=31204
2005-12-18 Tor Lillqvist <tml@novell.com>
* em-folder-browser.c
* em-folder-view.c
* em-format-html.c
* em-format-html-display.c
* em-mailer-prefs.c
* em-message-browser.c
* em-migrate.c
* em-subscribe-editor.c
* em-sync-stream.c
* em-utils.c
* em-vfolder-editor.c
* em-vfolder-rule.c
* mail-autofilter.c
* mail-component.c
* mail-config.c
* mail-folder-cache.c: Use gstdio wrappers. Construct pathnames of
glade, xml, etspec and png files at run-time. Use
g_filename_{to,from}_uri().
* em-folder-browser.c (emfb_init)
* em-folder-view.c (emfv_finalise)
* em-message-browser.c (emmb_init): As EMFolderView::ui_files now
always is a list of filenames constructed with g_build_filename(),
use g_free() on each list entry before calling g_slist_free() on
the list.
* em-folder-tree-model.c (em_folder_tree_model_load_state): Use
e_xml_parse_file().
* em-migrate.c: Bypass all the code for upgrading from 1.x on Win32.
(emm_setup_initial): Use GDir instead of dirent.
* em-sync-stream.c
* mail-folder-cache.c: Use pthread_equal() to compare pthread_t
values.
* em-vfs-stream.c: No EINPROGRESS or ELOOP on Win32.
svn path=/trunk/; revision=30854
2005-08-11 Parthasarathi Susarla <sparthasarathi@novell.com>
* em-folder-view.c
(emfv_enable_menus): return the target in any case.
It will be an empty target and not NULL.
Fixes bug ** 312420
svn path=/trunk/; revision=30086
2005-08-09 Not Zed <NotZed@Ximian.com>
** See #312715.
* em-folder-tree.c (emft_drop_folder_rec): removed.
(emft_drop_folder): call em_folder_utils_copy_folders to perform
the operation rather than: doing it sync when it shouldn't be, and
2; copying code redundantly.
* em-folder-utils.c (em_folder_utils_move_folder): remove this
redundant api.
(em_folder_utils_copy_folder): add delete flag.
(em_folder_utils_copy_folders): export this function. fix strange
argument order.
svn path=/trunk/; revision=30066
2005-08-07 Rodney Dawes <dobey@novell.com>
* em-folder-browser.c (emfb_search_items):
* em-folder-tree-model.c (sort_cb, em_folder_tree_model_load_state):
* em-folder-tree.c (emft_drop_target):
* em-folder-view.c (emfv_popup_items, emfv_uri_popups):
* em-utils.c:
* em-vfolder-editor.c (em_vfolder_editor_new):
* em-vfolder-rule.c (em_vfolder_editor_sourcelist_new):
* mail-dialogs.glade:
* mail-vfolder.c (vfolder_setup_desc, vfolder_setup_do):
(vfolder_adduri_desc, vfolder_load_storage, vfolder_edit):
(vfolder_edit_rule, vfolder_gui_add_rule):
* mail.error.xml:
Change instances of "vfolder" that appear in the UI to use the term
"Search Folder" instead
Update some comments to use the term "Search Folder" instead of vfolder
svn path=/trunk/; revision=30024
2005-08-03 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c (emfb_set_folder): not here.
* em-folder-view.c (emfv_set_folder): ref the folder here.
2005-08-03 Not Zed <NotZed@Ximian.com>
* em-folder-view.c (emfv_message_reply): try to fix#309647, only
act if the selection is actually active.
svn path=/trunk/; revision=29976
2005-07-21 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c: reverted dobey's busted view->hide* menu
stuff.
* em-account-editor.c (emae_option_entry): if we get a null
default, then set "" on the entry.
(emae_option_entry): set the default value on the url if it
doesn't exist already.
svn path=/trunk/; revision=29826
2005-06-23 Kaushal Kumar <kakumar@novell.com>
* e-util/Makefile.am, widgets/e-timezone-dialog/Makefile.am,
addressbook/gui/search/Makefile.am,
plugins/groupwise-features/Makefile.am: Added widgets in INCLUDES.
Updated the include paths to use misc instead of widgets/misc.
svn path=/trunk/; revision=29574
2005-05-31 Rodney Dawes <dobey@novell.com>
* em-folder-browser.c (emfb_view_hide_read, emfb_view_show_selected):
(emfb_view_show_all): Update these methods to use the listener method
of access from bonobo as they are radio buttons now
(emfb_verbs): Comment out the verbs for the above methods, as they are
configured through add_listener now
(emfb_enable_map): s/ViewHideSelected/ViewShowSelected/
(emfb_activate): Add the listeners for the radio buttons for filtering
the message list for unread, selected, or all messages
svn path=/trunk/; revision=29432
2005-05-19 Not Zed <NotZed@Ximian.com>
* em-folder-utils.h: fix rodney's name choices. fix
multiple-inclusion. fix forward references. fix all callers.
add many fixme's for the busted api's.
* em-format-quote.c (emfq_format_clone): use pseudo mime type to
find message formatter.
* em-format-html-display.c (efhd_format_message): remove, it
didn't do anything.
* em-format-html.c (efh_format_message): make this a handler
callback.
* em-format.c (emf_message_rfc822): make this use the pseudo
mime-type x-evolution/message/rfc822 instead of the hardcoded
format_message callback.
* em-format-html-display.c (efhd_message_prefix): make this use a
pseudo-mime-type handler rather than hard-coded, so it can be
overridden by a plugin.
svn path=/trunk/; revision=29382
2005-05-13 Rodney Dawes <dobey@novell.com>
* plugins/Makefile.am (DIST_SUBDIRS): Add profiler so that it gets
disted properly
2005-05-13 Rodney Dawes <dobey@novell.com>
* Makefile.am: Add new em-folder-utils.[ch] abstraction
* em-folder-browser.c: Update for new menu layout
Add new methods to handle the actions that were previously only
available from the context menu when right-clicking on a folder
* em-folder-selector.c (emfs_response): Just call emfu_folder_create
if the user wants to create a new folder in the selector dialog
(em_folder_selector_get_selected_path): Clean up the code to fix a
couple potential crashes
* em-folder-tree.[ch]: Add methods to get pointers to a CamelFolder or
CamelFolderInfo object for the selected item in the tree
Add a method to get a pointer to an EMFolderTreeModelStoreInfo object
for the selected store in the tree
Move folder operations out into em-folder-utils.[ch] so that they
are abstracted from the tree and can be used by methods other than
the internal context menu
* em-folder-utils.[ch]: Move the folder operations code to here
* em-folder-view.c: Update for the new menu layout
Fix Mark as Read/Unread in the context menu to only show up in the list
* mail-component.c (create_item): Just call emfu_folder_create here
when the user requests to create a new folder from the New toolbar item
2005-05-13 Rodney Dawes <dobey@novell.com>
* org-gnome-mailing-list-actions.xml: Update for the new menu layout
2005-05-13 Rodney Dawes <dobey@novell.com>
* org-gnome-plugin-manager.xml: Update for new menu layout
2005-05-13 Rodney Dawes <dobey@novell.com>
* org-gnome-save-attachments.xml: Update for new menu layout
2005-05-13 Rodney Dawes <dobey@novell.com>
* e-shell-window.c (setup_widgets): Update for the new menu layout by
putting the "component" switching items under the "Tools" menu
2005-05-13 Rodney Dawes <dobey@novell.com>
* *.xml: Update to the new menu layout
2005-05-13 Rodney Dawes <dobey@novell.com>
* e-filter-bar.[ch]: Update for the new menu layout
svn path=/trunk/; revision=29354
2005-04-28 Parthasarathi Susarla <sparthasarathi@novell.com>
* em-folder-view.c (emfv_set_folder): remove a call to
refresh folder from here
* em-folder-browser.c (emfb_set_folder): call
mail_refresh_folder here
svn path=/trunk/; revision=29243
2005-02-25 Mengjie Yu <meng-jie.yu@sun.com>
* em-folder-browser.c: (emfb_edit_select_all):make the 'select all'
work in all conditions.
Fixes#72545
svn path=/trunk/; revision=28887
2005-02-01 Rodney Dawes <dobey@novell.com>
* em-folder-browser.c: Replace "_Virtual Folder" with "_vFolder" for
the search menu to create a vfolder from a search
* em-folder-tree-model.c (sort_cb): s/VFolders/vFolders/ for sorting
in the folder tree
(em_folder_tree_model_load_state): s/VFolders/vFolders/ in a comment
* em-folder-view.c: s/VFolder/vFolder/ for the popup menu
* em-vfolder-editor.c (em_vfolder_editor_new): Replace the string
"Virtual _Folders" with "v_Folders" for the label
* em-vfolder-rule.c (em_vfolder_editor_sourcelist_new): Repalce the
string "VFolder source" with "vFolder source"
* mail-errors.xml:
* mail-errors.xml.h: Replace "virtual folder" with "vFolder" in an
error string
* mail-vfolder.c (vfolder_setup_desc): s/vfolder/vFolder/
(vfolder_setup_do): s/vfolder/vFolder/
(vfolder_load_storage): s/VFolders/vFolders/
(vfolder_edit_rule): s/VFolder/vFolder/
(vfolder_gui_add_rule): s/VFolder/vFolder/
Fixes#68137
svn path=/trunk/; revision=28664
2005-01-18 Not Zed <NotZed@Ximian.com>
** See bug #70768.
* em-folder-browser.c (emfb_mark_all_read): get the uid list from
the message-list (view) rather than folder (model).
* message-list.c (message_list_foreach): removed, no longer used.
(message_list_get_uids): new function replacing ml_foreach, get
visible uids's of messages.
svn path=/trunk/; revision=28425
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-11-30 Not Zed <NotZed@Ximian.com>
** See bug #68958.
* em-folder-browser.c (emfb_list_built): if the pending selected
uid isn't in the folder (yet), don't clear it, just keep it
around. Hook/unhook folder_changed events.
(emfb_folder_changed, emfb_gui_folder_changed): if a select_uid is
set, and the message is now available, then select it.
svn path=/trunk/; revision=28022
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-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-16 Not Zed <NotZed@Ximian.com>
** See #56479.
* em-utils.c (em_utils_in_addressbook): use the main thread to
setup the addressbook list.
(em_utils_in_addressbook): only check against the "completion"
sources, not all of them.
2004-06-15 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c (emfb_mail_stop): call mail_cancel_all to
implement the stop button.
* em-utils.c (emu_addr_sources_refresh): don't unref the group
list, otherwise the sources become broken now (?).
(em_utils_in_addressbook): add some locking. add cancellation.
this is almost certainly going to cause issues.
* mail-mt.c (mail_cancel_hook_add, mail_cancel_hook_remove)
(mail_cancel_all): new functions to implement a global mailer stop
button.
svn path=/trunk/; revision=26363
2004-05-18 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c (em_folder_browser_show_preview): don't
nomarkseen when we restore the message when we show the preview.
#58387.
svn path=/trunk/; revision=25956
2004-05-10 Not Zed <NotZed@Ximian.com>
* em-folder-view.c (emfv_activate): cleanup the view menus if they
were created.
* em-folder-view.h: added list_active bit, means the view is
showing the list and needs e.g. view menus.
* em-folder-view.c (emfv_setup_view_instance): was
create_view_instance. Now also setup the menu's if we're showing the list.
* em-folder-browser.c (emfb_create_view_menus): removed. moved
functionality into emfolderview.
2004-05-07 Not Zed <NotZed@Ximian.com>
* mail-account-editor.c: include missing header.
svn path=/trunk/; revision=25827
2004-05-07 Not Zed <NotZed@Ximian.com>
** See bug #57935.
* em-folder-view.c (emfv_set_message): add new arg, nomarkseen,
don't mark the selected message seen once its loaded.
(emfv_list_message_selected): clear the nomarkseen flag once we've
processed the selection.
(emfv_list_done_message_selected): handle the nomarkseen flag,
don't mark a message seen if it was explictly selected.
* em-folder-browser.c (emfb_list_built): use
em_folder_view_select_message rather than doing it via the
messagelist directly.
svn path=/trunk/; revision=25821
2004-05-05 Not Zed <NotZed@Ximian.com>
** See bug #57720.
* em-folder-browser.c (emfb_create_view_menus): removed some stuff
done in create_view_instance in the superclass.
* em-folder-view.c (emfv_create_view_instance): moved here from
em-folder-browser, setup the view instance for the folder.
(emfv_set_folder): if the folder is set, create the view instance.
* em-folder-browser.c: moved the galview instance and menu
pointers to EMFolderView, since they're basically meta-data on the
messagelist @ to fix issues.
* em-folder-view.c (em_folder_view_open_selected): copy over the
threaded list value when the message browser is brought up.
** some clean up
* evolution-mail.schemas.in.in: removed xmailer_mask stuff.
* em-migrate.c (mail_display_map[]): Removed xmailer_mask stuff.
* em-folder-view.c (emfv_setting_notify): removed xmailer_mask stuff.
* em-format-html.c (em_format_html_set_xmailer_mask): removed.
This isn't used anymore.
** Fixes the double-draw on separate mail view.
* message-list.c (on_cursor_activated_cmd): noop if the cursor and
uid match for all cases (clearing uid).
(on_selection_changed_cmd): noop if the cursor and new selection
hasn't changed & fix a memleak.
svn path=/trunk/; revision=25806
2004-05-04 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #55303, but ideally there would be a nicer way of
doing this - likely with some added ETree API but that's not
likely to happen anytime soon.
* em-folder-browser.c (scroll_idle_cb): Recall the saved scrollbar
position state and set it, then reconnect to the
message_list_scrolled signal.
(emfb_list_built): Calculate a default scrollbar position for
scroll_idle_cb to use if there's no saved state.
(emfb_set_folder): Disconnect from the message_list_scrolled
signal and the idle_scroll_id.
(emfb_list_scrolled): Save the scrollbar position state.
(emfb_destroy): Disconnect from list_scrolled_id and
idle_scroll_id.
svn path=/trunk/; revision=25794
2004-05-03 Not Zed <NotZed@Ximian.com>
* em-composer-utils.c (create_new_composer): take fromuri and
subject to set the basic headers/account.
(em_utils_compose_new_message)
(em_utils_compose_new_message_with_mailto, forward_attached)
(em_utils_forward_attached, forward_non_attached)
(em_utils_forward_inline, em_utils_forward_quoted)
(em_utils_forward_message, em_utils_forward_messages): Take the
from folder uri to set the from account if it can. Fixed all
callers. For #57964.
svn path=/trunk/; revision=25747
2004-04-21 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c (emfb_activate): dont desensitise
HideDeleted just 'cause we have no folder, it needs to depend on
Trash folder only.
(emfb_set_folder): set the hidedeleted sensitivity based on
whether we have a trash folder or not. Fixed#57226.
svn path=/trunk/; revision=25551
2004-04-14 Not Zed <NotZed@Ximian.com>
* em-folder-view.c (emfv_set_folder_uri): ugh, use the queued
thread to get the folder, otherwise we can get folders set on the
display out of order.
* message-list.c (message_list_set_search): if we set this while
frozen, save the search elsewhere.
(message_list_thaw): if we had a frozen-time search, use it when
we regenerate.
* em-folder-browser.c (emfb_set_folder): freeze/thaw the
messagelist around changes so we don't have multiple updates fire
off changing folders.
(emfb_activate): remove an unused variable i never used.
* message-list.c (message_list_freeze, message_list_thaw): lock
some updates to the ui, so you can do things like set folder and
search atomically.
(message_list_set_threaded, message_list_set_hidedeleted)
(message_list_set_search, message_list_hide_uids)
(message_list_hide_clear, message_list_set_folder): dont refresh
the list if we're frozen.
svn path=/trunk/; revision=25458
2004-04-14 Not Zed <NotZed@Ximian.com>
** See bug #56149.
* em-folder-view.c (emfv_edit_cut): similar to below, use focus to
determine who we select from.
(emfv_edit_copy): ditto.
* message-list.c: Remove primary selection stuff. It just annoys.
* em-folder-browser.c (emfb_edit_copy): use focus rather than
selection owner to determine who to copy from.
(emfb_edit_cut): similarly.
svn path=/trunk/; revision=25455