14 Commits
Author SHA1 Message Date
qwqcode 9225fc32f8 fix(email): add Message-ID header
Generate a unique RFC 5322 message identifier for every SMTP and sendmail message, using the sender domain when valid and a safe fallback otherwise.

Fixes #1111
2026-07-22 22:20:27 +08:00
qwqcode eff4a0b15d test: remove races from async tests 2026-07-22 22:20:23 +08:00
qwqcode cf7725edba refactor(go): bump the module version and support go install (#979)
BREAKING CHANGE: The original Go module name was `github.com/ArtalkJS/Artalk`, which has now been modified to `github.com/artalkjs/artalk/v2` (all lowercase). This change may affect the CI pipeline or other areas if you are compiling the Artalk server and have specified the fixed Go module name. Regarding the original `-ldflags -X github.com/ArtalkJS/Artalk/internal/config.Version` and `CommitHash` definitions, please remove them, as they are now obsolete. The `Version` has been hardcoded into the Go code, and the `CommitHash` is now read from the Go build info via runtime/debug’s vcs.revision value. This change only affects the server developers and does not impact the frontend UI client.
2024-09-18 21:43:43 +08:00
qwqcode 059bac8b5f perf(api/auth): add more specific error messages for login failures 2024-08-28 11:26:31 +08:00
qwqcode 3d5f77ab35 fix(email): sender not initialized correctly 2023-10-12 13:30:45 +08:00
qwqcode 9bed5be236 test(email): add unit test for queue 2023-09-25 20:54:22 +08:00
qwqcode e050544d21 refactor(renderer): abstract func of template renderer for multi-cases (#585)
* refactor(email_renderer): abstract function of template renderer for multi-cases

* abstract template loader

* add render test

* update docs

* chore: move pkg to template

* abstract template pkg
2023-09-20 12:10:20 +08:00
qwqcode 0cbb5b2dd1 test(core): add tests for core 2023-09-01 17:02:00 +08:00
qwqcode 1e76a4d99f refactor(email): refactor email pkg 2023-09-01 17:01:55 +08:00
qwqcode d411763118 fix(email): failback to email.mail_tpl if admin_notify.email.mail_tpl is empty
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-02-05 23:24:27 +08:00
qwqcode 151b52fb37 fix(email): email queue initialization issue (#374)
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-02-04 13:17:22 +08:00
qwqcode 1ca892fc2d feat(i18n): translations for backend (#344)
* i18n: add i18n for server pacakge

Signed-off-by: qwqcode <qwqcode@gmail.com>

* i18n: add i18n for cmd pacakge

Signed-off-by: qwqcode <qwqcode@gmail.com>

* feat: add mustache syntax support for i18n.T in backend

Signed-off-by: qwqcode <qwqcode@gmail.com>

* i18n: improve i18n for backend further

Signed-off-by: qwqcode <qwqcode@gmail.com>

* i18n: `zh-CN` translation for backend

Signed-off-by: qwqcode <qwqcode@gmail.com>

Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-01-19 20:17:32 +08:00
pluveto 697ed7282a refactor: batch removing artalk -go postfix 2023-01-17 05:37:45 +00:00
pluveto 4f046f8d0e refactor: move from tmp dir to root 2023-01-16 21:34:24 +08:00