Ok, it was this settings I was talking abought, se picture.
And this tekst:
The Instant Messaging provider avoids this kind of infection. It monitors the folder where the received and sent files are stored. Whenever the content of the folder changes (a new file appears, a file is modified, etc.), avast! immediately performs a scan.

So I belived thas Avast did it like e-mail settings.