aboutsummaryrefslogtreecommitdiffstats
path: root/mail/upgrade-mailer.c
Commit message (Collapse)AuthorAgeFilesLines
* Update the upgrade script to handle the new url format introduced withJeffrey Stedfast2002-10-261-17/+45
| | | | | | | | | | | | | | | | | 2002-10-24 Jeffrey Stedfast <fejj@ximian.com> Update the upgrade script to handle the new url format introduced with NotZed's most recent commits. * upgrade-mailer.c (mailer_upgrade): Save an encoded version of the namespace too, for use later. (si_free): Free the encoded namespace too. (imap_url_upgrade): Use the encoded namespace when creating the new url. (shortcuts_upgrade_xml_file): Upgrade the default: urls. Fixes bug #32127. svn path=/trunk/; revision=18438
* Fix the transport URL on any Exchange accounts. Fixes #30209, which is toDan Winship2002-10-211-1/+9
| | | | | | | | * upgrade-mailer.c (mailer_upgrade): Fix the transport URL on any Exchange accounts. Fixes #30209, which is to say that it fixes #28490 correctly. svn path=/trunk/; revision=18399
* Change the type in LDAP shortcuts from "ldap-contacts" to "contacts/ldap".Dan Winship2002-10-161-144/+55
| | | | | | | | | * upgrade-mailer.c (shortcuts_upgrade_xml_file): Change the type in LDAP shortcuts from "ldap-contacts" to "contacts/ldap". Rewrite this to use libxml since that was easier than trying to make the old code do both kinds of changes at once. svn path=/trunk/; revision=18367
* Shut up some compiler warnings.Jeffrey Stedfast2002-10-021-3/+3
| | | | | | | | 2002-10-01 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c: Shut up some compiler warnings. svn path=/trunk/; revision=18280
* NULL-check si->folders before passing it into find_folder so we don'tJeffrey Stedfast2002-09-261-1/+1
| | | | | | | | | | 2002-09-25 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (imap_url_upgrade): NULL-check si->folders before passing it into find_folder so we don't crash. Fixes bug #30915. svn path=/trunk/; revision=18218
* The new callback function for the g_hash_table_foreach which both upgradesJeffrey Stedfast2002-09-131-36/+259
| | | | | | | | | | | | | 2002-09-12 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (cache_upgrade_and_free): The new callback function for the g_hash_table_foreach which both upgrades the cache for that store and then free's the struct _storeinfo afterwards. (cache_upgrade): Upgrade a cached folder by moving the old cache folder into the appropriate new location. svn path=/trunk/; revision=18057
* revert an earlier change that used the full account name as the folder name ↵Jeffrey Stedfast2002-09-101-9/+11
| | | | | | | | (oops) : ---------------------------------------------------------------------- svn path=/trunk/; revision=18023
* Don't look for an end quote, instead look for </item> to terminate theJeffrey Stedfast2002-09-101-1/+2
| | | | | | | | | | | 2002-09-09 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (shortcuts_upgrade_xml_file): Don't look for an end quote, instead look for </item> to terminate the uri. (shortcuts_upgrade_uri): Hex decode the imap folder name after we've constructed the final version of it. svn path=/trunk/; revision=18022
* Don't look for an end quote, instead look for </item> to terminate theJeffrey Stedfast2002-09-101-11/+7
| | | | | | | | | 2002-09-09 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (shortcuts_upgrade_xml_file): Don't look for an end quote, instead look for </item> to terminate the uri. svn path=/trunk/; revision=18021
* Hex decode imap folder names too. (shortcuts_upgrade_xml_file): Don't lookJeffrey Stedfast2002-09-101-18/+22
| | | | | | | | | | | 2002-09-09 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (shortcuts_upgrade_uri): Hex decode imap folder names too. (shortcuts_upgrade_xml_file): Don't look for an end quote, instead look for </item> to terminate the uri. svn path=/trunk/; revision=18020
* Don't modify the URL if the path doesn't start with "exchange". (MeansDan Winship2002-09-091-15/+20
| | | | | | | | | | | | | | | * upgrade-mailer.c (exchange_url_upgrade): Don't modify the URL if the path doesn't start with "exchange". (Means it's already a 1.2 URL.) (shortcuts_upgrade_uri): Need to hex-decode exchange URLs here too. (shortcuts_upgrade_xml_file): Fix an off-by-one error here (twice) so it actually works instead of always claiming shortcuts.xml doesn't need to be upgraded. (mailer_upgrade): Check the size of the accounts hash rather than imap_sources since we have work to do if the user has an exchange account but no imap accounts. svn path=/trunk/; revision=18018
* Sync the database after upgrading mailer stuff. (imap_url_upgrade): SinceJeffrey Stedfast2002-09-071-0/+2
| | | | | | | | | | | | | | | | 2002-09-06 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (upgrade): Sync the database after upgrading mailer stuff. (imap_url_upgrade): Since we need 'p' if we fail to find the folder, don't g_free it until later. (hex_encode): Don't forget to increment inptr after hex encoding a character. (exchange_url_upgrade): Apprently exchange uri's are rebelious and do not want to be hex encoded like every other url, so hex decode the folder names here before concatenating them onto the base url. svn path=/trunk/; revision=18009
* Sync the database after upgrading mailer stuff. (imap_url_upgrade): SinceJeffrey Stedfast2002-09-071-5/+16
| | | | | | | | | | | | | 2002-09-06 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (upgrade): Sync the database after upgrading mailer stuff. (imap_url_upgrade): Since we need 'p' if we fail to find the folder, don't g_free it until later. (hex_encode): Don't forget to increment inptr after hex encoding a character. svn path=/trunk/; revision=18003
* Hex decode the folder names when searching for them in the memory buffer,Jeffrey Stedfast2002-09-061-85/+188
| | | | | | | | | | | | 2002-09-05 Jeffrey Stedfast <fejj@ximian.com> * upgrade-mailer.c (imap_url_upgrade): Hex decode the folder names when searching for them in the memory buffer, and re-hex encode them when combining them with the rst of the URL. (mailer_upgrade): Instead of reading in the storeinfo file as raw binary data, use the camel-file-utils to correctly parse it. svn path=/trunk/; revision=17994
* Return FALSE here. (get_base_url): Add a cast.Ettore Perazzoli2002-09-051-1/+3
| | | | | | | | | | | | * upgrade-mailer.c (upgrade): Return FALSE here. (get_base_url): Add a cast. * component-factory.c (storage_xfer_folder): Removed unused variables. * Makefile.am: Rename upgrade-mailer to evolution-mail-upgrade. svn path=/trunk/; revision=17981
* some fixesJeffrey Stedfast2002-09-051-13/+24
| | | | svn path=/trunk/; revision=17979
* Add upgrade-mailer.c to the build.Jeffrey Stedfast2002-09-051-0/+863
2002-09-04 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Add upgrade-mailer.c to the build. * upgrade-mailer.c: New program to upgrade configuration files from 1.0 to 1.2. svn path=/trunk/; revision=17975