Replies: 2 comments 2 replies
-
Does redirect work without variables? |
Beta Was this translation helpful? Give feedback.
0 replies
-
yes, with a constant string it worked. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a System that need to be able to send mails to outside mailboxes.
But when this system send an email it needs to be copy delivered to senderaddress.
So i tried to do it with a sieve script.
require ["redirect", "evelope", "vnd.stalwart.expressions" ];
if envelope "from" :domain :is "xyz.com" {
#addheader "X-variable" "${envelope.from}";
redirect :copy "${envelope.from}";
#redirect :copy "local@xyz.com";
}
It compiles, it saves and it will be called from Stalwart in DATA Section.
uncommenting the addheader and test with my mailddress shows me, that the system variable is correctly filled.
But sieve script does not redirect to that dynamic address.
i think its the variable string part that the redirect command does not get.
If i comment the variable redirect and use the constant string form it does a redirect.
Is this a bug in 0.10 Version? didnt try it in older stalwart installation.
Beta Was this translation helpful? Give feedback.
All reactions