I created a userscript that does the same so it can be easily configured, and can also be used in Internet Explorer (using Reify's Turnabout) - http://userscripts.org/scripts/show/7056
About Gmail with different attachment icons on Jan 11 2007