2 Dec
2022
2 Dec
'22
7:15 p.m.
I'm trying to write a sieve script that moves emails to a *subfolder* of the inbox. My script:
require ["envelope", "fileinto", "mailbox"];
if anyof( address "to" "support@domain.cc", address "cc" "support@domain.cc", envelope "to" "support@domain.cc" ) { fileinto :create "INBOX.support"; }
But this creates a new "support" folder BESIDE the inbox, not INSIDE it.
Mine looks like this: if anyof (header :contains "sender" "@dovecot.org", header :contains "to" "redacted@example.com") { fileinto "INBOX.Dovecot"; }
I notice your rule has ":create" which might be why its always creating a new folder. Try the rule without the ":create"