2005-08-02 Srinivasa Ragavan <sragavan@novell.com>
* em-utils.c: (emu_get_save_filesel) (emu_save_part_response)
(emu_save_messages_response) Fixed a bug where the last path is not
preserved well.
svn path=/trunk/; revision=29950
2005-07-25 Srinivasa Ragavan <sragavan@novell.com>
* em-format-html-display.c: (efhd_init) (efhd_finalise) ()
(efhd_attachment_image) (efhd_attachment_button) (efhd_format_attachment)
Added code to create a attachment bar.
* em-format-html.c: (efh_format_message) Added code to add bar
at the beginning of the message.
* em-popup.[ch]: (em_popup_target_new_attachments) (emp_part_popup_set_background)
(emp_standard_menu_factory) Added code to handle the popup menu inside the attachment
bar.
* em-utils.[ch]: (em_utils_edit_filters) (emu_get_save_filesel)
(em_utils_save_part) (em_utils_save_messages) Added code to handle save selected and
save all options of the attachment bar.
svn path=/trunk/; revision=29866
2005-06-17 Kaushal Kumar <kakumar@novell.com>
* Retired GAL from Head. The relevant files have moved inside
evolution. Thanks to JP Rosevear for performing the cvs surgery. The
files have been moved in the following order.
evolution/e-util <- gal/gal/util
evolution/a11y <- gal/gal/a11y
evolution/a11y/e-table <- gal/gal/a11y/e-table
evolution/a11y/e-text <- gal/gal/a11y/e-text
evolution/widgets/table <- gal/gal/e-table
evolution/widgets/text <- gal/gal/e-text
evolution/widgets/misc <- gal/gal/widgets
evolution/widgets/misc/pixmaps <- gal/gal/widgets/pixmaps
evolution/widgets/menus <- gal/gal/menus
Following is the summary of changes done to fix the build:-
- New files added to cvs repository,
- a11y/e-table/Makefile.am
- a11y/e-text/Makefile.am
- widgets/table/Makefile.am
- widgets/text/Makefile.am
- widgets/misc/pixmaps/Makefile.am
- iconv-detect.h
- iconv-detect.c
- Updated configure.in.
- Updated all the relevant Makefile.am files.
- Updated the include paths to replace all gal references.
- Updated the marshal list to suit gal files requirements.
svn path=/trunk/; revision=29522
2005-02-28 JP Rosevear <jpr@novell.com>
* configure.in: bump version, requires
2005-02-28 JP Rosevear <jpr@novell.com>
* configure.in: add startup wizard plugin
2005-02-28 JP Rosevear <jpr@novell.com>
* plugins/Makefile.am: dist standard and experimental plugins
* configure.in: move "all" plugins to standard and experimental
and default to building the standard set
svn path=/trunk/; revision=28927
2005-02-21 Not Zed <NotZed@Ximian.com>
** See bug #35219
* em-utils.c (em_utils_flag_for_followup_clear): clear the flag
tags rather than setting them to "". Also change to using newer
messageinfo api.
(tag_editor_response, em_utils_flag_for_followup)
(em_utils_flag_for_followup_completed): some cleanup/api stuff.
svn path=/trunk/; revision=28858
2005-01-18 Not Zed <NotZed@Ximian.com>
* em-format-html.c (emfh_gethttp): kill old 'load http 0 now=0' debug.
** See bug #70563.
* em-utils.c (emu_set_proxy, emu_proxy_setup)
(em_utils_get_proxy_uri): make sure the init code is called from
main thread (gconf usage), and add locking for data consistency.
svn path=/trunk/; revision=28424
2004-09-01 Jeffrey Stedfast <fejj@novell.com>
Fix for bug #63377 and prevention of similar cases.
* em-format.c (emf_finalise): Free the default_charset.
(emf_format_clone): Clone the default_charset - this prevents the
particular crash described in bug #63377.
* em-utils.c (em_utils_message_to_html): If source is NULL, set
our own default charset (from the user's gconf key) on the
formatter to make sure there's always a source charset for
conversion to UTF-8.
svn path=/trunk/; revision=27122
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-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-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-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>
* 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-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-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 Not Zed <NotZed@Ximian.com>
** See #59885.
* em-format-html-quote.[ch]: remove and remove from build, not
used.
* Makefile.am (libevolution_mail_la_LIBADD): add libeabutil and
evolution-smime.
* mail-component-factory.c (factory): there is no mail_config
anymore.
2004-06-16 Not Zed <NotZed@Ximian.com>
* em-utils.c (em_utils_selection_get_urilist): handle comments in
the urilist. Can't remember the rfc for it.
svn path=/trunk/; revision=26374
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-06-11 Not Zed <NotZed@Ximian.com>
* em-utils.c (em_uri_from_camel): handle a null path or fragment.
* em-folder-tree-model.c (em_folder_tree_model_add_store): set the
full name of the store to "". Fixes#59925 and probably other
issues. Related to the removal of folderinfo->path.
svn path=/trunk/; revision=26305
2004-05-19 Chris Toshok <toshok@ximian.com>
* importers/pine-importer.c (import_contacts): use the new
e_book_new_* and e_book_open apis.
* em-utils.c (em_utils_in_addressbook): use the new e_book_new_*
and e_book_open apis.
svn path=/trunk/; revision=26001
2004-05-19 Not Zed <NotZed@Ximian.com>
* em-inline-filter.c (emif_add_part): if we end up with an
application/octet-stream part, pre-snoop it so we set the right
mime type to start with. Fixes#58554.
* em-format.c (emf_snoop_part): removed, now in em-utils.
* em-utils.c (em_utils_snoop_type): rah rah, snoop a mime part's
type.
* em-format-html.c (efh_text_plain): Revert jeff's fix for #56290.
Ugh, we already have all the citation info in local data. Removed
the need for gconf too.
svn path=/trunk/; revision=25974
2004-05-17 Not Zed <NotZed@Ximian.com>
** Bug #6556.
* message-list.c (ml_drop_async_desc, ml_drop_async_drop)
(ml_drop_async_done, ml_drop_async_free, ml_drag_data_action)
(ml_drop_popup_copy, ml_drop_popup_move, ml_drop_popup_cancel)
(ml_tree_drag_data_received): implement async drop operations and
the ask drop option menu.
2004-05-14 Not Zed <NotZed@Ximian.com>
** Bug #6556.
* message-list.c (ml_selection_received_uidlist): removed, not
needed anymore.
(ml_selection_received): call get_uidlist to paste the selection.
(ml_tree_drag_data_received): same here.
* em-folder-tree.c (emft_drop_uid_list): removed, not needed
because of below change.
* em-utils.c (em_utils_selection_get_uidlist): actually do the
copy now, don't just decode the data.
* em-folder-tree.c (tree_drag_data_received): just copy the
selection data data itself, dont decode yet.
(emft_import_message_rfc822): removed, not needed, use em utils
stuff instead.
(emft_drop_message_rfc822): same.
(emft_drop_text_uri_list): same.
(emft_drop_async_free): simply free stuff.
(emft_drop_async_drop): call em_utils stuff where they exist to do
the drop.
* message-list.c (ml_tree_drag_data_get): send x-mailbox instead
of message/rfc822 for the mailbox.
(ml_tree_drag_data_received): handle drop of x-mailbox differently
to message/rfc822.
(ml_tree_drag_motion): implement so proper options are setup
whilst dragging.
(message_list_construct): seutp the drag src/dest types for
changes typs and with ASK action.
* em-utils.c (em_utils_read_messages_from_stream): dont unref the
stream when we get it.
(em_utils_selection_get_mailbox): add an argument to scan from or
not, for message/rfc822 vs x-mailbox drops.
(em_utils_read_messages_from_stream): Same.
* em-folder-tree.c (tree_drag_motion): default to move properly.
* message-list.c (ml_selection_received_uidlist): take a move flag.
(ml_tree_drag_data_received): handle move action.
* em-folder-tree.c (em_folder_tree_new_with_model): got sick of
this bloody warning.
* em-format.c (default_headers[]): just remove x-mailer from the
header list, if it isn't on by default. This is the default list.
(em_format_default_headers): loop through everything.
svn path=/trunk/; revision=25915
2004-05-12 Not Zed <NotZed@Ximian.com>
* mail-errors.xml.h: add for translators.
* Makefile.am (%.xml.h): fix for xml i18n stuff.
* mail-errors.xml: moved from the .xml.in file.
2004-05-11 Not Zed <NotZed@Ximian.com>
* em-utils.c (em_uri_from_camel): pass an exception to
provider_get, it relies on one.
* em-migrate.c (em_migrate_1_4): fix some error messages, and fail
with fatal errors properly.
(em_migrate_local_folders_1_4): EEP! Who cares if this fails!
Well I do. Setup exceptions and return codes.
(em_migrate_dir): and here too. Sloppy!
(em_migrate_dir): change the code slightly, 1.4 would recurse all
folders, even if the parent folder doesn't have a
folder-metadata.xml. Make sure we copy that mode.
(get_local_store_uri): Make it copy the 1.4 behaviour properly.
Any error -> use defaults.
(em_migrate_dir): lots of changes.
(mbox_build_filename): take the output string as an arg.
(cp): add an argument to overwrite/append or require a unique
empty file.
(cp_r): add mode arg here too.
(em_migrate_folder): split the folder copy stuff from em_migrate
dir entirely. blah.
(em_upgrade_accounts_1_4): can't fail, remove return code, etc.
(em_upgrade_xml_1_4): removed this rather redundant odd api.
(upgrade_xml_uris): this can't fail, remove return codes etc.
(em_upgrade_xml_1_0): another oddly redundant function.
(em_migrate_pop_uid_caches_1_4): error messages, blah blah.
(em_migrate_folder_expand_state_1_4): no fatal states here.
(em_migrate_folder_view_settings_1_4): nor here.
(emm_setup_initial): do i18n 'better', using
gnome_i18n_get_language_list, rather than hacky code.
2004-05-10 Not Zed <NotZed@Ximian.com>
* mail-tools.c: remove e-meta.h, not used anymore.
svn path=/trunk/; revision=25870
2004-04-13 Not Zed <NotZed@Ximian.com>
* em-format-html.c (efh_format_headers): use %% for %%.
* em-folder-view.c (emfv_init, emfv_finalise, emfv_activate):
revert dans' creatable items handler patch, moved to
mail-component instead (which deals with the actual menu's).
* mail-component.c (impl_createControls): setup a user creatable
items handler on the view widget.
(view_control_activate_cb): activate the user creatable items
handler on the view widget.
* em-folder-view.c (emfv_init): add a comment about jeff's last
fix.
* em-utils.c (forward_non_attached): Set attachments from
forwardee before we set the body, otherwise images wont resolve
properly. Related to #56566.
svn path=/trunk/; revision=25428
2004-04-12 Jeffrey Stedfast <fejj@ximian.com>
* em-utils.c (em_uri_to_camel): If the provider is unavailable,
return euri like the other fail cases. Fixes bug #56846.
svn path=/trunk/; revision=25415
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-23 Not Zed <NotZed@Ximian.com>
* em-utils.c (em_uri_from_camel): if we get an email uri passed in,
just pass it out again, without first going to camel to do it.
svn path=/trunk/; revision=25150
2004-03-18 Jeffrey Stedfast <fejj@ximian.com>
* em-utils.c (em_utils_add_address): rfc2047 decode the address
here before passing it off to the addressbook (which expects it to
be in human-readable form, not encoded). Fixes bug #55591.
svn path=/trunk/; revision=25118
2004-03-15 Jeffrey Stedfast <fejj@ximian.com>
* em-utils.c (reply_to_message): If the mail_get_message() async
op fails, it will still call us with a NULL message to check for
that. Fixes bug #55612.
(post_reply_to_message): Same.
svn path=/trunk/; revision=25081
2004-03-03 Not Zed <NotZed@Ximian.com>
** See bug #54924.
* em-utils.c (em_utils_selection_set_urilist): Try to get the drop
filename from the message subject, or folder name.
(em_utils_empty_trash): kill warning.
svn path=/trunk/; revision=24946
2004-02-23 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #54057
* em-utils.c (em_utils_folder_is_sent): Use provider->url_equal()
rather than camel_store_uri_cmp() since that function did not do
anything close to what it claimed to do. Also use
em_uri_to_camel() here on the account sent_folder_uri.
(em_utils_folder_is_drafts): Same.
svn path=/trunk/; revision=24837
2004-02-17 Not Zed <NotZed@Ximian.com>
** See bug #53914.
* em-utils.c (guess_account): do some extra checks, message
source, and source folder.
(guess_account_folder): helper to guess account based on folder.
svn path=/trunk/; revision=24756
2004-02-01 Bill Zhu <bill.zhu@sun.com>
Fixes for bug #53530
* em-utils.c (em_utils_redirect_message): Removed the duplicate
adding of attachments
svn path=/trunk/; revision=24561
2004-01-27 Not Zed <NotZed@Ximian.com>
** See bug #53084 and others.
* em-migrate.c (em_migrate): remove the vfolder_revert hack.
* em-composer-utils.c (ask_confirm_for_only_bcc): removed unused
vars.
* mail-tools.c (mail_tool_get_local_inbox): removed, handled by
mail_component_get_folder now.
* mail-component.c (mail_component_*): Changed the api slightly.
Using NULL as the component argument automatically implies you
want the default component.
(em_uri_from_camel, em_uri_to_camel): moved to em-utils.[ch]. Ok
so it isn't namespaced right ... *shrug*.
(mail_component_get_local_inbox): removed.
(mail_component_get_folder): single entry point for getting
standard folders. This is MT-Safe.
(mail_component_get_folder_uri): single entry point for getting
standard folder uri's. This is MT-Safe.
(add_store): removed, moved to mail_component_add_store.
(mail_component_load_store_by_uri): call mail_component_add_store
directly rather than copying its code.
(default_*_folder*): Removed, use accessor methods instead, fixed
all callers.
(setup_local_store): renamed to mc_setup_local_store, use proper
url encoding too. make run-once and thread-safe.
(MailComponentPrivate): Added a lock.
(mail_control_new): exported properly to kill warnings.
(mail_component_init): dont setup_local_store or add accounts
here.
(impl_createControls): setup local store/accounts here.
(mail_component_peek): dont setup vfolder storage here.
(mc_startup): internal function to startup stuff needed for gui
operation.
(setup_search_context): make run-once.
(mail_component_peek_search_context): call setup_search_context
incase it isn't setup yet.
(impl_upgradeFromVersion): remove the local store setup hack.
svn path=/trunk/; revision=24462