Fetch icon indicating copy to clipboard operation
Fetch copied to clipboard

Why return only the first FROM address?

Open kevinsmith opened this issue 10 years ago • 3 comments

I noticed that the sender and from addresses are treated differently than the rest of the addresses by the getAddresses method in that only the first address listed for each is actually returned. For the sender address, this makes sense. Though extremely rare, however, it is possible for an email to have multiple addresses listed in the FROM header.

It's also worth noting that if you set $asString to true on the getAddresses method, all addresses listed for sender and from are returned, not just the first ones.

kevinsmith avatar Mar 13 '15 23:03 kevinsmith

If you want to make a pull request I'll change this.

tedivm avatar Mar 15 '15 20:03 tedivm

Given that the returned data would be different (it would be a multidimensional array, and it wasn't before), this would break backward compatibility. Is this project trying to stick with semver? And if so, are you good with bumping the version number?

kevinsmith avatar Mar 16 '15 00:03 kevinsmith

I"m good with bumping the version number, particularly as there are other changes I would like to make that also break BC.

tedivm avatar Jun 07 '15 04:06 tedivm