1

Topic: what's wrong with this rule script?

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

hi zang i want to create rule to manage body message email but still doesn't work

this's the rule i create

require ["fileinto"];

# rule:[Move Spam to Junk Folder]
if body :contains ["promo", " artis"]
{
    fileinto "Junk";
    stop;
}

this is error report sieve.log
Jan 01 11:57:36 lda(paulus@mydomain.com): Error: sieve: main_script: line 4: unknown test 'body' (only reported once $
Jan 01 11:57:36 lda(paulus@mydomain.com): Error: sieve: main_script: validation failed
Jan 01 11:57:36 lda(paulus@mydomain.com): Error: sieve: failed to open script /var/vmail/sieve/dovecot.sieve
Jan 01 11:57:36 lda(paulus@mydomain.com): Info: msgid=<109dedf41fc230b2021f16d2a75b784e@mydomain.com>: saved mail to INBOX


can you help me? thx b4

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: what's wrong with this rule script?

Please add 'body' in requirements like below:

require ['body', 'fileinto'];

Reference: http://tools.ietf.org/html/draft-ietf-sieve-body-09

3

Re: what's wrong with this rule script?

ZhangHuangbin wrote:

Please add 'body' in requirements like below:

require ['body', 'fileinto'];

Reference: http://tools.ietf.org/html/draft-ietf-sieve-body-09

thx so much zhang ...it's works now...nice share...:D