Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 能否支持给多个用户发邮件告警 #297

Closed
4 tasks done
fuleru opened this issue Mar 1, 2024 · 4 comments · Fixed by #304
Closed
4 tasks done

[Bug] 能否支持给多个用户发邮件告警 #297

fuleru opened this issue Mar 1, 2024 · 4 comments · Fixed by #304
Labels
bug Something isn't working

Comments

@fuleru
Copy link

fuleru commented Mar 1, 2024

Checklist

  • 我已经将版本更新到最新 Release 版
  • 我已经详细阅读文档, 仍然无法解决
  • 我已经搜索已有的 Issues | Discussions, 仍然无法解决
  • 我已经尝试过 Google 搜索仍然无法解决

💻 系统环境

Ubuntu

🐛 问题描述

to = "[email protected] [email protected]"

./stat_server -c config.toml --notify-test

然后直接core dump了

send test message to email
thread 'main' panicked at 'called Result::unwrap() on an Err value: InvalidUser', server/src/notifier/email.rs:53:40
stack backtrace:
0: 0x7fe003cbe630 -
1: 0x7fe003a7388e -
2: 0x7fe003c9c514 -
3: 0x7fe003cbfb8f -
4: 0x7fe003cbf78f -
5: 0x7fe003cc07f9 -
6: 0x7fe003cc02d4 -
7: 0x7fe003cc0236 -
8: 0x7fe003cc0221 -
9: 0x7fe003945b72 -
10: 0x7fe003945ef2 -
11: 0x7fe00398746a -
12: 0x7fe0039e9185 -
13: 0x7fe0039f363f -
14: 0x7fe003a19974 -
15: 0x7fe003a0cbb6 -
16: 0x7fe0039769a6 -
17: 0x7fe0039774c1 -
18: 0x7fe003a1e1f8 -
Aborted (core dumped)

🚦 期望结果

能支持给多个邮件地址告警

📷 复现步骤

No response

📝 补充信息

No response

@fuleru fuleru added the bug Something isn't working label Mar 1, 2024
@zdz
Copy link
Owner

zdz commented Mar 1, 2024

多个邮箱之间是英文逗号分隔
https://www.rfc-editor.org/rfc/rfc5322#section-3.6.3

@fuleru
Copy link
Author

fuleru commented Mar 1, 2024

使用的是英文逗号分隔,也是失败了。

send test message to email
thread 'main' panicked at 'called Result::unwrap() on an Err value: InvalidUser', server/src/notifier/email.rs:53:40
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Aborted (core dumped)

@zdz
Copy link
Owner

zdz commented Mar 1, 2024

只能下一个版本了

@fuleru
Copy link
Author

fuleru commented Mar 2, 2024

好的,感谢!

@zdz zdz linked a pull request Mar 18, 2024 that will close this issue
@zdz zdz closed this as completed in #304 Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants