[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kioslave/imap4
From:       Carsten Burghardt <cb () magic-shop ! de>
Date:       2004-04-10 16:15:20
Message-ID: 20040410161520.161699A33 () office ! kde ! org
[Download RAW message or body]

CVS commit by burghard: 

Correct the mailboxname if we got a full listing


  M +7 -3      imap4.cc   1.156


--- kdebase/kioslave/imap4/imap4.cc  #1.155:1.156
@@ -1729,5 +1729,4 @@ IMAP4Protocol::doListEntry (const KURL &
         atom.m_str += " " + header->getSubject();
     }
-//    atom.m_str.prepend(";UID=");
     entry.append (atom);
 
@@ -1777,4 +1776,5 @@ IMAP4Protocol::doListEntry (const KURL &
 
   {
+    // mailboxName will be appended to the path!
     QString mailboxName = item.name ();
 
@@ -1793,4 +1793,8 @@ IMAP4Protocol::doListEntry (const KURL &
 
     atom.m_uds = UDS_NAME;
+    if (!item.hierarchyDelimiter().isEmpty() && 
+        mailboxName.find(item.hierarchyDelimiter()) != -1)
+      atom.m_str = mailboxName.section(item.hierarchyDelimiter(), -1);
+    else
     atom.m_str = mailboxName;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic