Changeset 563


Ignore:
Timestamp:
12/28/09 15:16:55 (2 years ago)
Author:
octorian
Message:

Fix for inbox unique ID on POP accounts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LogicMail/src/org/logicprobe/LogicMail/model/MailboxNode.java

    r532 r563  
    181181        } 
    182182         
    183          
    184183        /** 
    185184         * Sets the account which this mailbox is contained within. 
     
    189188        void setParentAccount(AccountNode parentAccount) { 
    190189                this.parentAccount = parentAccount; 
     190                 
     191                // If this is the inbox of a network account which does not support 
     192                // folders, then set the unique ID to match that of the account 
     193                // configuration.  This is necessary because this node's original ID 
     194                // will not be serialized, yet it still needs a way to be matched up 
     195                // with a local cache folder. 
     196                if(this.type == TYPE_INBOX && !this.parentAccount.hasFolders() && this.parentAccount.getAccountConfig() != null) { 
     197                    this.uniqueId = this.parentAccount.getAccountConfig().getUniqueId(); 
     198                } 
    191199        } 
    192200         
Note: See TracChangeset for help on using the changeset viewer.