Page MenuHomePhorge

IMAP_WITH_GROUPWARE_DEFAULT_FOLDERS
ClosedPublic

Authored by mollekopf on Jan 4 2024, 9:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 24, 9:09 PM
Unknown Object (File)
Fri, Sep 13, 8:29 AM
Unknown Object (File)
Wed, Sep 11, 6:39 AM
Unknown Object (File)
Sep 1 2024, 1:45 PM
Unknown Object (File)
Aug 29 2024, 6:10 AM
Unknown Object (File)
Aug 20 2024, 5:00 AM
Unknown Object (File)
Aug 17 2024, 9:05 PM
Unknown Object (File)
Aug 12 2024, 8:41 AM
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.