aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-migrate.c
Commit message (Collapse)AuthorAgeFilesLines
* fixedJeffrey Stedfast2004-04-061-4/+4
| | | | svn path=/trunk/; revision=25320
* Migrate the thread_list setting. Fixes bug #56297.Jeffrey Stedfast2004-04-061-51/+106
| | | | | | | | | 2004-04-05 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_dir): Migrate the thread_list setting. Fixes bug #56297. svn path=/trunk/; revision=25318
* Revert my "fix" from yesterday. We can't necessarily show progressJeffrey Stedfast2004-04-031-2/+1
| | | | | | | | | | 2004-04-02 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp_r): Revert my "fix" from yesterday. We can't necessarily show progress (progress window may have been destroyed already). svn path=/trunk/; revision=25307
* Report progress. "Fixes" bug #56355.Jeffrey Stedfast2004-04-021-3/+5
| | | | | | | | 2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp_r): Report progress. "Fixes" bug #56355. svn path=/trunk/; revision=25290
* If event == NULL, don't try to use event->key.timeJeffrey Stedfast2004-03-051-3/+46
| | | | | | | | | | | | | | 2004-03-04 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_popup): If event == NULL, don't try to use event->key.time * em-migrate.c (upgrade_vfolder_sources_1_4): New function to upgrade vfolder sources. (em_upgrade_xml_1_4): If the doc is vfolders.xml, upgrade the sources nodes. svn path=/trunk/; revision=24971
* Removed unneeded debug printfs.Jeffrey Stedfast2004-01-281-11/+4
| | | | | | | | | | | | | | | 2004-01-27 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Removed unneeded debug printfs. * em-folder-tree.c (tree_drag_data_received): Use gtk_tree_view_get_dest_row_at_pos() instead of gtk_tree_view_get_path_at_pos() since this is what Nautilus uses. Unfortunately, it still gives us back the wrong GtkTreePath so it looks to me like Gtk+ is borked. Apparently you need the latest and greatest gtk+-2.3.x cvs snapshot for this to work. svn path=/trunk/; revision=24482
* Copy the imap cache into the right place. Duh.Jeffrey Stedfast2004-01-281-1/+1
| | | | | | | | | 2004-01-27 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_imap_caches_1_4): Copy the imap cache into the right place. Duh. svn path=/trunk/; revision=24470
* ** See bug #53084 and others.Not Zed2004-01-271-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixes for bug #53251.Jeffrey Stedfast2004-01-271-0/+41
| | | | | | | | | | | | | | | | | 2004-01-26 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #53251. * mail-account-gui.c (mail_account_gui_new): Convert the account drafts/sent folder uris to camel uris. (mail_account_gui_save): Convert drafts/sent camel uris into mailer uris when setting them on the account. Also, don't compare against file: anymore since those uris don't exist anymore. * em-migrate.c (em_upgrade_accounts_1_4): Update the drafts/sent folder uris. svn path=/trunk/; revision=24452
* Handle where the file: url is roken (ie, points to a location out of theJeffrey Stedfast2004-01-241-1/+7
| | | | | | | | | | 2004-01-23 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (upgrade_xml_uris_1_4): Handle where the file: url is roken (ie, points to a location out of the evolution namespace). svn path=/trunk/; revision=24388
* Migrate the ETree expanded state files as well as the GalView files.Jeffrey Stedfast2004-01-221-32/+264
| | | | | | | | | | | | | 2004-01-21 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_1_4): Migrate the ETree expanded state files as well as the GalView files. * message-list.c: s/hide_save_state/save_hide_state/g and s/hide_load_state/load_hide_state/g to be more consistant with the other state saving function names. svn path=/trunk/; revision=24356
* use camel_mkdir(0777) rather than 0777 & st.st_mode which isn't setNot Zed2004-01-211-19/+39
| | | | | | | | | | | | | 2004-01-21 Not Zed <NotZed@Ximian.com> * em-migrate.c (cp_r): use camel_mkdir(0777) rather than 0777 & st.st_mode which isn't set anyway. (cp): use simple 0666 for the mode open, and then chmod after. (cp): check the return code of close, not just fsync. (cp): dont use fd[0] and fd[1] when we really just want simple variables, rename to readfd and writefd. svn path=/trunk/; revision=24347
* oopsJeffrey Stedfast2004-01-211-1/+1
| | | | svn path=/trunk/; revision=24335
* New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAPJeffrey Stedfast2004-01-211-0/+10
| | | | | | | | | | | | 2004-01-20 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_imap_caches_1_4): New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAP cache. Fixes bug #52985. (em_migrate_1_4): Copy over the searches.xml file. Fixes bug #52980. svn path=/trunk/; revision=24332
* fixed a type-o that omehow made it in between building and committingJeffrey Stedfast2004-01-211-2/+1
| | | | svn path=/trunk/; revision=24331
* New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAPJeffrey Stedfast2004-01-211-3/+78
| | | | | | | | | | 2004-01-20 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_imap_caches_1_4): New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAP cache. Fixes bug #52985. svn path=/trunk/; revision=24330
* Make displayed_uid public.Not Zed2004-01-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> * em-folder-view.c (EMFolderView): Make displayed_uid public. * em-folder-browser.c (em_folder_browser_show_preview): use em_folder_view_set_message rather than message_list_select_uid. When clearing, clear view->displayed_uid too. 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52965. * mail-component.c (mail_component_init): removed an epfixme, it already is an object. (impl_upgradeFromVersion): call mail_note_store after running the upgrade for local folders. * em-migrate.c (em_migrate): revert the vfolders.xml after we've imported them. * mail-vfolder.c (vfolder_revert): new api to re-load the vfolders file. svn path=/trunk/; revision=24322
* if we can't open the pop3 cache dir, because it doesn't exist, it is notNot Zed2004-01-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-19 Not Zed <NotZed@Ximian.com> * em-migrate.c (em_upgrade_pop_uid_caches_1_4): if we can't open the pop3 cache dir, because it doesn't exist, it is not an error. ** See bug #52983. * mail-component.c (em_uri_from_camel, em_uri_to_camel): Handle vfolder: uri's properly. And make sure local uri's are properly encoded. (mail_component_get_folder_from_evomail_uri) (mail_component_evomail_uri_from_folder): removed, no longer used. (em_uri_from_camel): don't leak the camelurl. (d): disable debug * mail-vfolder.c (vfolder_load_storage): move the vfolder storage location to ~/.evolution/mail/vfolder rather than ~/.evolution/mail (this is currently unused anyway). (uri_is_ignore): short-circuit exit if we find a match. (mail_vfolder_add_uri): dont exit immediately if we have a vfolder uri, but don't add it to local/remove either. (mail_vfolder_delete_uri): remove any uri from the local/remote source list while we're at it. svn path=/trunk/; revision=24300
* Oops, still need to stat() the src file so we can report what percentageJeffrey Stedfast2004-01-171-1/+4
| | | | | | | | | 2004-01-16 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Oops, still need to stat() the src file so we can report what percentage of the file has been completed so far. svn path=/trunk/; revision=24274
* Startup files/folders.Not Zed2004-01-161-8/+69
| | | | | | | | | | | | | | | | | | | | | | | 2004-01-16 Not Zed <NotZed@Ximian.com> * default/C/Inbox: * default/C/Makefile.am: * default/Makefile.am: Startup files/folders. * em-migrate.c (emm_setup_initial): initial implementation of startup setup. (cp): Fix the test, we want exists AND size>0, not exists OR size>0. (cp): Fix the open, we can't use O_EXCL with empty, but present files. Another hack fix for #52880. ** See bug #52896. * em-format-html-display.c (efhd_html_button_press_event): do this based on get_object_at rather than get_point_at, so we get the offset properly. svn path=/trunk/; revision=24261
* oopsJeffrey Stedfast2004-01-161-1/+1
| | | | svn path=/trunk/; revision=24259
* fixed a type-oJeffrey Stedfast2004-01-161-1/+1
| | | | svn path=/trunk/; revision=24258
* oops, add major, minor, revision args to g_warningJeffrey Stedfast2004-01-161-4/+6
| | | | svn path=/trunk/; revision=24253
* Only abort the copy if the dest folder both exists and contains data.Jeffrey Stedfast2004-01-161-2/+9
| | | | | | | | | | | 2004-01-15 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Only abort the copy if the dest folder both exists and contains data. Fixes bug #52880. (em_migrate): Abort if config.xmldb cannot be loaded. Fixes bug #52886. svn path=/trunk/; revision=24251
* Only abort the copy if the dest folder both exists and contains data.Jeffrey Stedfast2004-01-161-1/+3
| | | | | | | | | 2004-01-15 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Only abort the copy if the dest folder both exists and contains data. Fixes bug #52880. svn path=/trunk/; revision=24250
* Split out the remapping code into e-util/e-bconf-map.[c,h] to be sharedJeffrey Stedfast2004-01-151-529/+135
| | | | | | | | | 2004-01-14 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c: Split out the remapping code into e-util/e-bconf-map.[c,h] to be shared among components. svn path=/trunk/; revision=24221
* s/<= 0/== 0/Jeffrey Stedfast2004-01-141-1/+1
| | | | svn path=/trunk/; revision=24207
* Handle upgrading from 1.0.x and 1.2.x (code basically moved verbatim fromJeffrey Stedfast2004-01-141-143/+1469
| | | | | | | | | | | | 2004-01-13 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate): Handle upgrading from 1.0.x and 1.2.x (code basically moved verbatim from e_config_upgrade). * mail-component.c (impl_upgradeFromVersion): Move all the major/minor/revision logic into em_migrate(). svn path=/trunk/; revision=24206
* Don't O_TRUNC the dest file, instead use O_EXC and don't do anything ifJeffrey Stedfast2004-01-121-1/+1
| | | | | | | | | | | 2004-01-11 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Don't O_TRUNC the dest file, instead use O_EXC and don't do anything if the dest file already exists (this way we don't re-migrate an mbox or corrupt any summary/ibex/meta files). svn path=/trunk/; revision=24165
* Don't migrate stuff here anymore.Jeffrey Stedfast2004-01-081-8/+141
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-07 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (mail_component_init): Don't migrate stuff here anymore. * mail-ops.c (uid_cachename_hack): Removed a hack that checked for the really old uid cache location and make the uid cache live in a better location (why have mail/pop/<account> and mail/pop3/cache-<account>? simply put the cache file in mail/pop/<account>/uid-cache). * em-migrate.c (em_migrate_dir): When copying over mbox folders, don't abort if we fail to copy over a summary file (big whoop). Also, if indexing was turned on in the evolution 1.4 version of the folder, turn on indexing for that folder in the migrated mbox folder as well. (em_migrate_pop_uid_caches): Migrate the pop3 uid-cache files. Fixes bug #52464. (em_migrate): Call em_migrate_pop_uid_caches(). svn path=/trunk/; revision=24094
* Modified to simply copy mbox files from one place to another (and theJeffrey Stedfast2003-12-111-62/+209
| | | | | | | | | | 2003-12-10 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_dir): Modified to simply copy mbox files from one place to another (and the summary files) rather than going thru camel so as to bypass the need for parsing MIME. svn path=/trunk/; revision=23919
* Fixed a leak.Jeffrey Stedfast2003-12-111-0/+1
| | | | | | | | | | 2003-12-10 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (get_local_store): Fixed a leak. * mail-component.c (impl_upgradeFromVersion): Implemented. svn path=/trunk/; revision=23914
* fixed a compile warningJeffrey Stedfast2003-12-031-3/+1
| | | | svn path=/trunk/; revision=23599
* Don't leak the message objects.Jeffrey Stedfast2003-11-191-0/+2
| | | | | | | | 2003-11-18 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_dir): Don't leak the message objects. svn path=/trunk/; revision=23428
* Call em_migrate_uri() instead of em_uri_from_camel(). (em_migrate_uri):Jeffrey Stedfast2003-11-071-2/+40
| | | | | | | | | | | | 2003-11-06 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_filter_file): Call em_migrate_uri() instead of em_uri_from_camel(). (em_migrate_uri): Special-case file: uri's by converting them into email://local@local/ uri's since these folders will have been migrated to the newer mbox tree structure. svn path=/trunk/; revision=23203
* User vfolder rules should be in ${evolution_dir}/mail/vfolders.xml ratherJeffrey Stedfast2003-11-071-0/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* New source files to migrate from the old mail directory to the new mailJeffrey Stedfast2003-11-061-0/+536
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=23193