Hello, I would like that when mails from certain senders come in, they are forwarded to another mail address and they are still kept. i have built the following here.
`require [“fileinto”, “redirect”, “imap4flags”];
if header :contains “From” “sender1@example.com” {
redirect “recipient1@domain.com”;
keep;
} elsif header :contains “From” “sender2@example.com” {
redirect “recipient2@domain.com”;
keep;
} elsif header :contains “From” “sender3@example.com” {
redirect “recipient3@domain.com”;
keep;
} else {
keep;
}
`
Unfortunately I get the error:
line 1: unexpected quoted string “redirect”