If you save messages in many folders, or even one folder you
can search them as files: Use a powerful editor like elvis 2.0 or
vim to search for a pattern. Such editors will load many files
simultaneously, search for a pattern in all of them, and go to the
file where it finds the pattern.