I have configured some sieve scripts to run when I append messages to
one of mailbox:

--8<---------------cut here---------------start------------->8---
  imapsieve_mailbox1_name = Archives
  imapsieve_mailbox1_causes = APPEND
  imapsieve_mailbox1_before = file:/.../sieve/dovecot.sieve
--8<---------------cut here---------------end--------------->8---

I tried to use this with 2.4 with no luck:

# 2.4.1-4 (7d8c0e5759): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.1-4 (0a86619f)
# OS: Linux 6.12.21-amd64 x86_64 Debian trixie/sid 
# Hostname: qqrq
# 4 default setting changes since version 2.4.0
dovecot_config_version = 2.4.0
auth_mechanisms = plain digest-md5 cram-md5 login
compress_zstd_level = 22
default_vsz_limit = 2048M
dovecot_storage_version = 2.4.0
fts_autoindex = yes
fts_autoindex_max_recent_msgs = 999
fts_search_add_missing = yes
mail_compress_write_method = zstd
mail_driver = mdbox
mail_home = /home/%{user}
mail_inbox_path = ~/Mail/0/INBOX
mail_path = ~/Mail/0/
mail_plugins {
  mail_compress = yes
  acl = yes
}
mail_privileged_group = mail
protocols {
  imap = yes
}
sieve_extensions {
  fileinto = yes
  reject = yes
  envelope = yes
  encoded-character = yes
  vacation = yes
  subaddress = yes
  comparator-i;ascii-numeric = yes
  relational = yes
  regex = yes
  imap4flags = yes
  copy = yes
  include = yes
  body = yes
  variables = yes
  enotify = yes
  environment = yes
  mailbox = yes
  date = yes
  index = yes
  ihave = yes
  duplicate = yes
  mime = yes
  foreverypart = yes
  extracttext = yes
  notify = yes
  imapflags = yes
  editheader = yes
}
sieve_plugins {
  sieve_imapsieve = yes
  sieve_extprograms = yes
}
sieve_redirect_envelope_from = recipient
ssl = no
passdb passwd-file {
  default_password_scheme = PLAIN
  passwd_file_path = /etc/dovecot/users
}
userdb passwd-file {
  passwd_file_path = /etc/dovecot/users
}
namespace inbox {
  inbox = yes
  separator = /
  mailbox Drafts {
    special_use = "\\Drafts"
  }
  mailbox Junk {
    special_use = "\\Junk"
  }
  mailbox Trash {
    special_use = "\\Trash"
  }
  mailbox Sent {
    special_use = "\\Sent"
  }
  mailbox "Sent Messages" {
    special_use = "\\Sent"
  }
}
service imap-login {
  inet_listener imap {
  }
}
service imap {
}
service pop3 {
}
service submission {
}
service auth {
  unix_listener auth-userdb {
  }
}
service auth-worker {
}
service dict {
  unix_listener dict {
  }
}
protocol imap {
  mail_plugins {
    mail_log = yes
    notify = yes
    acl = yes
    imap_acl = yes
    sieve = yes
    imap_sieve = yes
    lazy_expunge = yes
  }
}
sieve_script mailbox1 {
  imapsieve_from_name = Archives
  cause = append
  path = file:/.../sieve/dovecot.sieve
  type = before
}

When I add message to Archive, I can see in logs:
imap(kjonca): Error: Couldn't load required plugin 
/usr/lib/dovecot/modules/lib90_sieve_plugin.so: dlopen() failed: 
/usr/lib/dovecot/modules/lib90_sieve_plugin.so: undefined symbol: 
mail_deliver_ctx_get_log_var_expand_table
-- 
http://wolnelektury.pl/wesprzyj/teraz/
Never go to bed mad.  Stay up and fight.
                -- Phyllis Diller, "Phyllis Diller's Housekeeping Hints"
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to