Re: [Dovecot] Shared INBOX change in v2.1.6?

2012-05-01 Thread Markus Petri
On Tue, 01 May 2012 03:21:42 +0300, Timo Sirainen  wrote:
> Previously Dovecot has shown shared INBOX like:
> 
> * LIST (\HasChildren) "/" "shared/tss2"
> * LIST (\HasNoChildren) "/" "shared/tss2/INBOX"
> * LIST (\HasNoChildren) "/" "shared/tss2/foo"
> 
> The last change in hg makes it return simply (same as with Cyrus):
> 
> * LIST (\HasChildren) "/" "shared/tss2"
> * LIST (\HasNoChildren) "/" "shared/tss2/foo"
> 
> This behavior could be made optional, but does anyone actually want it
> to work the old way (and why)? I'd rather not add an option that isn't
> useful to anyone.

That change would brake my installations badly, since I have a fair
amount of users working with shared folders. They (and I myself)
currently only use the old way. Personally I like the old way better,
but that is a matter of personal taste, nothing more.

So an option to keep the old behaviour would be greatly appreciated.


Re: [Dovecot] Permission problems when trying to create new folders with ACL plugin

2012-04-25 Thread Markus Petri
On Thu, 26 Apr 2012 00:27:25 +0300
Timo Sirainen  wrote:
> On 24.4.2012, at 14.00, Markus Petri wrote:
> 
> > I have the a problem with shared folders and the ACL plugin. The
> > user "markus" has full access to "Shared/shared-user/Data":
> > 
> > 3 GETACL "Shared/shared-user/Data"
> > * ACL "Shared/shared-user/Data" "markus" akxeilprwtscd
> > 3 OK Getacl completed.
> > 
> > but creating a new subfolder under "Data" fails:
> > 
> > 4 CREATE "Shared/shared-user/Data/New1" 
> > 4 NO [NOPERM] Permission denied
> 
> Fixed: http://hg.dovecot.org/dovecot-2.1/rev/e8b80e0767ac
> 

That fixed it. Thanks.


[Dovecot] Permission problems when trying to create new folders with ACL plugin

2012-04-24 Thread Markus Petri
Hi,

I have the a problem with shared folders and the ACL plugin. The user
"markus" has full access to "Shared/shared-user/Data":

3 GETACL "Shared/shared-user/Data"
* ACL "Shared/shared-user/Data" "markus" akxeilprwtscd
3 OK Getacl completed.

but creating a new subfolder under "Data" fails:

4 CREATE "Shared/shared-user/Data/New1" 
4 NO [NOPERM] Permission denied

This used to work with the same configuration and Dovecot 2.0.

Cheers,
Markus



dovecot -n output:

# 2.1.5: /opt/dovecot-2.1/etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-2-amd64 x86_64 Debian wheezy/sid 
auth_mechanisms = plain login
disable_plaintext_auth = no
listen = 192.168.56.11
mail_location = maildir:~/Maildir
mail_plugins = acl
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave
namespace {
  inbox = yes
  location = 
  prefix = 
  separator = /
  subscriptions = yes
  type = private
}
namespace {
  inbox = no
  list = children
  location = maildir:%%h/Maildir:INDEX=~/Maildir/index/shared/%%u
  prefix = Shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
passdb {
  args = /opt/dovecot-2.1/etc/dovecot/passwd
  driver = passwd-file
}
plugin {
  acl = vfile
  acl_anyone = allow
  acl_shared_dict = file:/var/lib/vdovecot/shared-mailboxes.db
}
protocols = imap
service auth {
  unix_listener auth-userdb {
mode = 0600
user = vdovecot
  }
}
ssl = no
userdb {
  args = /opt/dovecot-2.1/etc/dovecot/passwd
  driver = passwd-file
}
verbose_proctitle = yes
protocol imap {
  mail_plugins = acl imap_acl
}


Re: [Dovecot] Shared folder prefix listed multiple times with dovecot 2.1.1

2012-03-15 Thread Markus Petri
On Thu, 15 Mar 2012 14:22:11 +0200
Timo Sirainen  wrote:
> > Also Dovecot probably should add \Noselect, especially if the
> > mailbox isn't really selectable (there's some weirdness between
> > shared/user being equal to shared/user/INBOX, but I'm not sure what
> > to do about it).
> 
> These should fix this:
> 
> http://hg.dovecot.org/dovecot-2.1/rev/65a75939ac2c
> http://hg.dovecot.org/dovecot-2.1/rev/55586f4a86f1
> 

Yes, those fix the problem. Thanks.


[Dovecot] Shared folder prefix listed multiple times with dovecot 2.1.1

2012-03-08 Thread Markus Petri
Hi,

after upgrading from 2.0.18 to 2.1.1 I noticed that I could not use
shared folders with mutt anymore. 2.1 lists the shared namespace prefix
once per user sharing an folder in LIST "" "%".

I also noticed, that with 2.1 the user folder (Shared/) is no
longer tagged as \NoSelect.

Is this the intended behaviour and mutt simply cannot cope with it or
is it a dovecot problem?

Here an example with three users sharing a folder to the logged in user
with Dovecot 2.1.1:

2 LIST "" "*"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\HasChildren) "/" "Shared/test"
* LIST (\HasNoChildren) "/" "Shared/test/Share"
* LIST (\HasChildren) "/" "Shared/test2"
* LIST (\HasNoChildren) "/" "Shared/test2/Share2"
* LIST (\HasChildren) "/" "Shared/test3"
* LIST (\HasNoChildren) "/" "Shared/test3/Share3"
2 OK List completed.


2 LIST "" "%"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "Shared"
* LIST (\Noselect \HasChildren) "/" "Shared"
* LIST (\Noselect \HasChildren) "/" "Shared"
2 OK List completed.


