~kkubasik/beagle/feisty-update

« back to all changes in this revision

Viewing changes to beagled/EvolutionMailQueryable/EvolutionSummaryTracker.cs

  • Committer: Kevin Kubasik
  • Date: 2007-08-24 00:14:03 UTC
  • Revision ID: kevin@kubasik.net-20070824001403-7ud76dmpdrgz864x
merge from current build

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
                public EvolutionSummaryTracker (string directory, string account_name, string folder_name)
42
42
                {
43
 
                        string filename = Path.Combine (directory, String.Format ("SummaryTracker-{0}-{1}.db", account_name, folder_name.Replace ('/', '-')));
 
43
                        // Make the on-disk files for folders have sane names
 
44
                        folder_name = folder_name.Replace ('/', '-');
 
45
                        folder_name = folder_name.Replace (',', ' '); // Causes problems with the ConnectionString otherwise
 
46
 
 
47
                        string filename = Path.Combine (directory, String.Format ("SummaryTracker-{0}-{1}.db", account_name, folder_name));
44
48
                        bool create_new_db = ! File.Exists (filename);
45
49
 
46
50
                        connection = GetConnection (filename);