If I understand the information then this is a fairly simple trick that I mentioned earlier.
You will also know that the client is simply saying to the server RETR 4 ... and then when that has finished RETR 5. Since we both know how POP works then we both know that there is no way for the antivirus program (or the server) to predict what the mail client will ask for. I do agree that (with unnecessary effort) avast could retain the LIST and know that message 4 is 5Mb long.
So from that it is easy to expend extra cycles (sorry to digress - but look at some of the complaints to do that when a % was included in the avast antivirus scans in 4.8 ) to tell you what percentage of message
n has been downloaded. Then to do the same for message
n+1 etc. If my guess is correct the antivirus does not tell you how many more messages will be downloaded (even though your mail client may well do so - because it knows your instructions) or how long those messages will take.
If you use an old fashioned mail client like Outlook Express (MS has dumped it in favor of Windows Live Mail) that works one message at a time within one account at a time then this probably looks ok. What about when you use an email client (like Thunderbird) that processes multiple accounts simultaneously and you may well have a dozen accounts (or more in my case) downloading emails all at the same time - ie your system (and avast) is managing the download of 12 messages all at the same time?
That's why I think this is a job best left to the primary application - the email client.