LorenzoC is quite correct.
avast (in its current situation) can only scan those emails that are delivered via unsecured connections typically via POP port 110 and SMTP port 25.
The client to avast is totally irrelevant - avast scans the actions of mail clients not the clients themselves.
So let us not worry about the WLM client but about how to scan.
GMail insists that emails delivered to/from your mail client to the GMail servers are delivered on secure connections. While many will think this is for the benefit of the user ... to be honest it is really more to do with the benefit of the email server.
Let's move beyond that too.
Secure email connections cannot be scanned by anyone or any antivirus product. In this it is rather like the connections your browser uses for connections to your bank account ... and you surely do not want anyone to be able to scan those. Typically that would mean that these email connections cannot be virus scanned.
But there is a way ....
The secure connections to/from the secure email servers can be handled by a third party program. In this case the secure connections are managed inside your computer in a way that allows the email messages to/from your email client to be received/sent securely and passed (also securely - totally inside your system) between the secure connection and your email client (in this case WLM) and scanned by avast.
This means that you need to install a third party program called STunnel. It also requires you to expend some effort to set up the necessary connections to allow your secure mail to be scanned. There is information available in this forum to assist you with this and we are also here to help.
Let's be clear too that GMail advises you that all of the attachments in GMail are scanned by an antivirus product (I fully understand that this assurance is not acceptable to many GMail users).
Final extra piece of information ... the avast team advise that in an upcoming release of avast (avast 5.0) avast will take over the functions I have covered above performed by the third party product STunnel. So, if you are able to be patient for several months more we will see this support directly from avast.
For some guidance with setting up STunnel to help scan Gmail with avast now please see
this post and perhaps
this post too.