aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-migrate.c
Commit message (Collapse)AuthorAgeFilesLines
* Progress update:Matthew Barnes2008-10-141-3055/+0
| | | | | | | | | | - Calendar is kind of a mess at the moment. Doesn't compile. - Roughed in the Mail module, including all the actions. That _does_ compile. Runs, even. svn path=/branches/kill-bonobo/; revision=36611
* Merge revisions 36016:36533 from trunk.Matthew Barnes2008-10-021-18/+17
| | | | svn path=/branches/kill-bonobo/; revision=36534
* ** Fixes bug #549969Matthew Barnes2008-08-311-3/+4
| | | | | | | | | | | | 2008-08-30 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #549969 * mail/em-migrate.c (migrate_to_db): Use a less geeky sounding migration message. svn path=/branches/kill-bonobo/; revision=36228
* Merge revisions 35747:35930 from trunk.Matthew Barnes2008-08-081-16/+137
| | | | svn path=/branches/kill-bonobo/; revision=35931
* fixed copyright noticesJeffrey Stedfast2008-06-211-1/+1
| | | | svn path=/trunk/; revision=35663
* ** Fixes part of bug #424744Matthew Barnes2008-05-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | 2008-05-06 Matthew Barnes <mbarnes@redhat.com> ** Fixes part of bug #424744 * configure.in: Bump eds_minimum_version to 2.23.2 for camel-iconv.h. * composer/e-composer-private.c: * composer/e-composer-private.h: * composer/e-msg-composer.c: * mail/em-composer-prefs.c: * mail/em-format-html.c: * mail/em-format-quote.c: * mail/em-mailer-prefs.c: * widgets/misc/e-attachment-bar.c: * widgets/misc/e-unicode.c: Use camel-iconv.c instead of e-iconv.h (now deprecated). svn path=/trunk/; revision=35474
* ** Fix for bug #515786Milan Crha2008-03-131-0/+28
| | | | | | | | | | | | | | 2008-03-13 Milan Crha <mcrha@redhat.com> ** Fix for bug #515786 * plugins/sa-junk-plugin/org-gnome-sa-junk-plugin.eplug.xml: * plugins/sa-junk-plugin/em-junk-filter.c: (org_gnome_sa_use_remote_tests): * mail/em-migrate.c: (em_migrate), (em_update_sa_junk_setting_2_23): Fix misspelled SpamAssassin word. svn path=/trunk/; revision=35183
* Part of fix for #492702 from Milan Crha : New mail notify and preferences ui ↵Johnny Jacob2007-12-151-0/+89
| | | | | | movement. svn path=/trunk/; revision=34702
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-321/+321
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* ** Fix for bug #492170Michael Monreal2007-11-061-5/+5
| | | | | | | | | | | | | | 2007-11-06 Michael Monreal <mmonreal@svn.gnome.org> ** Fix for bug #492170 * em-migrate.c: * evolution-mail.schemas.in: * mail-config.c: Replace the old color definitions with very similar colors from the Tango color palette. svn path=/trunk/; revision=34515
* ** Fixes bug #469657Matthew Barnes2007-10-021-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-02 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #469657 * addressbook/importers/evolution-ldif-importer.c: * calendar/gui/comp-editor-factory.c: * composer/e-msg-composer.c: * e-util/e-config-listener.c: * mail/em-composer-prefs.c: * mail/em-folder-tree-model.c: * mail/em-format.c: * mail/em-format-html.c: * mail/em-migrate.c: * mail/em-subscribe-editor.c: * mail/mail-component.c: * mail/mail-send-recv.c: * mail/message-list.c: * mail/importers/elm-importer.c: * plugins/exchange-operations/exchange-folder-size-display.c: * plugins/mono/mono-plugin.c: * shell/e-shell-settings-dialog.c: * tools/killev.c: * widgets/table/e-table-extras.c: * widgets/table/e-table-selection-model.c: Use destroy functions in GHashTables to simplify memory management. svn path=/trunk/; revision=34344
* ** Fixes part of bug #474000Matthew Barnes2007-09-281-2/+5
| | | | | | | | | | | | | | | | | 2007-09-27 Matthew Barnes <mbarnes@redhat.com> ** Fixes part of bug #474000 * addressbook/importers/evolution-ldif-importer.c: Remove redundant Base64 codec implementation. Use GLib's. * mail/em-format-html.c (efh_format_headers): * mail/em-migrate.c (upgrade_passwords_1_2): * plugins/face/face.c: Use GLib's Base64 API instead of Camel's. svn path=/trunk/; revision=34325
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-1/+1
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* ** Move away from g_assert to g_return* calls Srinivasa Ragavan2007-08-311-1/+1
| | | | svn path=/trunk/; revision=34143
* 2007-08-13 mcrha Fix for bug #352346Milan Crha2007-08-131-0/+37
| | | | svn path=/trunk/; revision=33995
* Fix compilation warnings in mail folder (#437935).Matthew Barnes2007-06-031-56/+57
| | | | svn path=/trunk/; revision=33628
* Massive code cleanup (bug #429422)Matthew Barnes2007-04-201-10/+10
| | | | svn path=/trunk/; revision=33432
* Fix for evolution crash on startup on assistant.Srinivasa Ragavan2007-04-041-1/+2
| | | | svn path=/trunk/; revision=33377
* ** Fixes bug #419524Matthew Barnes2007-03-211-20/+15
| | | | | | | | | | | | | | | | | | | | | | | 2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
* Committing fix for 323402 from Vincent NoelSrinivasa Ragavan2006-04-261-0/+1
| | | | svn path=/trunk/; revision=31896
* s/int/guint/g for 1-bit bitfield. Remove cruft use guint for 1-bitKjartan Maraas2006-02-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use e_util_mkdir_hier() instead of e_mkdir_hier().Simon Zheng2006-01-101-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-10 Simon Zheng <simon.zheng@sun.com> * em-composer-utils.c: * em-folder-tree-model.c: (em_folder_tree_model_save_state): * em-format-html.c: * em-migrate.c: (cp_r), (em_migrate_folder), (em_migrate_pop_uid_caches_1_4), (em_migrate_folder_expand_state_1_4), (em_migrate_folder_view_settings_1_4), (em_migrate_imap_cmeta_1_4), (em_migrate_1_4), (emm_setup_initial), (em_migrate): * em-popup.c: * em-utils.c: (em_utils_save_part_to_file): * mail-component.c: (mail_component_init): * mail-config.c: * mail-folder-cache.c: * mail-mt.c: * mail-ops.c: * mail-tools.c: (mail_tool_get_local_movemail_path): Use e_util_mkdir_hier() instead of e_mkdir_hier(). Use e_util_strstrcase() instead of e_strstrcasea(). use e_strftime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_filename_make_safe() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_utf8_strftime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. svn path=/trunk/; revision=31118
* use libedataserver/e-account-list.h instead of e-util/e-account-list.h.Simon Zheng2006-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2006-01-06 Simon Zheng <simon.zheng@sun.com> * em-account-editor.c: * em-account-prefs.c: * em-composer-utils.c: * em-folder-tree-model.h: * em-migrate.c: * em-subscribe-editor.c: * em-utils.c: * importers/netscape-importer.c: * mail-config.c: * mail-crypto.c: * mail-ops.h: * mail-send-recv.c: * mail-vfolder.c: use libedataserver/e-account-list.h instead of e-util/e-account-list.h. use libedataserver/e-account.h instead of e-util/e-account.h. svn path=/trunk/; revision=31075
* em-folder-browser.c em-folder-view.c em-format-html.cTor Lillqvist2005-12-181-22/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Retired GAL from Head. The relevant files have moved inside evolution.Kaushal Kumar2005-06-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* move e-error into e-util/Not Zed2005-05-161-1/+1
| | | | | | | | 2005-05-16 Not Zed <NotZed@Ximian.com> * move e-error into e-util/ svn path=/trunk/; revision=29366
* ** See bug #71528.Not Zed2005-02-241-42/+78
| | | | | | | | | | | 2005-02-21 Not Zed <NotZed@Ximian.com> ** See bug #71528. * em-migrate.c (remove_system_searches, em_migrate_1_4): remove all 'system' searches when upgrading from pre 2.0. svn path=/trunk/; revision=28876
* Moved various things from e-util to libedataserver.Not Zed2004-12-031-2/+81
| | | | | | | | | | | | | | | | | | | | | 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
* fix uninitialised pointer.David Malcolm2004-09-301-1/+1
| | | | | | | | 2004-09-30 David Malcolm <dmalcolm@redhat.com> * em-migrate.c (upgrade_passwords_1_2): fix uninitialised pointer. svn path=/trunk/; revision=27433
* Free uri and name strings. Fixes a leak.Jeffrey Stedfast2004-07-211-0/+2
| | | | | | | | | 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
* finally put the 1.2 password upgrade patch in. Untested. #42721.Not Zed2004-05-211-1/+97
| | | | | | | | | 2004-05-21 Not Zed <NotZed@Ximian.com> * em-migrate.c (update_passwords_1_2): finally put the 1.2 password upgrade patch in. Untested. #42721. svn path=/trunk/; revision=26027
* move ignore case outside of block. Stupid c language.Not Zed2004-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | 2004-05-13 Not Zed <NotZed@Ximian.com> * em-migrate.c (em_migrate_folder): move ignore case outside of block. Stupid c language. * em-folder-view.c (emfv_format_popup_event): fix warning with cast. ** See bug #58304. * em-junk-filter.c (em_junk_sa_setting_notify): listen to sa settings changes, update some globals. (em_junk_filter_get_plugin): setup the gconf client here and listen to changes. (em_junk_sa_get_local_only, em_junk_sa_get_use_daemon) (em_junk_sa_get_daemon_port): removed, use globals instead. svn path=/trunk/; revision=25898
* add for translators.Not Zed2004-05-121-287/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ** See bug #57720.Not Zed2004-05-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* do the imap cmeta files, it just does the sync offline stuff. #56674.Not Zed2004-04-221-56/+133
| | | | | | | | | | 2004-04-22 Not Zed <NotZed@Ximian.com> * em-migrate.c (em_migrate_imap_cmeta_1_4): do the imap cmeta files, it just does the sync offline stuff. #56674. (em_migrate_1_4): non-fatalise some of the options, call above. svn path=/trunk/; revision=25578
* Don't bother adding the autogen sig here, e-signature-list.c handles thisJeffrey Stedfast2004-04-101-0/+36
| | | | | | | | | | | | 2004-04-09 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_init): Don't bother adding the autogen sig here, e-signature-list.c handles this now. * em-migrate.c (em_upgrade_accounts_1_4): Migrate the signature uids. Fixes bug #56726. svn path=/trunk/; revision=25404
* Now takes a pattern argument to limit files that get copied over (so weJeffrey Stedfast2004-04-091-4/+4
| | | | | | | | | | 2004-04-08 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp_r): Now takes a pattern argument to limit files that get copied over (so we can limit imap cache to only the summary files - makes it faster). svn path=/trunk/; revision=25378
* 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