Microsoft Corp. is trying to make Hotmail cool again. The upgrade, expected to be available in July or August, will automatically sort incoming messages into different categories devoted to users' key contacts and Internet social networks. It will also provide previews of incoming photos, videos and other material without having to open an attachment or click on a link.