[Dovecot] inconsistency with expire-tool and expire dict

LEVAI Daniel leva at ecentrum.hu
Mon Aug 10 10:54:57 EEST 2009


Hi!

Here is the problem:

passdb:
daniell:*::::::user=daniell2

userdb:
daniell2::uid:gid:gecos:home::

dovecot.conf:
plugin {
  expire = SA.* 1
  # (There are SA.HAM and SA.SPAM directories)
}

When copying a message to eg. the SA.HAM directory, then dovecot inserts this 
into my expires table:

dovecot=# select * from expires ;
      username       | mailbox | expire_stamp
---------------------+---------+--------------
 daniell             | SA.HAM  |   1249976454

 ^^^^^^^ wrong username

This causes an error when running expire-tool (after changing expire_stamp):
# /usr/local/sbin/dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-
tool --test
Info: User lookup failed: daniell
Info: daniell/SA.HAM: no messages left


If I change the username field in the expires table... :

# UPDATE expires SET username = 'daniell2';
UPDATE 1

... expire-tool is fine:

# /usr/local/sbin/dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-
tool --test
Info: daniell2/SA.HAM: timestamp 1249880093 (Mon Aug 10 06:54:53 2009) -> 
1249976454 (Tue Aug 11 09:40:54 2009)


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



More information about the dovecot mailing list