imap on TB needs you to change something in one of the TB files, as is explained in one of the threads here on this board. Use the search option to find it.

This is not a problem of Avast but of the way TB is using/handling imap emails.