[Dovecot] sharing INBOX not possible?

Burckhard Schmidt bschmidt at cms.hu-berlin.de
Thu Jun 17 17:38:24 EEST 2010


Hello,

I like to share the inbox "INBOX" itself to other users and not only 
folders.
But it looks like INBOX is not shareable? I have tried both dbox and 
maildir.
I have used TB, SquirrelMail, Roundcube. TB shoes the shared INBOX 
within the subscription dialog as subscripted but the per user file 
"subsricptions" does not contain an entry. Any other "normal" shared 
folder I can (un-)subscribe and the entry within "subsricptions" will be 
updated.

dovecot 1.2.11
configuration:
mail_access_groups: sysdov
mail_privileged_group: sysdov
mail_uid: sysdov
mail_gid: sysdov
mail_location: 
dbox:~/dbox:INDEX=/addons/index/%u:CONTROL=~/control:LAYOUT=fs
mail_plugins: autocreate  expire acl imap_acl
namespace:
   type: private
   separator: /
   inbox: yes
   list: yes
   subscriptions: yes
namespace:
   type: shared
   separator: /
   prefix: FremdeOrdner/%%u/
   location: dbox:%%h/dbox:CONTROL=~/control/FremdeOrdner/%%u:LAYOUT=fs
   list: yes
plugin:
...
acl_shared_dict: file:/addons/acl/shared-folder

user "user2" shares "INBOX" and folder "Drafts" to user "user1".

~user2/dbox/mailboxes/INBOX/dbox-Mails/dovecot-acl: user=user1 eilrwts
~user2/dbox/mailboxes/Drafts/dbox-Mails/dovecot-acl: user=user1 eilrwts
~user2/dbox/dovecot-acl-list:
                               1276766257 INBOX
                               1276762083 Drafts
/addons/acl/shared-folder:
                            shared/shared-boxes/user/user2/user1
                            1


Here some imap commands I have used to test it:

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
AUTH=PLAIN] Dovecot ready.

1 login user1 ********
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT 
IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE 
QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS ACL 
RIGHTS=texk] Logged in

1 list "" "*"
* LIST (\HasNoChildren) "/" "Drafts"
* LIST (\HasNoChildren) "/" "Sent"
* LIST (\HasNoChildren) "/" "AutoCleanSpam"
* LIST (\HasNoChildren) "/" "Trash"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "FremdeOrdner"
* LIST (\Noselect \HasChildren) "/" "FremdeOrdner/user2"
* LIST (\HasNoChildren) "/" "FremdeOrdner/user2/Drafts"
1 OK List completed.

I'm right missing "FremdeOrdner/user2/INBOX" here? Or should an 
IMAP-Client always try to select an "INBOX" as long as "HasChildren" is 
shown?



1 examine FremdeOrdner/user2/Drafts
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft nonjunk)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 1 EXISTS
* 0 RECENT
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1273601955] UIDs valid
* OK [UIDNEXT 2] Predicted next UID
* OK [HIGHESTMODSEQ 3] Highest
1 OK [READ-ONLY] Select completed.

1 examine FremdeOrdner/user2/INBOX
* OK [CLOSED] Previous mailbox closed.
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 3 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1273601954] UIDs valid
* OK [UIDNEXT 39] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
1 OK [READ-ONLY] Select completed.

1 select FremdeOrdner/user2/INBOX
* OK [CLOSED] Previous mailbox closed.
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] 
Flags permitted.
* 3 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1273601954] UIDs valid
* OK [UIDNEXT 39] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
1 OK [READ-WRITE] Select completed.

============

Additional question
I have seen the comment for shared folder and dbox:
"You must not try to :INDEX= to have copies of index files."
This is still valid and within version 2.0 also?

Regards

Burckhard Schmidt


More information about the dovecot mailing list