This question already has an answer here:
I have two Gmail accounts, one personal and one given by my university. I have set email forwarding so that all mails that come to my university address are forwarded to my personal account. I wish to create a filter so that all messages forwarded from my university address are moved to a separate folder. How do I do this?