| Author |  | 
      
        | Ernst Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          Hi,
           | Posted: 14 March 2005 at 5:18am | IP Logged |   |  
           | 
 |  
 I've got some email senders (apparently using MS Exchange Server) who are sending with a from address of "Lastname, Firstname <first.last@domain.com>" which is valid IMHO.
 
 But the Property 'PureFromAddr' gives me the following string: "Lastname, first.last@domain.com" which causes trouble if I want to send a reply to this address.
 
 Is there a fix or workaround for this bug?
 
 Regards,
 Ernst
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          This is not a bug.
           | Posted: 14 March 2005 at 6:10am | IP Logged |   |  
           | 
 |  
 Lastname, Firstname <first.last@domain.com> is really two addresses.
 
 Correct one would be:
 "Lastname, Firstname" <first.last@domain.com>
 
 If you have to handle such addresses, you can use the code like below:
 
 strAddr = Message.PureFromAddr
 arrAddrs = Split(strAddr, ",")
 strAddr = arrAddrs(UBound(arrAddrs))
 
 It will eliminate all wrong entries preceeding real address (which supposed to be the last token in the string).
 
 Regards,
 Alex
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Ernst Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          Thanks for the quick reply and the workaround. I already implemented something similar.
           | Posted: 15 March 2005 at 9:35am | IP Logged |   |  
           | 
 |  
 Appears that MS Exchange is breaking some RFCs here.
 
 Regards,
 Ernst
 | 
       
        | Back to Top |     | 
       
       
        |  |