If the message contains attachments, Mozilla Mail downloads first message text and then the attachments separately. Avast is not able to add a note to the message text in this case. It is even more complicated - the first time you open a message, it is downloaded as a whole and a note is added, but next times it is downloaded in parts and a note is not added.