Page MenuHomePhorge

IMAP_WITH_GROUPWARE_DEFAULT_FOLDERS
ClosedPublic

Authored by mollekopf on Jan 4 2024, 9:31 AM.
Tags
None
Referenced Files
F12009678: D4628.diff
Sat, May 4, 10:33 PM
Unknown Object (File)
Thu, May 2, 9:19 PM
Unknown Object (File)
Sun, Apr 28, 11:42 AM
Unknown Object (File)
Sun, Apr 28, 5:34 AM
Unknown Object (File)
Wed, Apr 17, 11:11 AM
Unknown Object (File)
Wed, Apr 17, 11:11 AM
Unknown Object (File)
Wed, Apr 17, 11:11 AM
Unknown Object (File)
Tue, Apr 16, 8:44 PM
Subscribers

Details

Reviewers
machniak
Group Reviewers
Restricted Project
Commits
rKd62a59539705: IMAP_WITH_GROUPWARE_DEFAULT_FOLDERS
Summary

So we don't have to override the imap config file in the deployment
config.

Diff Detail

Repository
rK kolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mollekopf created this revision.
mollekopf added a reviewer: Restricted Project.Jan 4 2024, 9:32 AM

This prevents that we have to replace the config/imap.php file, which works but is slightly annoying because we constantly have a modification in the git repo.

machniak added inline comments.
src/config/imap.php
3

What is the reason for a function and this existence check?

src/config/imap.php
3

The reason for the function is because IMO this is a pretty clean way to include that if/else branch in the array. It could be done by assigning to a variable, do the modification, return the variable instead.
The reason for the existence check is because I'm getting "function was declared before" errors otherwise at least during test execution. I did not investigate why exactly, but it wasn't immediately obvious from the backtrace to me (possible first it's included globally, and then loaded again during test execution or so).

This revision is now accepted and ready to land.Jan 7 2024, 8:33 AM
This revision was automatically updated to reflect the committed changes.