ua-parser / uap-core

The regex file necessary to build language ports of Browserscope's user agent parser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apple Mail incorrectly detected as version 605

veqryn opened this issue · comments

Apple Mail (an email client) uses user agent strings like so:

Apple Mail version 13
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko)

Apple Mail version 12
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko)

Apple Mail version 11
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko)

Apple Mail version 10
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko)

Apple Mail version 9
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.8 (KHTML, like Gecko)

Apple Mail version 8
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko)

It appears that they are tied to the OS version, being "2" less than the OS minor version, though that may or may not be true in the future.

Unfortunately, ua-parser returns the WebKit version (605 major, 1 minor, 15 patch) instead of the version of Apple Mail.