"NOTIFY SET (mailboxes INBOX (...))" crashes the IMAP client

Guilhem Moulin guilhem at fripost.org
Sun Jul 19 17:21:16 UTC 2015


Hi list,

The NOTIFY extension (RFC 5465) works fine for mailboxes in the "virtual/"
namespace, but it crashes the IMAP client when used with a mailbox in
the empty "" namespace:

    ~$ /usr/lib/dovecot/imap
    * PREAUTH [CAPABILITY IMAP4rev1 … NOTIFY SPECIAL-USE] Logged in as guilhem
    a NAMESPACE
    * NAMESPACE (("" "/")("virtual/" "/")) NIL NIL
    a OK Namespace completed.
    b NOTIFY SET (mailboxes virtual/all (MessageNew MessageExpunge))
    b OK NOTIFY completed (0.001 secs).
    c NOTIFY SET (mailboxes INBOX (MessageNew MessageExpunge))
    imap(guilhem): Panic: file mail-namespace.c: line 679 (mail_namespace_find): assertion failed: (ns != NULL)
    imap(guilhem): Error: Raw backtrace: …
    Aborted

The "subtree" mailbox filter has the same problem, but the
non-parameterized ones ("inboxes", "personal" and "subscribed") work
fine.

You'll find the output of ‘dovecot -n’ enclosed.
Cheers,
-- 
Guilhem.
-------------- next part --------------
# 2.2.18: /etc/dovecot/dovecot.conf
# OS: Linux 4.0.0-2-686-pae i686 Debian stretch/sid 
listen = 127.0.0.1, ::1
mail_location = maildir:~/mail
mail_plugins = virtual
mailbox_list_index = yes
namespace inbox {
  inbox = yes
  location = 
  mailbox DRAFTS {
    auto = create
    special_use = \Drafts
  }
  mailbox SENT {
    auto = subscribe
    special_use = \Sent
  }
  mailbox SPAM {
    auto = create
    special_use = \Junk
  }
  mailbox TRASH {
    auto = create
    special_use = \Trash
  }
  mailbox virtual/all {
    special_use = \All
  }
  mailbox virtual/flagged {
    special_use = \Flagged
  }
  prefix = 
  separator = /
}
namespace virtual {
  hidden = no
  list = no
  location = virtual:~/mail/virtual
  prefix = virtual/
  separator = /
}
passdb {
  driver = pam
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = " imap"
service imap-login {
  inet_listener imap {
    port = 0
  }
  inet_listener imaps {
    port = 0
  }
}
ssl = no
userdb {
  driver = passwd
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20150719/75e0535a/attachment.sig>


More information about the dovecot mailing list