Now app handles right and left swipes properly. Mail goes to trash is left swipe. Mail goes to archive if right swipe. Mails can be deleted from archive and can be archive from trash. Data model modified to save and load all the three arrays (trash, inbox, archive).