Changeset 269

Show
Ignore:
Timestamp:
08/10/08 10:30:00 AM (5 months ago)
Author:
octorian
Message:

Added checks for Noinferiors flag (fix for #93)

Location:
branches/LogicMail-1.0/LogicMail/src/org/logicprobe/LogicMail/mail/imap
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/LogicMail-1.0/LogicMail/src/org/logicprobe/LogicMail/mail/imap/ImapClient.java

    r246 r269  
    250250            FolderTreeItem childItem = getFolderItem(baseFolder, resp.name, resp.canSelect); 
    251251            baseFolder.addChild(childItem); 
    252             if(resp.hasChildren || !childrenExtension) { 
     252            if(resp.hasChildren || (!resp.noInferiors && !childrenExtension)) { 
    253253                // The folder has children, so lets go and list them 
    254254                if(depth+1 < globalConfig.getImapMaxFolderDepth()) { 
  • branches/LogicMail-1.0/LogicMail/src/org/logicprobe/LogicMail/mail/imap/ImapProtocol.java

    r254 r269  
    723723    public static class ListResponse { 
    724724        public boolean hasChildren; 
     725        public boolean noInferiors; 
    725726        public boolean canSelect; 
    726727        public boolean marked; 
     
    793794            response.canSelect = !(flagStr.indexOf("\\Noselect") != -1); 
    794795            response.hasChildren = (flagStr.indexOf("\\HasChildren") != -1); 
     796            response.noInferiors = (flagStr.indexOf("\\Noinferiors") != -1); 
    795797            response.marked = (flagStr.indexOf("\\Marked") != -1); 
    796798