[Dovecot] Thunderbird or Dovecot causing duplicates

Tim weirdit at gmail.com
Thu Jun 23 04:39:54 EEST 2011


Hey everyone, back on the list after a few years away.

I have a strange issue that is just annoying. Trying to work out if
it's Dovecot or Thunderbird causing the problem.
Basically, I read an email (so it gets marked as read) and then very
quickly I mark is as unread, (i.e. I realised I want to leave that
email for later) which causes a duplicate email to be created.
Generally I believe both duplicates are then marked as unread, but
I've not taken too much notice of that part yet, other than the new
email (the duplicate) being marked as unread.
This has also happened when deleting emails from a junk folder. It
seems to be events happening quickly that ether Thunderbird or Dovecot
don't keep up with, so think the state of the message hasn't changed,
so recreate the message maybe? I'm not really sure, so was hoping
someone else had experienced the issue or could shed some light on it.

Thanks

Tim

The logs from when I managed to recreate this manually this morning as a test.

Jun 23 09:23:24 tahn dovecot: IMAP(tim): Fixed a duplicate:
/home/tim/Maildir/cur/1308696708.M863172P16126.tahn,S=3761,W=3888:2,S
-> 1308792204.M626641P1992.tahn

Some older logs from what I believe was deleting from the junk mail.

Jun 22 13:50:30 tahn dovecot: IMAP(tim): Fixed a duplicate:
/home/tim/Maildir/.Junk/cur/1305489734.M227104P26221.tahn,S=73074,W=75051:2,S
-> 1308721830.M966622P17272.tahn
Jun 22 13:50:30 tahn dovecot: IMAP(tim): Fixed a duplicate:
/home/tim/Maildir/.Junk/cur/1305417777.M51118P10799.tahn,S=4057,W=4132:2,ST
-> 1308721830.M966623P17272.tahn
Jun 22 13:50:30 tahn dovecot: IMAP(tim): Fixed a duplicate:
/home/tim/Maildir/.Junk/cur/1305611378.M37299P20335.tahn,S=4772,W=4858:2,ST
-> 1308721830.M966624P17272.tahn

I'm using dovecot on Ubuntu 10.04 LTS with the dovecot-postfix package.
Client is Thunderbird 3.1.10.

$ apt-cache policy dovecot-imapd
dovecot-imapd:
  Installed: 1:1.2.9-1ubuntu6.4
  Candidate: 1:1.2.9-1ubuntu6.4
  Version table:
     1:1.2.9-1ubuntu6.5 0
        900 http://ftp.iinet.net.au/linux/ubuntu/ lucid-updates/main Packages
        400 http://ftp.iinet.net.au/linux/ubuntu/ lucid-proposed/main Packages
 *** 1:1.2.9-1ubuntu6.4 0
        990 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
        100 /var/lib/dpkg/status
     1:1.2.9-1ubuntu6 0
        500 http://ftp.iinet.net.au/linux/ubuntu/ lucid/main Packages

$ apt-cache policy dovecot-postfix
dovecot-postfix:
  Installed: 1:1.2.9-1ubuntu6.5
  Candidate: 1:1.2.9-1ubuntu6.5
  Version table:
 *** 1:1.2.9-1ubuntu6.5 0
        900 http://ftp.iinet.net.au/linux/ubuntu/ lucid-updates/main Packages
        400 http://ftp.iinet.net.au/linux/ubuntu/ lucid-proposed/main Packages
        100 /var/lib/dpkg/status
     1:1.2.9-1ubuntu6.4 0
        990 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
     1:1.2.9-1ubuntu6 0
        500 http://ftp.iinet.net.au/linux/ubuntu/ lucid/main Packages


$dovecot -n
# 1.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-30-generic-pae i686 Ubuntu 10.04.2 LTS
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap pop3 imaps pop3s managesieve
listen: *,[::]
ssl_cert_file: /etc/ssl/certs/ssl-mail.pem
ssl_key_file: /etc/ssl/private/ssl-mail.key
ssl_cipher_list:
ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
imap_client_workarounds(default): outlook-idle delay-newmail
imap_client_workarounds(imap): outlook-idle delay-newmail
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
lda:
  postmaster_address: postmaster
  mail_plugins: sieve
  quota_full_tempfail: yes
  deliver_log_format: msgid=%m: %$
  rejection_reason: Your message to <%t> was automatically rejected:%n%r
auth default:
  mechanisms: plain login
  passdb:
    driver: pam
  passdb:
    driver: pam
  userdb:
    driver: passwd
  userdb:
    driver: passwd
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/dovecot-auth
      mode: 432
      user: postfix
      group: postfix
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve

-- 
Timothy White - Somewhere in Australia


More information about the dovecot mailing list