Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: IMessage.PureFromAddr misbehaves Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Ernst
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 14 March 2005 at 5:18am | IP Logged Quote Ernst

Hi,

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 View Ernst's Profile Search for other posts by Ernst
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 14 March 2005 at 6:10am | IP Logged Quote Alex

This is not a bug.

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 View Alex's Profile Search for other posts by Alex
 
Ernst
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 15 March 2005 at 9:35am | IP Logged Quote Ernst

Thanks for the quick reply and the workaround. I already implemented something similar.

Appears that MS Exchange is breaking some RFCs here.

Regards,
Ernst
Back to Top View Ernst's Profile Search for other posts by Ernst
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide