In both cases, a warning dialog pops up, asking you for an action (such as Delete, Move to Chest, ...).
If you don't choose any action (i.e. press OK):
1. the access to the file will be denied (avast! won't let you run an infected executable)
2. the mail will be delivered to your mailbox, including the possible virus