Windows Mail doesn't have that feature. Outlook does.
You could use message rules to do it, but most email providers have a way to
do that on their server.
Log on via their email webpage to turn it on/off.
That way, you don't have to leave your computer running while you are away.