The same three users and config with Dovecot 2.0.18:

2 LIST "" "*"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "Shared/test"
* LIST (\Noselect \HasChildren) "/" "Shared/test2"
* LIST (\Noselect \HasChildren) "/" "Shared/test3"
* LIST (\HasNoChildren) "/" "Shared/test/Share"
* LIST (\HasNoChildren) "/" "Shared/test2/Share2"
* LIST (\HasNoChildren) "/" "Shared/test3/Share3"
2 OK List completed.


2 LIST "" "%"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "Shared"
2 OK List completed.


Markus



# 2.1.1: /opt/dovecot-2.1/etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-1-amd64 x86_64 Debian wheezy/sid 
auth_mechanisms = plain login
disable_plaintext_auth = no
listen = 192.168.56.11
mail_location = maildir:~/Maildir
mail_plugins = acl
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave namespace { inbox = yes location =
  prefix =
  separator = /
  subscriptions = yes
  type = private
}
namespace {
  inbox = no
  list = children
  location = maildir:%%h/Maildir:INDEX=~/Maildir/index/shared/%%u
  prefix = Shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
passdb {
  args = /opt/dovecot-2.1/etc/dovecot/passwd
  driver = passwd-file
}
plugin {
  acl = vfile
  acl_anyone = allow
  acl_shared_dict = file:/var/lib/vdovecot/shared-mailboxes.db
}
protocols = imap
service auth {
  unix_listener auth-userdb {
mode = 0600
user = vdovecot
  }
}
ssl = no
userdb {
  args = /opt/dovecot-2.1/etc/dovecot/passwd
  driver = passwd-file
}
verbose_proctitle = yes
protocol imap {
  mail_plugins = acl imap_acl
}


Re: [Dovecot] listescape + shared folders with fully qualified user names

2009-08-14 Thread Markus Petri
On Fri, Aug 14, 2009 at 06:47:45PM -0400, Timo Sirainen wrote:
> On Fri, 2009-08-14 at 18:16 -0400, Timo Sirainen wrote:
> > > $ cat subscriptions
> > > #Users/te...@merry\2edovecot.shared
> > 
> > This really doesn't look right.. I think I'll try fixing it properly. :)
> 
> OK, some more patches that should fix everything:
> 
> http://hg.dovecot.org/dovecot-1.2/rev/5ae611e975ad
> http://hg.dovecot.org/dovecot-1.2/rev/be4a5cd32b29
> http://hg.dovecot.org/dovecot-1.2/rev/a1b1a8b6555e
> 

No problems so far. The subscriptions file looks correct and mailbox
listing works, too.

Thanks again.


Re: [Dovecot] listescape + shared folders with fully qualified user names

2009-08-14 Thread Markus Petri
On Fri, Aug 14, 2009 at 12:06:54PM -0400, Timo Sirainen wrote:
> Maybe it's already saved wrong to your subscriptions file? It seems to
> work with me:
> 
> x subscribe shared/t...@domain.org/foo.bar
> x OK Subscribe completed.
> x lsub "" *
> * LSUB () "/" "shared/t...@domain.org/foo.bar"
> x OK Lsub completed.
> 

The folders were subscribed without the listescape plugin:

$ cat subscriptions
#Users/te...@merry.dovecot/Shared


I deleted it and resubscribed with the plugin:

$ cat subscriptions
#Users/te...@merry\2edovecot.shared


Shared folders are not so widely used here yet, so I think I could
simply convert the subscription files, before activating the plugin on
the production server.

Thanks for the heads up.


Regards,
Markus


Re: [Dovecot] listescape + shared folders with fully qualified user names

2009-08-14 Thread Markus Petri
On Thu, Aug 13, 2009 at 08:23:36PM -0400, Timo Sirainen wrote:
> On Wed, 2009-08-12 at 21:47 +0200, Markus Petri wrote:
> > With listescape:
> > 
> > It escapes the dot in the domain part of the user.
> 
> Fixed: http://hg.dovecot.org/dovecot-1.2/rev/0463fc241aae
> 

It seems, the problem is not fixed with LSUB:

2 LSUB "" "*"
* LSUB () "/" "#Users/te...@merry/dovecot/Shared"
2 OK Lsub completed.


2 LIST "" "*"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "#Users/te...@merry.dovecot"
* LIST (\HasNoChildren) "/" "#Users/te...@dc.local/Shared"
2 OK List completed.


Regards,
Markus


Re: [Dovecot] listescape + shared folders with fully qualified user names

2009-08-13 Thread Markus Petri
On Thu, Aug 13, 2009 at 08:23:36PM -0400, Timo Sirainen wrote:
> On Wed, 2009-08-12 at 21:47 +0200, Markus Petri wrote:
> > With listescape:
> > 
> > It escapes the dot in the domain part of the user.
> 
> Fixed: http://hg.dovecot.org/dovecot-1.2/rev/0463fc241aae
> 

Problem gone. Thanks.


[Dovecot] listescape + shared folders with fully qualified user names

2009-08-12 Thread Markus Petri
Hi,

the listescape plugin seems to take its job a little bit too serious.

Dovecot version: 1.2.3 + patch 9b62aa2132de

Without listescape:

2 list "" "*"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "#Users/te...@merry.dovecot"
* LIST (\HasNoChildren) "/" "#Users/te...@merry.dovecot/Shared"
2 OK List completed.


With listescape:

It escapes the dot in the domain part of the user.

2 list "" "*"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "#Users/te...@merry.dovecot"
* LIST (\HasNoChildren) "/" "#Users/te...@merry/dovecot/Shared"
2 OK List completed.


Regards,
Markus