Does AntiSpam work for IMAP accounts in Thunderbird?
Also, will this or some other Bitdefender Total Security module catch malaware if I visit Gmail, Yahoomail etc on their web sites?
No, antispam only works on POP. With browser based mail you are protected by AVC realtime only. Not antispam.