If you choose ‘OK’ on virus alert, avast should just the email be downloaded… but the code was not run (i.e., the infected file is not executed). If you choose another action, like repair, delete, send to chest… the proper action will be executed.

About Microsoft emails, sorry, I’m seeing that my assumption was wrong…