removing old virus contaminated attachments in Kopano files outside db
Michael Niehren last edited by
i’ve got the following problem. In the users mailbox there are old virus contaminated mail’s, which
the virus-scanner not recognized at the time they arrived.
I’ve found and installed successfully a script (kopano-scan-attachments.py) which goes throught
the users mailbox and scan’s all mails again. If a virus was found, the attachment is exchanged
with an text-attachment… In the script this is done with
message = ‘The attachment with the name %s has been removed because it was infected with %s’ % (
After that the user sees only this text-attachment instead of the virus attachement. Everything fine.
But if i run the virus-scanner over the filesystem (the Attachment-Dir), it still find’s the virus in
the old attachment-file, which also still has an entry in the singleinstances table.
So my question is, how to remove thes old attachment-files without damaging the integrity, so that the
filesystem is also virus-clean ?