I can think of 2 different flows
Proxy -- > PI -- > File(Temp Folder)
File --> PI --> Mail
(Pick from temp and archive it to Main folder where you want to create a file)
I am not sure if you want to do this in one single flow or above approach will be fine for you.