Re: [Dovecot] Unsubscribing from public folders

2010-09-24 Thread Timo Sirainen
On Fri, 2010-09-24 at 10:21 -0700, aditsu wrote:
> 
> Also, you haven't commented on my last phrase: "please let me know the
> best
> way to fix the configuration/subscriptions." Specifically:
> - Should I switch the separator to "."?

Probably would cause just more problems.

> - If I don't, then how to edit the subscription files? Should
> Public-NIB.foo.bar become Public-NIB/foo.bar or Public-NIB/foo/bar?

Public-NIB/foo.bar

>  And what
> about INBOX.foo.bar?

That's ok.

> - Anything else I can do? 

Nope.

The special case here is that Public-NIB/'s subscriptions go to the
parent namespace's subscriptions file. So each entry that belongs to it
must begin with the namespace prefix (Public-NIB/). For everything else
it uses the internal separator, which is always '.'. That allows
changing namespace separator without breaking all subscriptions. (But
changing namespace prefix for subscriptions=no namespace breaks
subscriptions, as has happened with you when changing from "Public-NIB."
to "Public-NIB/".)



Re: [Dovecot] Unsubscribing from public folders

2010-09-24 Thread aditsu


Timo Sirainen wrote:
> 
> I think what happened was that you switched namespace separator from "."
> to "/", which then caused these prefixes to change in subscriptions file
> from Public-NIB.* to Public-NIB/*. It's actually kind of an accident that
> those Public-NIB.* entries in the subscriptions file even work.. It wasn't
> intended to work that way. Subscriptions for subscriptions=no namespaces
> are handled in a bit kludgy way. So, this isn't really a bug. :) Maybe
> some day in future separator changes can be handled better for
> subscriptions=no namespaces..
> 

Well, I don't remember switching any namespace separator, but I may have
done it at some point when switching from Courier to Dovecot. Anyway,
Dovecot 1.1 ran this way for a long time with no issues, only after the
upgrade to 1.2 I noticed the problem.

Also, you haven't commented on my last phrase: "please let me know the best
way to fix the configuration/subscriptions." Specifically:
- Should I switch the separator to "."?
- If I don't, then how to edit the subscription files? Should
Public-NIB.foo.bar become Public-NIB/foo.bar or Public-NIB/foo/bar? And what
about INBOX.foo.bar?
- Anything else I can do?

Thanks
Adrian
-- 
View this message in context: 
http://old.nabble.com/Unsubscribing-from-public-folders-tp29779347p29800810.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] Unsubscribing from public folders

2010-09-22 Thread Timo Sirainen
On 22.9.2010, at 20.42, aditsu wrote:

> Good questions. Now I notice that it was added at the end (after
> resubscribing) as "Public-NIB/archive.older", but there's no other "/"
> appearing in the file!
> Other folders look like "Public-NIB.archive.2010a" or "INBOX.office" etc. I
> assume that folder originally had a "." instead of the "/" too.
> 
> If you want to know more history, I first used courier-imap, and later
> converted to dovecot 1.1, and even later to 1.2. I guess dovecot 1.1 was
> more lenient?

I think what happened was that you switched namespace separator from "." to 
"/", which then caused these prefixes to change in subscriptions file from 
Public-NIB.* to Public-NIB/*. It's actually kind of an accident that those 
Public-NIB.* entries in the subscriptions file even work.. It wasn't intended 
to work that way. Subscriptions for subscriptions=no namespaces are handled in 
a bit kludgy way. So, this isn't really a bug. :) Maybe some day in future 
separator changes can be handled better for subscriptions=no namespaces..



Re: [Dovecot] Unsubscribing from public folders

2010-09-22 Thread aditsu


Timo Sirainen wrote:
> 
> I can't remember fixing anything related to this, but you should upgrade
> to v1.2.14 anyway.
> 

I'll try it later if I can't find another solution. 1.2.11 is the latest
version marked "stable" in my distro.



> A full dovecot -n output would have been better. Most importantly: what
> plugins do you have loaded?
> 

Here's dovecot -n, with a little anonymization:

# 1.2.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.34-gentoo-r6 x86_64 Gentoo Base System release 1.12.13 
protocols: imap imaps managesieve
ssl_cert_file: /etc/ssl/dovecot/cert.crt
ssl_key_file: /etc/ssl/dovecot/privkey.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(managesieve): /usr/libexec/dovecot/managesieve-login
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(managesieve): /usr/libexec/dovecot/managesieve
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(managesieve): /usr/lib64/dovecot/managesieve
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: public
  separator: /
  prefix: Public/
  location: maildir:/home/vmail/public
  list: yes
namespace:
  type: public
  separator: /
  prefix: Public-NLHCA/
  location: maildir:/home/vmail/(some path)
  list: yes
namespace:
  type: public
  separator: /
  prefix: Public-NIB/
  location: maildir:/home/vmail/(some other path)
  list: yes
lda:
  postmaster_address: postmaster
  mail_plugins: sieve
auth default:
  mechanisms: plain cram-md5
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail



>> In the meantime I checked and found a "subscriptions" file in my maildir,
>> then went and edited it by hand (and removed the folder I wanted).
> 
> What did the entry look like in the file?
> 
>>  That
>> seemed to work, and afterwards I can subscribe/unsubscribe to that
>> particular folder, but still not to any other public folders.
> 
> When you re-subscribe does the entry look different in the file?
> 

Good questions. Now I notice that it was added at the end (after
resubscribing) as "Public-NIB/archive.older", but there's no other "/"
appearing in the file!
Other folders look like "Public-NIB.archive.2010a" or "INBOX.office" etc. I
assume that folder originally had a "." instead of the "/" too.

If you want to know more history, I first used courier-imap, and later
converted to dovecot 1.1, and even later to 1.2. I guess dovecot 1.1 was
more lenient?
Anyway, please let me know the best way to fix the
configuration/subscriptions.

Thanks
Adrian

-- 
View this message in context: 
http://old.nabble.com/Unsubscribing-from-public-folders-tp29779347p29783183.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] Unsubscribing from public folders

2010-09-22 Thread Timo Sirainen
On Wed, 2010-09-22 at 06:13 -0700, aditsu wrote:
> Hi, I'm having problems unsubscribing from public folders - nothing seems to
> happen when I do that (from Thunderbird, Squirrelmail or telnet).
> I'm using Dovecot 1.2.11. 

I can't remember fixing anything related to this, but you should upgrade
to v1.2.14 anyway.

> And my relevant config:

A full dovecot -n output would have been better. Most importantly: what
plugins do you have loaded?

> In the meantime I checked and found a "subscriptions" file in my maildir,
> then went and edited it by hand (and removed the folder I wanted).

What did the entry look like in the file?

>  That
> seemed to work, and afterwards I can subscribe/unsubscribe to that
> particular folder, but still not to any other public folders.

When you re-subscribe does the entry look different in the file?

Anyway, I couldn't reproduce this.



[Dovecot] Unsubscribing from public folders

2010-09-22 Thread aditsu

Hi, I'm having problems unsubscribing from public folders - nothing seems to
happen when I do that (from Thunderbird, Squirrelmail or telnet).
I'm using Dovecot 1.2.11. I remember that this worked when I was using
version 1.1.7.

Here is an extract from an imap session:
3 unsubscribe "Public-NIB/archive/older"
3 OK Unsubscribe completed.
6 lsub "" "Public-NIB/*"
* LSUB () "/" "Public-NIB/archive"
* LSUB () "/" "Public-NIB/archive/2008b"
* LSUB () "/" "Public-NIB/archive/2009a"
* LSUB () "/" "Public-NIB/archive/2009b"
* LSUB () "/" "Public-NIB/archive/older"
* LSUB () "/" "Public-NIB/archive/2010a"
6 OK Lsub completed.


And my relevant config:

namespace private {
  separator = /
  prefix =
  #location defaults to mail_location.
  inbox = yes
}

namespace public {
  separator = /
  prefix = Public-NIB/
  location = maildir:/(some path)
  subscriptions = no  # v1.1+
}


In the meantime I checked and found a "subscriptions" file in my maildir,
then went and edited it by hand (and removed the folder I wanted). That
seemed to work, and afterwards I can subscribe/unsubscribe to that
particular folder, but still not to any other public folders.

What could be the problem, or how can I debug this?

Thanks
Adrian
-- 
View this message in context: 
http://old.nabble.com/Unsubscribing-from-public-folders-tp29779347p29779347.html
Sent from the Dovecot mailing list archive at Nabble.com.