Agreed this would be a useful function. I just installed Thunderbird last night and configured multiple accounts into a unified inbox. I accidentally swiped and deleted an email and looked for an undo button. Since there was none I had to go into each account's trash folder and try to find which email was deleted. Gmail and Outlook both have this option.