Re: SPECIAL-USE again

2014-12-29 Thread Stephan Bosch
On 12/29/2014 11:22 AM, Peter Mogensen wrote:
 Hi,

 Great to see Thunderbird support SPECIAL-USE now.

 I would like to hear the list about the intended use of SPECIAL-USE.

 I get the impression from several earlier mails here that the
 intention is for the server to globally decide what the folder-name of
 a specific SPECIAL-USE folder is for all users.
 That's the way the documentation exemplifies it and what I get from
 posts like this:
 http://www.dovecot.org/list/dovecot/2013-February/088129.html

 I get the point that if *all* clients ignored the real folder-name and
 only obeyed SPECIAL-USE, the clients could locally in the GUI decide
 language and name of the \Sent, \Drafts, \Trash folders.
 And the real folder name would become just an opaque identifier.

 However that's not how the world is like. There are plenty of clients
 ignoring SPECIAL-USE and placing meaning in the actual folder name in
 a language of their own choice.

 It seems natural for me to let the user configure their own individual
 SPECIAL-USE tagging according to their language and/or mix of IMAP
 clients.
  - either by setting IMAP METADATA (RFC5464) or by having the userdb
 return entries like: namespace/inbox/Papperskorg/specialuse=\Trash
 (for a swede)

For creating a special use mailbox there is the CREATE-SPECIAL-USE
capability (https://tools.ietf.org/html/rfc6154, Section 3). As you
suggested, the special use attributes can also be changed using the
METADATA capability (https://tools.ietf.org/html/rfc6154, Section 4).
Unfortunately, both of these features are not yet supported by Dovecot.

I think it is already possible to return special use attributes from
userdb, although I haven't verified that.

Regards,

Stephan.


Re: SPECIAL-USE again

2014-12-29 Thread Peter Mogensen

On 2014-12-29 20:45, Stephan Bosch wrote:

For creating a special use mailbox there is the CREATE-SPECIAL-USE
capability (https://tools.ietf.org/html/rfc6154, Section 3). As you
suggested, the special use attributes can also be changed using the
METADATA capability (https://tools.ietf.org/html/rfc6154, Section 4).
Unfortunately, both of these features are not yet supported by Dovecot.


They are also basically two sides of the same feature.
For Dovecot to support CREATE-SPECIAL-USE it has to store that state 
somewhere anyway... and that would probably be in a METADATA dict.



I think it is already possible to return special use attributes from
userdb, although I haven't verified that.


Neither have I, but I see no reason why it shouldn't work. That would 
probably be the easiest way to support per-user SPECIAL-USE (which I 
think makes more sense than a global hardwired setting).


But to make it really useful, it would require Sieve support. Like:
http://www.ietf.org/mail-archive/web/sieve/current/msg05171.html

/Peter


Re: SPECIAL-USE again

2014-12-29 Thread Stephan Bosch
On 12/29/2014 9:24 PM, Peter Mogensen wrote:
 On 2014-12-29 20:45, Stephan Bosch wrote:
 For creating a special use mailbox there is the CREATE-SPECIAL-USE
 capability (https://tools.ietf.org/html/rfc6154, Section 3). As you
 suggested, the special use attributes can also be changed using the
 METADATA capability (https://tools.ietf.org/html/rfc6154, Section 4).
 Unfortunately, both of these features are not yet supported by Dovecot.

 They are also basically two sides of the same feature.
 For Dovecot to support CREATE-SPECIAL-USE it has to store that state
 somewhere anyway... and that would probably be in a METADATA dict.

Something like that, yes.

 I think it is already possible to return special use attributes from
 userdb, although I haven't verified that.

 Neither have I, but I see no reason why it shouldn't work. That would
 probably be the easiest way to support per-user SPECIAL-USE (which I
 think makes more sense than a global hardwired setting).

Yes, although that doesn't mean that users can modify the special-use
attributes themselves, unless some sort of web management interface has
a dialog for that. The METADATA/CREATE-SPECIAL-USE capabilities would
provide a standard means for a user to do this, from within the MUA.

 But to make it really useful, it would require Sieve support. Like:
 http://www.ietf.org/mail-archive/web/sieve/current/msg05171.html

Right. Maybe I should give this another look.

Regards,

Stephan.


Re: SPECIAL-USE again

2014-12-29 Thread A.L.E.C
On 12/29/2014 10:15 PM, Stephan Bosch wrote:
 Yes, although that doesn't mean that users can modify the special-use
 attributes themselves, unless some sort of web management interface has
 a dialog for that. The METADATA/CREATE-SPECIAL-USE capabilities would
 provide a standard means for a user to do this, from within the MUA.

Roundcube 1.1 has this feature.

-- 
Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer  [http://roundcube.net]
---
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl