Show
Ignore:
Timestamp:
08/19/08 07:51:07 PM (5 months ago)
Author:
octorian
Message:

Fixes for #96

Files:
1 modified

Legend:

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

    r198 r274  
    213213                    hostName = (String)entry.elementAt(3); 
    214214                } 
     215                 
     216                String addrStr = 
     217                        (mbName.equals(strNIL) ? "" : mbName) + 
     218                        (hostName.equals(strNIL) ? "" : ('@' + hostName)); 
    215219                // Now assemble these into a single address entry 
    216220                // (possibly eventually storing them separately) 
    217221                if(realName.length() > 0 && !realName.equals(strNIL)) { 
    218                     addrList[index] = realName + " <" + mbName + "@" + hostName + ">"; 
     222                    addrList[index] = realName + " <" + addrStr + ">"; 
    219223                } 
    220224                else { 
    221                     addrList[index] = mbName + "@" + hostName; 
     225                    addrList[index] = addrStr; 
    222226                } 
    223227                index++;