Fix email deletion

Currently emails aren't deleted.

This PR fixes it by deleting them from All Mail folder instead of Inbox folder.
Also slight refactoring has been made.