Hi,
I'm running Dovecot 1.2.17 on FreeBSD (exact output of 'dovecot -n'
is
atttached to this mail). The machine is serving a public mailinglist
archive which is read-only; all mail arriving for the archive is marked
as \Seen using Sieve script.
This setup works well most of the time, but I noticed that for *some*
mails, the \Seen flag doesn't seem to be stored. Right now I have 31255
mails in one of my folders and I can't seem to mark five of them as
\Seen - the others work just fine.
I first suspected a client issue so I did a little IMAP session by hand:
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
. LOGIN "xxxxxx" "yyyyyy"
. OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT
IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE
QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL
RIGHTS=texk] Logged in
. SELECT "Lists/Archive/squish"
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft $NotJunk)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 31250 EXISTS
* 0 RECENT
* OK [UNSEEN 27126] First unseen.
* OK [UIDVALIDITY 1350573750] UIDs valid
* OK [UIDNEXT 31265] Predicted next UID
* OK [HIGHESTMODSEQ 9512] Highest
. OK [READ-ONLY] Select completed.
. SEARCH UNSEEN
* SEARCH 27126 27127 28484 29835 29838
. OK Search completed (0.000 secs).
. STORE 27126 FLAGS \SEEN
. OK Store completed.
. SEARCH UNSEEN
* SEARCH 27126 27127 28484 29835 29838
. OK Search completed (0.000 secs).
. LOGOUT
* BYE Logging out
. OK Logout completed.
Note how the first 'SEARCH UNSEEN' command shows that '27126' is
unseen,
the subsequent 'STORE' command succeeds - but then 'SEARCH
UNSEEN' still
shows 27126 as unseen!
I have all four logging levels being piped to /var/log/maillog (I
verified this by running dovecot --log-error) but the file does not show
any problems. I checked the file permissions of the Maildir directories,
and it all looks dandy to me.
Does anybody have some suggestions how to debug this further, or what
the reason for this may be?
--
Frerich Raabe - raabe at froglogic.com
www.froglogic.com - Multi-Platform GUI Testing
-------------- next part --------------
# 1.2.17: /usr/local/etc/dovecot.conf
# OS: FreeBSD 9.0-RELEASE i386
protocols: imap imaps managesieve
listen(default): *
listen(imap): *
listen(managesieve): *:2000 *:4190
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(managesieve): /usr/local/libexec/dovecot/managesieve-login
verbose_proctitle: yes
first_valid_uid: 1000
first_valid_gid: 1000
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve
mail_process_size: 512
mail_plugins(default): acl imap_acl fts fts_squat
mail_plugins(imap): acl imap_acl fts fts_squat
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve
imap_client_workarounds(default): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(managesieve):
namespace:
type: private
separator: /
inbox: yes
list: yes
subscriptions: yes
namespace:
type: public
separator: /
prefix: Lists/
location:
maildir:/home/vmail/lists/Maildir:CONTROL=~/Maildir/lists:INDEX=~/Maildir/lists
list: yes
namespace:
type: public
separator: /
prefix: Lists/Archive/
location: maildir:/home/vmail/lists/archive/Maildir
list: yes
lda:
postmaster_address: postmaster at imap2.froglogic.com
mail_plugins: sieve acl
sendmail_path: /usr/sbin/sendmail
auth default:
mechanisms: plain login
username_format: %Lu
passdb:
driver: pam
args: session=yes dovecot
passdb:
driver: ldap
args: /usr/local/etc/dovecot-ldap.conf
userdb:
driver: passwd-file
args: username_format=%n /usr/local/etc/dovecot-pseudo-users.passwd
userdb:
driver: ldap
args: /usr/local/etc/dovecot-ldap.conf
plugin:
acl: vfile
sieve_before: /usr/local/etc/keep-broadcast-mail.sieve
fts: squat
fts_squat: partial=4 full=4