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
2004-01-14 Not Zed <NotZed@Ximian.com>
** See bug 51660.
* em-format-html-quote.c (efhq_multipart_related): setup part_id
appropriately.
* em-format-html-display.c (efhd_output_secure): use part_id in
classid, and add .signed to part_id for subpart.
(efhd_bonobo_unknown): use part_id in classid.
(efhd_format_attachment): use part_id in classid's.
* em-format-html.c (efh_multipart_related)
(emfh_multipart_related_check): setup part_id for each subpart.
(efh_output_secure): as above, and use the part_id for the
classid.
(em_format_html_add_pobject): use part_id for a generated classid.
(efh_text_plain): setup pseudo-parts into part_id.
* em-format.c (emf_format_clone): setup the part_id base, folder +
uid.
(emf_finalise): free the part_id gstring.
(emf_init): allocate the part_id gstring.
(em_format_add_puri): build the cid from the part_id rather than
an arbitrary number, so it is more persistent. Also save the
part_id in the puri for multipart/related use.
(emf_multipart_mixed, emf_multipart_alternative)
(emf_multipart_appledouble, emf_multipart_encrypted)
(emf_multipart_related, emf_multipart_signed): Set the part_id for
each subpart.
(emf_clear_puri_node): free part_id.
2004-01-13 Not Zed <NotZed@Ximian.com>
** See bug 51660.
* em-format-html-print.c (em_format_html_print_print): dont take
message, get the message from the source formatter.
* em-format.c (emf_format_clone): Added folder and uid parameters,
changed camelmedium to a mimemessage.
* em-format-html-display.c (efhd_attachment_button): check the
icon image cache and if the image is there use it.
* em-icon-stream.c (em_icon_stream_get_image): api to lookup
finished images in cache.
(em_icon_stream_new): add a cache key arg.
(emis_sync_close): store the image in the cache once its
completed.
svn path=/trunk/; revision=24210
2004-01-12 Meilof Veeningen <meilof@wanadoo.nl>
* em-composer-utils.c: support for posting both to mail and to
(multiple) folders
* em-folder-browser.c: use em_utils_post_to_folder (works with NNTP)
* em-folder-selection-button.[ch]: added multiple selection mode
* em-folder-selector.[ch]: idem
* em-folder-tree.[ch]: added multiple selection mode, no longer show
disabled accounts
* em-utils.c: various changes to allow posting to (multiple) folders
* em-subscribe-editor.c: double-clicking a node in the editor updates
it directly
* mail-ops.c: for appending messages, set the "X-Mailer" header
svn path=/trunk/; revision=24182
2003-12-22 David Moore <davmre@bellsouth.net>
* em-popup.c (emp_part_popup_set_background): Implemented; sets an
image attachment as the GNOME wallpaper.
* em-utils.c (emu_save_part_done): Created a prototype at the top
of the file.
(em_utils_save_part_to_file): Added; save a message part to a
specified file on disk.
svn path=/trunk/; revision=23998
2003-12-03 Not Zed <NotZed@Ximian.com>
* mail-autofilter.c (rule_match_thread): changed to setup the rule
part properly, it could never have worked. Bug #51601.
* em-popup.c (emp_uri_popup_address_add): implement.
* em-folder-view.c (emfv_popup_add_sender): implement.
(emfv_add_sender_addressbook): hook up to above func.
* em-utils.c (em_utils_add_address): implementation to add an
email address to the addressbook.
(emu_add_address_cb): callback required for funny api. Bug
#51321.
svn path=/trunk/; revision=23592
2003-12-02 Not Zed <NotZed@Ximian.com>
* evolution-mail.schemas: Added empty_trash prompt key.
* em-utils.c (em_utils_prompt_user): changed to take the gconf
'prompt again' key directly. Fixed callers.
(em_utils_expunge_folder): prompt the user with an expunge
specific message.
(em_utils_empty_trash): have an empty-trash specific message for
prompting confirm.
(emu_confirm_expunge): removed, no longer needed. Bug #38613.
(em_utils_expunge_folder): remove most line feeds, let the label
wrap them.
(em_utils_empty_trash): ditto.
* em-subscribe-editor.c (sub_folder_subscribed): update the ui
selection state after we're done. maybe we should listen on the
model but this is easier. Bug #50861.
* em-message-browser.c (emmb_activate): hook up our own verb list.
(emmb_message_verbs[], emmb_close): implement the close verb.
Bug #51558.
* em-format-html-display.c (efhd_attachment_popup): duh, actually
add the menu list we create. Bug #49902.
* em-format.c (d): turn off debug, committed by accident.
svn path=/trunk/; revision=23562
2003-11-19 Jeffrey Stedfast <fejj@ximian.com>
* em-utils.c (em_utils_selection_set_urilist): Same.
* em-format-html-display.c (efhd_drag_data_get): Same as below.
* em-folder-tree.c (drag_text_uri_list): Terminate each url of a
text/uri-list with a \r\n.
svn path=/trunk/; revision=23451
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-10-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-component.c (parse_uid_list): Removed, use
em_utils_selection_get_uidlist() instead.
(drop_uid_list): Use em_utils_selection_get_uidlist() to parse the
x-uid-list selection data and use mail_tool_uri_to_folder()
directly since we have the uri (originally we expected the first
component of the selection data to be the e-storage-set-view
folder path rather than the uri).
(folder_receive_drop_cb): Call gtk_drag_finish() here.
* message-list.c: s/x-evolution-message/x-uid-list/
* em-utils.c: Same.
svn path=/trunk/; revision=23004
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