more sync with sylpheed 0.5.0pre3
authorPaul Mangan <paul@claws-mail.org>
Fri, 29 Jun 2001 10:34:14 +0000 (10:34 +0000)
committerPaul Mangan <paul@claws-mail.org>
Fri, 29 Jun 2001 10:34:14 +0000 (10:34 +0000)
ChangeLog
ChangeLog.claws
ChangeLog.jp
src/imap.c

index 1684212..2c57129 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-06-29
+
+       * src/imap.c: imap_scan_tree(): fixed a bug that didn't set the
+         root folder correctly.
+
 2001-06-28
 
        * src/folderview.[ch]:
index 0b64dfb..28573ec 100644 (file)
@@ -1,3 +1,7 @@
+2001-06-29 [paul]
+
+       * more sync with sylpheed 0.5.0pre3
+
 2001-06-29 [paul]
 
        * po/pt_BR.po
index b7f7596..27bcee5 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-29
+
+       * src/imap.c: imap_scan_tree(): ¥ë¡¼¥È¥Õ¥©¥ë¥À¤òÀµ¤·¤¯¥»¥Ã¥È¤·¤Æ
+         ¤¤¤Ê¤«¤Ã¤¿¥Ð¥°¤ò½¤Àµ¡£
+
 2001-06-28
 
        * src/folderview.[ch]:
index 915b4af..416df1e 100644 (file)
@@ -686,7 +686,6 @@ void imap_scan_tree(Folder *folder)
        FolderItem *item, *inbox;
        IMAPSession *session;
        IMAPNameSpace *namespace = NULL;
-       gchar *imap_dir = "";
        gchar *root_folder = NULL;
 
        g_return_if_fail(folder != NULL);
@@ -699,10 +698,9 @@ void imap_scan_tree(Folder *folder)
                namespace = (IMAPNameSpace *)imapfolder->namespace->data;
 
        if (folder->account->imap_dir && *folder->account->imap_dir) {
-               gchar *tmpdir;
-               Xstrdup_a(tmpdir, folder->account->imap_dir, return);
-               strtailchomp(tmpdir, '/');
-               Xalloca(imap_dir, strlen(tmpdir) + 2, return);
+               gchar *imap_dir;
+               Xstrdup_a(imap_dir, folder->account->imap_dir, return);
+               strtailchomp(imap_dir, '/');
                root_folder = g_strconcat
                        (namespace && namespace->name ? namespace->name : "",
                         imap_dir, NULL);
@@ -710,6 +708,9 @@ void imap_scan_tree(Folder *folder)
                        subst_char(root_folder, namespace->separator, '/');
        }
 
+       if (root_folder)
+               debug_print("IMAP root directory: %s\n", root_folder);
+
        folder_tree_destroy(folder);
        item = folder_item_new(folder->name, root_folder);
        item->folder = folder;