2 SPDX-FileCopyrightText: 2009 Andras Mantia <[email protected]>
14 namespace Acl
21 map['l'] = Lookup;
22 map['r'] = Read;
23 map['s'] = KeepSeen;
24 map['w'] = Write;
25 map['i'] = Insert;
26 map['p'] = Post;
27 map['c'] = Create; // TODO: obsolete, keep it?
28 map['d'] = Delete; // TODO: obsolete, keep it?
29 map['k'] = CreateMailbox;
30 map['x'] = DeleteMailbox;
31 map['t'] = DeleteMessage;
32 map['e'] = Expunge;
33 map['a'] = Admin;
34 map['n'] = WriteShared;
35 map['0'] = Custom0;
36 map['1'] = Custom1;
37 map['2'] = Custom2;
38 map['3'] = Custom3;
39 map['4'] = Custom4;
40 map['5'] = Custom5;
41 map['6'] = Custom6;
42 map['7'] = Custom7;
43 map['8'] = Custom8;
44 map['9'] = Custom9;
47 QMap<char, Right> map;
57 Rights result;
79 QByteArray result;
83 result += globalRights->map.key(static_cast<Right>(right));
92 Rights normalized = rights;
106 Rights denormalized = normalizedRights(rights);
Perform APPEND and COPY with the mailbox as the target.
Obsolete as of RFC 4314, replaced by CreateMailbox and DeleteMailbox.
KIMAP_EXPORT Rights rightsFromString(const QByteArray &string)
Convert the text form of a set of rights into a Rights bitflag.
KIMAP_EXPORT Rights denormalizedRights(Rights rights)
Returns a rights mask that contains both obsolete and new flags if one of them is set.
Obsolete as of RFC 4314, replaced by DeleteMessage and Expunge.
Set or clear flags other than \Seen and \Deleted on messages in the mailbox.
Set or clear the \Deleted flag on messages in the mailbox.
View and modify the access control list for the mailbox.
Set or clear the \Seen flag on messages in the mailbox, and keep it across sessions.
KIMAP_EXPORT Rights normalizedRights(Rights rights)
Returns a rights mask that has no obsolete members anymore, i.e.
Mailbox is visible to LIST/LSUB commands, SUBSCRIBE mailbox.
Create new child mailboxes, or move a mailbox with this mailbox as the new parent.
KIMAP_EXPORT QByteArray rightsToString(Rights rights)
Convert a set of rights into text format.