Kamen Mazdrashki
dc8b73b12b
oc/MailFolder: Add more logging so we can trace invalid message kyes
2014-11-19 17:12:28 +01:00
Kamen Mazdrashki
18acdf20a6
oc: Make sure we always use NSString keys in 'messages' dictionary
...
Different types for keys in Dictionaries leads to not finding
expected entry - we should make sure that everythime we set/get
entry from a dictionary, key object type is same
2014-11-19 17:12:27 +01:00
Kamen Mazdrashki
0a23f18fc9
oc: Set log level to 0 in samba-get-config script - it is very chatty during builds
...
This script is very "chatty" when "log level" is set to a high number
(usual scenario on developer machine)
2014-11-19 17:12:27 +01:00
Kamen Mazdrashki
b8366d796d
oc/util: Tune dbmsgreader for new caching classes names
2014-11-19 17:12:27 +01:00
Kamen Mazdrashki
2b3bc10f78
Scripts/openchange_user_cleanup: Don't hardcode samba private dir, use samba LoadParm()
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-29 18:26:30 +02:00
Kamen Mazdrashki
1846e1ee5d
oc/TallocWrapper: don't handle Threading initialization here
...
It is SOGo backend module responsibility to setup/teardonw all
ObjC specific initialization
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 15:20:51 +02:00
Kamen Mazdrashki
1fc3a57210
oc: Protect backend initialization to happen only once
2014-07-02 15:20:31 +02:00
Kamen Mazdrashki
5b75c817e2
oc: Log when mapistore backend is successfully initialized
2014-07-02 15:20:19 +02:00
Kamen Mazdrashki
c91741ad1f
oc/dbmsgreader: Fix to work again this time basen on BSON format for msg data
...
Also, implement reading for message data in case only 1 param is passed.
This could be usefull when have msg data by other means than by
reading it directly from DB
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 15:19:59 +02:00
Kamen Mazdrashki
86e54989fb
oc/utils: Make "plext" category publicly visible
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 15:19:47 +02:00
Kamen Mazdrashki
116e738e63
oc/utils: Move OCDumpPListData() function into plreader - this is the only user for this function
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 15:19:31 +02:00
Kamen Mazdrashki
bf0f2a76d5
oc/MAPIStoreSOGo: Do not destroy current thread context after any API call
...
We have thread context already in place during *_init() function.
Thus guarding every API call with TreadInit/Destroy is:
- a bit redundand
- makes SOGo backend not reentrant even on single thread and leads
to hard to find use-after-free crashes
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 15:19:19 +02:00
Kamen Mazdrashki
6de298d202
oc/MAPIStoreMapping: Split the check for existing entry so we have better error message
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 15:18:49 +02:00
Kamen Mazdrashki
98505c1b6b
oc/MAPIStoreContext: Fix log messages to actually print 64bit FMIDs
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
Conflicts:
OpenChange/MAPIStoreContext.m
2014-07-02 15:18:33 +02:00
Kamen Mazdrashki
2792baac02
openchange: don't overflow possible recipient type while creating message headers
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:58:57 +02:00
Kamen Mazdrashki
4b383705ff
openchange: Fix submitWithFlags to submit to BCC-ed recipients also
...
this reintroduces commit 7efb263c659451d2c781547a5b38cb5d01ed837f
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:58:47 +02:00
Kamen Mazdrashki
dd7200e00f
openchange/MAPIStoreFolder: Add private selector for actual folder delete action
...
Usually, it is a bad idea for an object to call its own public methods
(just like in this case). Thus separating impelementation for deleteFolder:
would allow MAPIStoreFolder to call only private implementation when needed
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:58:33 +02:00
Kamen Mazdrashki
27851ef428
openchange: FillMessageHeadersFromProperties fix skipping of last value in
...
possible range of recepients
IMHO, this fixes a bug, that when saving a meessage, it is saved
without BCC fields.
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:58:16 +02:00
Kamen Mazdrashki
7da8885190
openchange: getMessageData - replace int literals with ulRecipClass values
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:58:06 +02:00
Kamen Mazdrashki
fc9dc08045
oc-sogo: pretty print Exceptions in sogo_backend_handle_objc_exception()
...
Now we have a nice stack trace printed out from [NSException callStackSymbols]
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:53:34 +02:00
Kamen Mazdrashki
bcfb674cd1
oc-sogo: Print both [NSException callStackSymbols] and execinfo.h stack trace
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:53:24 +02:00
Kamen Mazdrashki
6be768af42
oc-sogo: Move memory clean up *after* handling the exception
...
Otherwise the mess is full :)
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:53:10 +02:00
Kamen Mazdrashki
2c94d21f3e
oc-sogo: Use [e name] and [e reason] selectors
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:52:59 +02:00
Kamen Mazdrashki
cbe616358d
oc-sogo: Clean up AutoRelease pool and unregister threads in Catch handler
...
Most of the time we have "not yet implemented" kind of exceptions,
so it is better to clean up allocated resources
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:52:34 +02:00
Kamen Mazdrashki
09e6fcc3ff
oc-sogo: try/catch to guard only the actual impelementation rather than *everything*
...
Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com >
2014-07-02 14:52:20 +02:00