dinhvh / libetpan

Mail Framework for C Language
www.etpan.org
Other
612 stars 284 forks source link

[LEPAddress addressesWithRFC822String:] incorrect parsing #51

Closed kgrigsby59 closed 11 years ago

kgrigsby59 commented 11 years ago

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];

dinhvh commented 11 years ago

You probably want to use the following: [LEPAddress addressesWithRFC822String:]

kgrigsby59 commented 11 years ago

That's what I used.

dinhvh commented 11 years ago

Could you try removing \r\n? Do you have the inferior/superior symbols around addresses?

kgrigsby59 commented 11 years ago

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.

kgrigsby59 commented 11 years ago

The angle brackets around the addresses were lost when I pasted the sample code.

dinhvh commented 11 years ago

btw, etpankit is not supported. I started http://www.github.com/mailcore/mailcore2 And it's more likely to be supported.