An administrator had a problem: “We have Office 365 OWA users that don't work every day. I can't see a way to set up a rule to forward any received emails to another user on those days.“
The administrator missed the rule condition to apply the rule to mail received within a specific date span (only one date needs to be set). While this would work for his users, this rule applies to whole days, which makes it difficult to set it up ahead of time, as it will either apply to all mail received while the user is working that day or it wont kick in until midnight. This rule is available in Outlook on the web as well as in Outlook desktop.
If the user has Outlook installed on the desktop, she could set up a automatic reply (out of office) rule to forward mail and configure it to begin when she leaves for the day and turn off when she returns. (As long the user doesn't enter text into the autoreply message field, it will not send an out of office reply to everyone.) Or, again only in Outlook on the desktop, you could use reminders and macros to turn a rule off and on automatically.
Setting up rules in Outlook on the web for even a month of time off will be a chore, however, the administrator can use PowerShell to create and edit rules. (It might be easier to share the user’s mailbox with another user or use a shared mailbox to receive important emails. )
To create a new rule, use the New-InboxRule cmdlet:
New-InboxRule -mailbox email@example.com -name ForwardTo -ReceivedAfterDate 10/15/2018 -ReceivedBeforeDate 10/16/2018 -ForwardTo firstname.lastname@example.org
To edit an existing rule, use the Set-InboxRule comdlet
Set-InboxRule email@example.com\ForwardTo -ReceivedAfterDate 10/10/2018 -ReceivedBeforeDate 10/11/2018 -ForwardTo firstname.lastname@example.org
To remove a specific rule, use
Remove-InboxRule -Mailbox email@example.com -Identity "Rule Name"
To remove all uses, use this cmdlet:
Get-InboxRule -Mailbox firstname.lastname@example.org | Remove-InboxRule
To enable or disable rules, use these cmdlets:
Enable-InboxRule "Rule name" -Mailbox email@example.com Disable-InboxRule -Identity "Rule name" -Mailbox firstname.lastname@example.org