Never heard of anything like this, certainly not from a virus. But of course there's always a first time.
The only advice I can give you on recovering is: make a backup copy of /Users/webdiver/Library/Mail before you go trying to recover your mail accounts. That way, if you lose the contents while trying to recover them, you can restore them and try again.