Hi Kitson,
Those default categories can only be renamed once.
Let’s say you have some items with a red flag and you migrate to the latest WebApp. You click on the red category and you give it a new name, lets call it “Red1”. All the items will become red with the name “Red1”.
If it was possible to rename “Red1” to “Red” the old items (which had the red flag) will be updated, but the new items created in the newest WebApp version lose that red color. In the future when you might be able to filter on categories more horrible scenarios can be imagined.
You can however remove the persistent setting on the server for a user. Use it at your own risk.
import kopano
from MAPI.Util import *
import sys
# Define the persistent setting property
PR_EC_WEBAPP_PERSISTENT_SETTINGS_JSON = PROP_TAG(PT_STRING8, PR_EC_BASE+0x74)
parser = kopano.parser('skp')
parser.add_option("-u", dest="user", action="store", help="Username")
parser.add_option("-d", dest="delete", action='store_true', help="delete persistent setting")
parser, args = parser.parse_args()
server = kopano.Server(parser)
if parser.user:
user = server.user(parser.user)
# Define the prop in users store
try:
prop = user.store.prop(PR_EC_WEBAPP_PERSISTENT_SETTINGS_JSON)
except Exception:
print "Property does not exist in store"
sys.exit()
if parser.delete:
try:
# Delete the persistent setting property
user.store.delete(prop)
print "Property deleted"
except Exception:
print "Property does not exist in store"
sys.exit()
Last but not least I’ve created a ticket to show an extra dialog in this renaming process:
https://jira.kopano.io/browse/KW-2058