Remi Cool wrote:
Hello,
I have my mailserver (exim4) and imap-server (courier-imap) settings
stored in a database for easy maintenance.
This setup works fine, but I must prevent users from renaming shared
folders, otherwise the maildir name gets changed and exim can't deliver
the messages.
The solution I now have is to use an acl without 'x' on my non-mutable
folder and with 'x' in subsequent folders.
Non-mutable:
owner aceilrstw
anyone ceilrstw
Mutable:
owner aceilrstwx
anyone ceilrstwx
#shared
myfolder (non-mutable)
test (mutable)
The drawback is that I can't (re)move any mutable folders ... according
to Thunderbird the mailserver responds with that it cannot move folders
to a different account (trash). Moving it to a different folder under
#shared is also not possible.
Is there a workaround for this kind of problem?
An other solution, more user friendly, would be if courier-imap would
call (hook) a script with params when a foldername was changed. The
script could adapt the database setting accordingly
It turns out that you cannot move shared folders to the Trash folder of
the Inbox.
The shared folder could reside on a different partition and it is not
possible to move between partitions. At least that is what I found
googling on the subject.
Why not copy the folder and then remove the original, that way it
doesn't matter where the folder resides.
I'm still interested to know if there is some kind of hook I could use
to call a script to update my database when a folder is renamed.
- Remi -