mail-lua: Document %{lua_file} and %{lua_call}#1423
Open
cmouse wants to merge 1 commit intodovecot:mainfrom
Open
mail-lua: Document %{lua_file} and %{lua_call}#1423cmouse wants to merge 1 commit intodovecot:mainfrom
cmouse wants to merge 1 commit intodovecot:mainfrom
Conversation
sirainen
requested changes
Feb 10, 2026
|
|
||
| ```[get_home.lua] | ||
| # This is not a good way to do this, provided here for example | ||
| # purposes only. Do not use this. |
Contributor
There was a problem hiding this comment.
Lua uses -- as comments, not #
| Example: | ||
| ```[dovecot.conf] | ||
| mail_plugins { | ||
| mail_lua = yes |
Contributor
There was a problem hiding this comment.
normally 2 spaces indent, not 3
| Example: | ||
| ```[dovecot.conf] | ||
| mail_plugins { | ||
| mail_lua = yes |
| ### `%{lua_call(<function>,...)}` | ||
|
|
||
| Executes Lua function in the mail lua script file, and it's successful, use the string | ||
| result. If values are provided after function name, they are passed to |
Contributor
There was a problem hiding this comment.
Executes Lua function in the [[setting,mail_lua_file]], and if it's successful, expand to the returned string value.
|
|
||
| ```[mail.lua] | ||
| # This is not a good way to do this, provided here for example | ||
| # purposes only. Do not use this. |
| | `ldap_dn` | String | String | Converts any `.` into `,dc=`. For example `domain.com` converts into `domain,dc=com`. | | ||
| | `lenumber` | Bytes | Number | Convert little-endian encoded input into a number. | | ||
| | `lfill(width, filler)` | Any | Any | Pads value from left with filler until length is width. Default filler is `0`. | | ||
| | `lfill(width, filler)` | Any | Any | Pads value from left with filler until length is width. Default filler is `0`. |i |
| | `oauth2:<name>` | Return oauth2 field "name". This is only present in [[setting,oauth2_fields]]. | | ||
|
|
||
| ## Conditionals | ||
| | `oauth2:<name>` | Return oauth2 field "name". This is only present in [[setting,oauth2_fields]]. |## Conditionals |
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.
DOV-8705