in reply to search a string and get the output that belongs to the string

You can take advantage of the fact that your email messages seem to be separated by a blank line (presumably \n\n).

You can write a one-liner like :

perl -ne 'BEGIN{$/=qq|\n\n|}print if m/jay/s' Your-quarantine-file-nam +e-here.txt

        This is not an optical illusion, it just looks like one.