Sieve: fileinto a subfolder of inbox
    dovecot at ptld.com 
    dovecot at ptld.com
       
    Fri Dec  2 17:15:52 UTC 2022
    
    
  
> 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 at domain.cc",
>           address "cc" "support at domain.cc",
>           envelope "to" "support at 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 at 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"
    
    
More information about the dovecot
mailing list