misc: report the out-of-office subject prefix - #92
Open
r4nc0r wants to merge 1 commit into
Open
Conversation
Out-of-office replies carry the subject stored alongside the OOF message. Clients configuring OOF over EWS cannot store one, because SetUserOofSettings has no field for it, so gromox falls back to gromox.cfg:autoreply_subject_prefix plus the subject of the incoming message. A client that offers an out-of-office form has no way to tell the user what an empty subject will actually send. Expose the directive so it can. The directive is read on each request rather than cached at startup: it is wanted rarely, and an admin editing gromox.cfg should not have to restart the API. An unset directive is reported as configured=false rather than guessed at, because the default that then applies is compiled into the running gromox build and is not readable from here.
StefanAkie
reviewed
Sep 7, 2026
|
|
||
|
|
||
| @API.route(api.BaseRoute+"/oofSubjectPrefix", methods=["GET"]) | ||
| @secure(requireAuth=False) |
Member
There was a problem hiding this comment.
This would allow anyone to read any OOF message across the server, which might include sensitive information, violating Austria's DSGVO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Out-of-office replies carry the subject stored alongside the OOF message. Clients configuring OOF over EWS cannot store one, because SetUserOofSettings has no field for it, so gromox falls back to gromox.cfg:autoreply_subject_prefix plus the subject of the incoming message.
A client that offers an out-of-office form has no way to tell the user what an empty subject will actually send. Expose the directive so it can.
The directive is read on each request rather than cached at startup: it is wanted rarely, and an admin editing gromox.cfg should not have to restart the API. An unset directive is reported as configured=false rather than guessed at, because the default that then applies is compiled into the running gromox build and is not readable from here.