[Dovecot] Virtual mailboxes not always up to date?

Patrick Nagel patrick.nagel at star-group.net
Mon Nov 9 02:03:59 EET 2009


Hi,

I have been experimenting with the Virtual mailboxes plugin [1] recently.

This is my setup: the following dovecot-virtual file exists in a virtual
mailbox called "todo":

------ dovecot-virtual ------
*
-Trash
-Trash/*
-Spam
-Spam/*
  OR KEYWORD $TODO KEYWORD todo
-----------------------------

so if any mail in any mailbox except Trash+Spam has the keyword "$TODO"
(that's what KMail sets when you mark a message as "action item") or "todo"
(that's what Thunderbird sets when you put the Todo tag on a message), it
should be shown in that 'todo' virtual mailbox.

This works for the first time after I edit the dovecot-virtual file and
then access the virtual mailbox (all mails I expect to be shown in the todo
mailbox are there) - but further accesses always show the same content,
even though I removed the keyword from one of the mails (and I can confirm
that the keyword has actually been removed by dovecot, since the filename
doesn't contain the letter corresponding to the keyword anymore).

It seems that changing the dovecot-virtual file triggers the execution of
the "search program" - but shouldn't simply accessing the virtual mailbox
also trigger it? Or is there a (undocumented?) timeout between search
program executions?

Patrick.

[1]: http://wiki.dovecot.org/Plugins/Virtual

# dovecot -n
# 1.2.6: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.22-vs2.2.0.7-gentoo x86_64 Gentoo Base System release
2.0.1
protocols: imaps managesieve
listen: x.x.x.x
ssl: required
ssl_ca_file: /etc/ssl/dovecot/sub.class1.server.ca.crt
ssl_cert_file: /etc/ssl/dovecot/ssl.crt
ssl_key_file: /etc/ssl/dovecot/ssl.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(managesieve): /usr/libexec/dovecot/managesieve-login
mail_max_userip_connections(default): 20
mail_max_userip_connections(imap): 20
mail_max_userip_connections(managesieve): 10
mail_location: maildir:~/.maildir
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(managesieve): /usr/libexec/dovecot/managesieve
mail_process_size: 2048
mail_plugins(default): virtual fts fts_squat
mail_plugins(imap): virtual fts fts_squat
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(managesieve): /usr/lib64/dovecot/managesieve
imap_client_workarounds(default): tb-extra-mailbox-sep
imap_client_workarounds(imap): tb-extra-mailbox-sep
imap_client_workarounds(managesieve):
namespace:
  type: private
  separator: .
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: private
  separator: .
  prefix: virtual.
  location: virtual:~/.maildir/virtual
  list: yes
  subscriptions: yes
lda:
  postmaster_address: postmaster at x
  mail_plugins: sieve virtual
auth default:
  passdb:
    driver: pam
    args: *
  userdb:
    driver: passwd
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix
plugin:
  fts: squat
  fts_squat: partial=4 full=10

-- 
STAR Software (Shanghai) Co., Ltd.              http://www.star-group.net/
Phone:    +86 (21) 3462 7688 x 826               Fax:   +86 (21) 3462 7779

PGP key:  E883A005 https://stshacom1.star-china.net/keys/patrick_nagel.asc
Fingerprint:             E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005


More information about the dovecot mailing list