Comment 11 for bug 264306

Revision history for this message
Mathias Gug (mathiaz) wrote :

How to reproduce:

Install dovecot-common and procmail packages.

mathiaz@t-dovecot$ mkdir /tmp/dovecot-264306; cd /tmp/dovecot-264306/

mathiaz@t-dovecot:/tmp/dovecot-264306$ cat dovecot.conf
# Base directory where to store runtime data.
base_dir = /tmp/dovecot-264306
protocols =
mail_location = maildir:/tmp/dovecot-264306/mail

protocol lda {
    postmaster_address =
    log_path = /tmp/dovecot-264306/mail.log
 mail_plugins = cmusieve
}

plugin {
 sieve = /tmp/dovecot-264306/sieve.conf
}

mathiaz@t-dovecot:/tmp/dovecot-264306$ cat sieve.conf
if header :contains "Subject" "blahblahblah" { discard; }

mathiaz@t-dovecot:/tmp/dovecot-264306$ formail -s /usr/lib/dovecot/deliver -c /tmp/dovecot-264306/dovecot.conf < spam2.mbox