no mailbox is generated if spaces in given name

Jan Kowalsky jankow at datenkollektiv.net
Fri Oct 28 23:30:07 CEST 2016


I investigated further ...

Am 28.10.2016 um 22:58 schrieb Jan Kowalsky:
> Hi all,
> 
> I just discovered that in a fresh kolab 3.4 installation (debian jessie)
> there is a problem if a new user entry holds any spaces in given name.
> 
> This happens only if the daemon_rcpt_policy is not set to false in
> kolab.conf (Mostly I set this to false - because the recipient policy
> enforcement led to problems for me.)
> 
> In pykolab.log I can see:
> 
> pykolab.imap ERROR Could not rename INBOX folder
> user/vorname.nachname at example.org to user/vor name.nachname at example.org
> 
> This is not the case if the surname contains spaces.

the reason seems to be in

  pyshared/pykolab/utils.py

while there is a replacement of spaces for surname it's not for given name.

This lines fix the problem:

--- utils.py.orig	2016-10-28 23:20:09.731683223 +0200
+++ utils.py	2016-10-28 23:20:43.271849542 +0200
@@ -353,6 +353,9 @@
         if result.has_key('objectsid') and not result['objectsid'][0]
== "S":
             result['objectsid'] = sid_to_string(result['objectsid'])

+        if result.has_key('givenname'):
+            result['givenname'] = result['givenname'].replace(' ', '')
+
         if result.has_key('sn'):
             result['surname'] = result['sn'].replace(' ', '')

As far as I see it's not fixed yet in
  https://git.kolab.org/diffusion/P/browse/master/pykolab/utils.py

Nobody else got problems because of this?

Best Regards
Jan


More information about the users mailing list