I'm not sure if I've understood you correctly...
🙂 Apple have thought of this.
I was happily using iPhoto, and I accidentally clicked the Time Machine icon. Time machine kicked in, showing what my iPhoto library looked like way back into the past...
Just tried it in Mail and it works! Launch mail, then launch Time Machine. You'll be able to 'restore' your deleted emails.