Gmail filter: forward emails that arrive to Inbox to one email address, and emails that arrive to spam to another email address.
How can this be done?
I tried playing with filters with the conditions of in:spam and is:spam, but so far no success.
EDIT: these are the XML (exported) rules I am trying:
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
<title>Mail Filters</title>
<id>REPLACED</id>
<updated>2023-01-17T06:50:47Z</updated>
<author>
<name>REPLACED</name>
<email>REPLACED</email>
</author>
<entry>
<category term='filter'></category>
<title>Mail Filter</title>
<id>REPLACED</id>
<updated>2023-01-17T06:50:47Z</updated>
<content></content>
<apps:property name='hasTheWord' value='deliveredto:a@one.com'/>
<apps:property name='label' value='uniqueTag'/>
<apps:property name='forwardTo' value='b@two.com'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
<entry>
<category term='filter'></category>
<title>Mail Filter</title>
<id>REPLACED</id>
<updated>2023-01-17T06:50:47Z</updated>
<content></content>
<apps:property name='doesNotHaveTheWord' value='label:uniqueTag'/>
<apps:property name='label' value='spamTag'/>
<apps:property name='forwardTo' value='c@two.com'/>
<apps:property name='shouldNeverSpam' value='true'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
</feed>