Gmail labeling forwarded emails

email-forwardinggmailgmail-filtersgmail-labels

I have 2 emails 1 for school (= outlook) and 1 personal(=gmail)

I forward my outlook emails to my personal gmail.

The forwarded emails I receive in my gmail should get a label called school
But I can't seem to filter it

Example Peter sends an email to my outlook school mail. That mail automatically being forwarded to my personal gmail with this heading:

from:            <peter@someDomain> via outlook.studentMail.com
to:              myName@outlook.studentMail.com
mailed-by:       outlook.studentMail.com

I tried this topic and few basic filters but I can't seem to get it to work. Can someone help me with this?

Best Answer

Try creating a filter with this

to:(myName@outlook.studentMail.com)

in the "Has the words" field. Note that this is different from putting myName@outlook.studentMail.com in the To: field.