The task is to connect gmail with firebase cloud functions and get the mails with an xml file or zip and put it on the firebase storage to process the file. If the file is in zip format should extract the information and save the xml file and the pdf.
My idea is to give give every user an inbox on the form user@[login to view URL] so every user think that they have their own domain but they are sending them the information to the same inbox. We identify the different users by getting the information from the email address.
Then get the xml file of each user store the files and then parse the xml information and put it in firebase. I will send the parser code in Nodejs.