On 14 Dec 2018, at 17:09, Robert L Mathews <li...@tigertech.com> wrote:
> https://wiki.dovecot.org/Plugins/Lazyexpunge

I have a question about the namespace section.

> You create only a single namespace. When a message is expunged from mailbox 
> <name>, it's moved to a mailbox <name> in the expunge namespace. When an 
> entire mailbox <name> is deleted, it's also moved to this namespace as 
> <name>. If it already exists, their contents are merged. 
> 
> Example configuration: 
> 
> # the default namespace
> 
> namespace {
>   prefix =
>   separator = /
>   inbox = yes
> }
> 
> 
> # namespace for lazy_expunge plugin:
> namespace {
>   prefix = .EXPUNGED/
>   hidden = yes
>   list = no
>   separator = /
>   location = maildir:~/Maildir/expunged
> }
> 
> mail_plugins = $mail_plugins lazy_expunge
> plugin {
>   lazy_expunge = .EXPUNGED/
> 
> }

First all, that shows two namespace sections. Second, my namespace looks quite 
different (maybe it’s from older config version, I am not on 2.3 yet). I have a 
few users with shell access and mail in ~/Maildir but most users are in mysql.

user_query = select 89 as uid, 89 as gid, concat('/usr/local/virtual/', 
maildir) as home FROM mailbox where username = '%u'


namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  mailbox Archive {
    auto = subscribe
    special_use = \Archive
  }
  prefix = 
}

Am I just adding the new namespace for lazy_expunge inside that? And since the 
readme also says to put lazy_expunge and all in the mailplugins line, why is 
this repeated here? Won’t this override the previous setting?

And, finally, is there any way to limit this to only POP3 delete instead of all 
IMAP?

-- 
"Give a man a fire and he's warm for a day, but set fire to him an he's
warm for the rest of his life.”


Reply via email to