This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Fix broken entryids in a folder | |
BEFORE YOU RUN THIS SCRIPT: BACKUP YOUR KOPANO DATABASE WITH mysqldump OR SIMILAR | |
NOW YOU HAVE BEEN WARNED. THIS SCRIPT COMES WITH NO WARRANTY WHAT SO EVER. | |
Step 1: BACKUP DATABASE! It is recommended you shutdown kopano-server while running | |
this. | |
Step 2: Change the USER, PASSWORD, HOST, and DB variables below | |
Step 3: Find the store guid and hierarchy id of the folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of mapi synchronization | |
// State will be saved to test.dat (you need to create it in advance), | |
// first run: full sync (ImportMessageChange) will be called for all messages | |
// next run: state is read and only differences (i.e. message change, deletion, flag change) | |
// will be fetched and the appropriate methods in the class will be called. | |
#include <kopano/stringutil.h> | |
#include "platform.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example use of kopano MAPI | |
#include "platform.h" | |
#include <iostream> | |
#include <mapi.h> | |
#include <mapiutil.h> | |
#include <kopano/Util.h> | |
#include <kopano/ECLogger.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; .emacs | |
;; ========================================================================= | |
;; | |
;; Bo Simonsen - modified version of Malthe Borch's .emacs file | |
;; https://gist.github.com/malthe/1900182 | |
;; | |
;; Add own packages to load path | |
(let* ((my-lisp-dir "~/.emacs.d/site-lisp") | |
(default-directory my-lisp-dir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acl purge { | |
"localhost"; | |
} | |
director plone_director round-robin { | |
{ | |
.backend = { | |
.host = "127.0.0.1"; | |
.port = "50020"; | |
.probe = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def recurse(element): | |
elements = [] | |
for item in element.objectValues(): | |
d = {'uid' : item.UID(), | |
'title' : item.title, | |
'children' : []} | |
if hasattr(item, 'objectValues'): | |
d['children'] = recurse(item) | |
elements.append(d) | |
return elements |