[Evolution] courier imap sort-of-fix



  The below patch makes evolution work with courier IMAP, but will
probably break using IMAP folders with a . in their name, or something
equally inconvenient.

  The problem is the usual directory separator thing. It seems to be a
bit of a burden to import CamelImapStore knowledge into here, to get
hold of the dir_sep; it would presumably be more correct to add a path
decomposition function to CamelStoreClass, and default the
implementations to what is currently inside mail_tool_uri_to_folder?

m.


Index: mail-tools.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-tools.c,v
retrieving revision 1.26
diff -u -r1.26 mail-tools.c
--- mail-tools.c        2000/10/12 13:48:36     1.26
+++ mail-tools.c        2000/10/17 08:27:43
@@ -503,15 +503,15 @@
                        char *folder_uri;
 
                        for (ptr = (char *)(uri + 7); *ptr && *ptr != '/'; ptr++);
-                       if (*ptr == '/') {
+                       if (*ptr == '.' || *ptr == '/') {
                                if (url && url->path) {
                                        ptr += strlen (url->path);
                                        printf ("ptr = %s\n", ptr);
-                                       if (*ptr == '/')
+                                       if (*ptr == '/' || *ptr == '.') 
                                                ptr++;
                                }
 
-                               if (*ptr == '/')
+                               if (*ptr == '/' || *ptr == '.')
                                        ptr++;
                                /*for ( ; *ptr && *ptr == '/'; ptr++);*/
 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]