Depending on your anitvirus progam, it can scan the attachments as they arrive in the inbox. Norton AV does, and I think the freebie AVG can do it as well.
But OuT is correct. Don't open attachments (especially unsolicited ones) until the have been sacnned. Some bad viruses out there.
Cheers
Mick