Changeset 3695

Show
Ignore:
Timestamp:
06/05/08 20:48:56
Author:
pvanhoof
Message:

Bugfix creating parents

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store-summary.c

    r3692 r3695  
    297297 
    298298static void  
    299 create_parents (CamelImapStoreSummary *s, const char *path
     299create_parents (CamelImapStoreSummary *s, const char *path, char dir_sep
    300300{ 
    301301        gchar *p = g_strdup (path); 
     
    304304        while (i < len) { 
    305305                char tmp; 
    306                 if (p[i] == '/') { 
     306                if (p[i] == dir_sep) { 
    307307                        tmp = p[i]; 
    308308                        p[i]=0; 
     
    364364                                len++; 
    365365 
    366                         prefix = camel_imap_store_summary_full_to_path(s, full_name+len, dir_sep?dir_sep:ns->sep?ns->sep:'/'); 
     366                        prefix = camel_imap_store_summary_full_to_path(s, full_name+len, ns->sep?ns->sep:dir_sep); 
    367367                        if (*ns->path) { 
    368368                                pathu8 = g_strdup_printf ("%s/%s", ns->path, prefix); 
     
    378378        } 
    379379 
    380         create_parents (s, pathu8); 
     380        create_parents (s, pathu8, dir_sep); 
    381381 
    382382        info = (CamelImapStoreInfo *)camel_store_summary_add_from_path((CamelStoreSummary *)s, pathu8);