Closed kgrigsby59 closed 11 years ago
You probably want to use the following: [LEPAddress addressesWithRFC822String:]
That's what I used.
Could you try removing \r\n? Do you have the inferior/superior symbols around addresses?
It works without the \r\n. I don't know what you mean by inferior/superior symbols. The original text is how I'm getting it off the wire.
The angle brackets around the addresses were lost when I pasted the sample code.
btw, etpankit is not supported. I started http://www.github.com/mailcore/mailcore2 And it's more likely to be supported.
The following test only returns the first address instead of two.
NSString text = @"Simon Hartley simon@thursby.com,\r\nPaul Nelson nelson@thursby.com"; NSArray addresses; addresses = [LEPAddress addressesWithRFC822String:text];