[Dovecot] How to enable COPY and APPEND commands separately
I'd like to allow a user to move messages between his folders on Dovecot IMAP account, but prevent move/copy from different accounts (Exchange in particular). Outlook uses "xx UID COPY 1 folder" and then "xx UID STORE 1 +FLAGS (\Deleted \Seen)" for internal moves and "xx APPEND folder" for external ones. I tried to achieve this with ACL, but i (insert) seems to control both. Do I miss something? Should I look somewhere else? Please help.
On 21.1.2011, at 1.51, Alex Cherniak wrote:
I'd like to allow a user to move messages between his folders on Dovecot IMAP account, but prevent move/copy from different accounts (Exchange in particular). Outlook uses "xx UID COPY 1 folder" and then "xx UID STORE 1 +FLAGS (\Deleted \Seen)" for internal moves and "xx APPEND folder" for external ones. I tried to achieve this with ACL, but i (insert) seems to control both. Do I miss something? Should I look somewhere else?
That would also prevent users from saving messages to Drafts or Sent Messages. Unless of course this was a per-folder ACL.
Anyway .. nope, there's no way to do that. Why would you want it? You could create a plugin for that though.
Thanks for the answers. Solution we are working on, supposed to provide access to some kind of a mail Dovecot archive exposed to a user as IMAP account in Outlook. The idea was to allow users to move messages between folders, but forbid direct drag-n-drop from the Exchange account.
On Thu, Jan 20, 2011 at 6:53 PM, Timo Sirainen <tss@iki.fi> wrote:
On 21.1.2011, at 1.51, Alex Cherniak wrote:
I'd like to allow a user to move messages between his folders on Dovecot IMAP account, but prevent move/copy from different accounts (Exchange in particular). Outlook uses "xx UID COPY 1 folder" and then "xx UID STORE 1 +FLAGS (\Deleted \Seen)" for internal moves and "xx APPEND folder" for external ones. I tried to achieve this with ACL, but i (insert) seems to control both. Do I miss something? Should I look somewhere else?
That would also prevent users from saving messages to Drafts or Sent Messages. Unless of course this was a per-folder ACL.
Anyway .. nope, there's no way to do that. Why would you want it? You could create a plugin for that though.
On 2011-01-20 6:51 PM, Alex Cherniak wrote:
I'd like to allow a user to move messages between his folders on Dovecot IMAP account, but prevent move/copy from different accounts (Exchange in particular). Outlook uses "xx UID COPY 1 folder" and then "xx UID STORE 1 +FLAGS (\Deleted \Seen)" for internal moves and "xx APPEND folder" for external ones. I tried to achieve this with ACL, but i (insert) seems to control both. Do I miss something? Should I look somewhere else? Please help.
Better to describe the actual *problem* and the end result you are actually trying to achieve, rather than asking for help with a pre-conceived solution that may or may not be appropriate or necessary...
--
Best regards,
Charles
participants (3)
-
Alex Cherniak
-
Charles Marcus
-
Timo Sirainen