MailAccount增加自定义参数支持

This commit is contained in:
Looly 2024-08-08 13:16:37 +08:00
parent a05fb1a000
commit 74ee2c7425
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,7 @@
* 【http 】 改进ContentType.get忽略空格pr#3664@Github
* 【http 】 CompressUtil.createExtractor支持tgz自动识别pr#3674@Github
* 【poi 】 ExcelWriter.autoSizeColumn增加可选widthRatio参数可配置中文字符宽度倍数pr#3689@Github
* 【mail 】 MailAccount增加自定义参数支持issue#3687@Github
### 🐞Bug修复
* 【core 】 修复因RFC3986理解有误导致的UrlPath处理冒号转义问题issue#IAAE88@Gitee

View File

@ -156,6 +156,13 @@ public class MailAccount implements Serializable {
*/
public MailAccount(Setting setting) {
setting.toBean(this);
// since 5.8.30, custom property
setting.forEach((key, value) -> {
if (StrUtil.startWith(key, "mail.")) {
this.setCustomProperty(key, value);
}
});
}
// -------------------------------------------------------------- Constructor end