mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
MailAccount增加自定义参数支持
This commit is contained in:
parent
a05fb1a000
commit
74ee2c7425
@ -17,6 +17,7 @@
|
|||||||
* 【http 】 改进ContentType.get忽略空格(pr#3664@Github)
|
* 【http 】 改进ContentType.get忽略空格(pr#3664@Github)
|
||||||
* 【http 】 CompressUtil.createExtractor支持tgz自动识别(pr#3674@Github)
|
* 【http 】 CompressUtil.createExtractor支持tgz自动识别(pr#3674@Github)
|
||||||
* 【poi 】 ExcelWriter.autoSizeColumn增加可选widthRatio参数,可配置中文字符宽度倍数(pr#3689@Github)
|
* 【poi 】 ExcelWriter.autoSizeColumn增加可选widthRatio参数,可配置中文字符宽度倍数(pr#3689@Github)
|
||||||
|
* 【mail 】 MailAccount增加自定义参数支持(issue#3687@Github)
|
||||||
|
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复因RFC3986理解有误导致的UrlPath处理冒号转义问题(issue#IAAE88@Gitee)
|
* 【core 】 修复因RFC3986理解有误导致的UrlPath处理冒号转义问题(issue#IAAE88@Gitee)
|
||||||
|
@ -156,6 +156,13 @@ public class MailAccount implements Serializable {
|
|||||||
*/
|
*/
|
||||||
public MailAccount(Setting setting) {
|
public MailAccount(Setting setting) {
|
||||||
setting.toBean(this);
|
setting.toBean(this);
|
||||||
|
|
||||||
|
// since 5.8.30, custom property
|
||||||
|
setting.forEach((key, value) -> {
|
||||||
|
if (StrUtil.startWith(key, "mail.")) {
|
||||||
|
this.setCustomProperty(key, value);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------- Constructor end
|
// -------------------------------------------------------------- Constructor end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user