Gibt es eine Möglichkeit, bei der Migration von Kopano zu Grommunio die von den Benutzern erstellten:
- Regeln,
- Signaturen und
- Kategorien
zu übernehmen?
Gibt es eine Möglichkeit, bei der Migration von Kopano zu Grommunio die von den Benutzern erstellten:
Nicht automatisch, nur manuell. Die Kategorien werden vermutlich übernommen, bin mir aber nicht sicher.
Oh je. Wir wollen einen größeren Kunden migrieren. Und ich weiß, dass die viel mit Kategorien arbeiten.
Also für signaturen könnte ich was basteln, für regeln(import in grommunio) leider noch nicht :-<.
die sollte man eigtl. via exmdb raus fischen können. muss aber noch mal genau schauen.
EDIT: und ansonsten schadet ein feature-request in https://github.com/grommunio/admin-api ja auch nicht :>
I could have sworn outlook was also available but i guess i'm cuckoo.. $APPADATA\Roaming\Signatures...
Just writing down the steps as i can't tell when i have time for this thingy..
For the source on kopano you want to use:
kopano-webapp-admin.py --all-users --backup-signature
Now after transfering all those files you wanna load the content in an escaped json-array e.g.:
cat $username_$signaturename_$somenumber.html |
jq -Rs --arg USER $username -arg ID $somenumber '
{"$ID": { "content" : . ,
"isHTML": true,
"name": $USER }
}' > $username_$signaturename_$someid.json
i love to make typos when just writing out like it comes to mind!!!!
On grommunio look at
| jq '.settings.zarafa.v1.contexts.mail.signatures'
will return something like
{
"all": {
"1721117492072": {
"isHTML": false,
"name": "cb",
"content": "\n\n........"
}
},
"new_message": 1721117492072,
"replyforward_message": 1721117492072
}
From there it should become clear what needs to be done...
And for rules i just used kopano_rules.py to export them for each user and leave it to he local admin if he shares them with their users so they could easily recreate their rules.
If you have problems with charsets as i did somewhere...
diff --git a/kopano-rules/kopano_rules.py b/kopano-rules/kopano_rules.py
index 65e5c96..15f5a30 100755
--- a/kopano-rules/kopano_rules.py
+++ b/kopano-rules/kopano_rules.py
@@ -772,8 +772,14 @@ def printrules(filters, user, server):
table_data = []
for rule in filters:
condition_message = convertcondition(rule[4].Value)
+ try: condition_message = condition_message.decode('Windows-1252')
+ except AttributeError: pass
actions = convertaction(rule[5], user,server)
+ try: actions = actions.decode('Windows-1252')
+ except AttributeError: pass
name = rule[7].Value
+ try: name = name.decode('Windows-1252')
+ except AttributeError: pass
condition = condition_message
try:
table_data.append(
© 2020-2024 grommunio GmbH. All rights reserved. | https://grommunio.com | Data Protection | Legal notice