avast does not have a plugin for Thunderbird.
In TB you must use Internet Mail provider 8)