I am trying to build an app where i would like to receive mail and display those mail to the user filtered by mail-id or by subject. To explain more clearly, i have a category model where there are many categories present. At present, i am receiving the mail for all those categories in my mailbox and i copy those mail and post it under the category which it belongs to but now i need to build a app where i need to receive mail and the received mail should be posted under their corresponding category based on the mail id or by subject. How can i achieve this? please help me.