This just worked for me:
Code:
zmprov ma user4 zimbraPrefMailSignature a\nb\nc
and I ended up with:
Code:
zimbraPrefMailSignature: a
b
c
This also works:
Code:
prov> ma user4 zimbraPrefMailSignature a\n\
b\n\
c
What version are you running?
Ahhhh. What I posted only works with no spaces in the value. This should work:
Code:
ma user4 zimbraMailSieveScript '\
require ["fileinto", "reject", "tag", "flag"];\n\
\n\
# virus\n\
if anyof (header :contains "to" "virusalert@" )\n\
{\n\
fileinto "/virus";\n\
stop;\n\
}\n\
# phishing\n\
if anyof (header :contains "subject" "hishing" )\n\
{\n\
fileinto "/phishing";\n\
stop;\n\
}\n' Note the \n\ at the end of every line, and also note the single quote (') at the beginning and end.
I really need to add support for here-doc like perl:
Code:
ma user4 zimbraMailSieveScript <<EOF;
blah blah
blah blah
EOF