@@ -26,7 +26,8 @@ class Browser
2626 :psp => "PlayStation Portable" ,
2727 :quicktime => "QuickTime" ,
2828 :core_media => "Apple CoreMedia" ,
29- :outlook => "Microsoft Outlook" ,
29+ :outlook2010 => "Microsoft Outlook 2010" ,
30+ :outlook2007 => "Microsoft Outlook 2007" ,
3031 :thunderbird => "Thunderbird" ,
3132 :applemail => "Apple Mail" ,
3233 :sparrow => "Sparrow" ,
@@ -195,7 +196,8 @@ def id
195196 when psp? then :psp
196197 when quicktime? then :quicktime
197198 when core_media? then :core_media
198- when outlook? then :outlook
199+ when outlook2010? then :outlook2010
200+ when outlook2007? then :outlook2007
199201 when thunderbird? then :thunderbird
200202 when applemail? then :applemail
201203 when sparrow? then :sparrow
@@ -219,7 +221,7 @@ def version
219221
220222 # Return the full version.
221223 def full_version
222- if self . outlook ?
224+ if self . outlook2007? or self . outlook2010 ?
223225 _ , v = *ua . match ( /(?:Version|MSOffice|Firefox|Chrome|QuickTime|BlackBerry[^\/ ]+|CoreMedia v)[\/ ]?([a-z0-9.]+)/i )
224226 else
225227 _ , v = *ua . match ( VERSIONS . fetch ( id , VERSIONS [ :default ] ) )
@@ -356,8 +358,12 @@ def tablet?
356358 ipad? || ( android? && !mobile? )
357359 end
358360
359- def outlook?
360- !!( ua =~ /MSOffice/ )
361+ def outlook2010?
362+ !!( ua =~ /MSOffice 14/ )
363+ end
364+
365+ def outlook2007?
366+ !!( ua =~ /MSOffice 12/ )
361367 end
362368
363369 def thunderbird?
0 commit comments