Page MenuHomePhorge

In some cases kolabd fails to cleanly update IMAP mailbox after LDAP changes. That is usual when result_attribute value is in upper case. Mailbox modification seems to follow slightly different code path, by shortcutting to IMAP pykolab function...
ClosedPublic

Authored by adomaitis on Mar 12 2018, 1:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 11:21 AM
Unknown Object (File)
Tue, Apr 16, 9:19 AM
Unknown Object (File)
Tue, Apr 16, 9:09 AM
Unknown Object (File)
Tue, Apr 16, 9:03 AM
Unknown Object (File)
Tue, Apr 16, 8:08 AM
Unknown Object (File)
Mon, Apr 15, 11:46 AM
Unknown Object (File)
Sun, Apr 14, 9:44 AM
Unknown Object (File)
Sun, Apr 14, 5:36 AM

Details

Summary

..."has_folder()" instead of going via "user_mailbox_exists()", which has a code to downcase mailbox name.

Do not shortcut to "has_folder()" function, use "user_mailbox_exists()" to downcase mailbox name before checking if it exists.

Test Plan

none

Diff Detail

Repository
rP pykolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks to me like now you'll add user/ prefix twice. See in user_mailbox_extsts() and code above your change.

  • To avoid double user/ prefix, check if user_mailbox_exists only by result_attribute
This revision is now accepted and ready to land.Mar 12 2018, 2:54 PM
This revision was automatically updated to reflect the committed changes.