fix: address mail state review comments

This commit is contained in:
dreamhunter2333
2026-08-26 00:12:43 +08:00
parent 04138ebcdb
commit c6196b58de
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
### Testing
- test: |E2E| 覆盖新邮件默认未读、地址隔离、标记已读及非法状态操作校验
- fix: |E2E| 覆盖新邮件默认未读、地址隔离、标记已读及非法状态操作校验
- test: |E2E| 覆盖 D1 数据库大小响应、配置键隔离,以及数据库页面套餐选择的持久化与刷新恢复
- fix: |E2E| 覆盖发信页面草稿编辑、正文格式切换及 HTML 预览
- fix: |E2E| 覆盖用户 JWT 发信接口的地址归属、额度扣减、实际投递和发件箱操作,以及用户中心查看地址凭证、切换发件地址和按地址过滤发件箱的完整流程
+1 -1
View File
@@ -26,7 +26,7 @@
### Testing
- test: |E2E| Cover unread state on new mail, mailbox isolation, marking mail read, and invalid status-operation validation
- fix: |E2E| Cover unread state on new mail, mailbox isolation, marking mail read, and invalid status-operation validation
- test: |E2E| Cover the D1 database-size response, config-key isolation, and persistence of the database-page plan selection across reloads
- fix: |E2E| Cover draft editing, content-format switching, and HTML preview in the send-mail composer
- fix: |E2E| Cover address ownership, balance decrement, delivery, and sent-item operations through the User JWT API, plus user-center credential display, sender switching, and sent-item filtering by address
+1 -1
View File
@@ -157,7 +157,7 @@ const openMail = async (mail) => {
const markCurrentPageRead = async () => {
if (!await markMailsRead(rawData.value)) return
message.success(t("success"))
if (mailStateFilter.value === getReadStateValue(true)) await refresh()
if (mailStateFilter.value === getReadStateValue(true)) await backFirstPageAndRefresh()
}
const canGoPrevMail = computed(() => {
@@ -10,7 +10,7 @@ offset = 0
res = requests.get(
f"https://<your-worker-address>/api/mails?limit={limit}&offset={offset}",
headers={
"Authorization": f"Bearer {your-JWT-password}",
"Authorization": "Bearer <your-JWT-password>",
# "x-custom-auth": "<your-website-password>", # If private site password is enabled
"Content-Type": "application/json"
}
@@ -30,7 +30,7 @@ Use `PATCH /api/mails/state` to move the state of up to 100 mail IDs:
```python
requests.patch(
"https://<your-worker-address>/api/mails/state",
headers={"Authorization": f"Bearer {your-JWT-password}"},
headers={"Authorization": "Bearer <your-JWT-password>"},
json={"ids": [1, 2], "state": "read"}
)
```
@@ -10,7 +10,7 @@ offset = 0
res = requests.get(
f"https://<你的worker地址>/api/mails?limit={limit}&offset={offset}",
headers={
"Authorization": f"Bearer {你的JWT密码}",
"Authorization": "Bearer <你的JWT密码>",
# "x-custom-auth": "<你的网站密码>", # 如果启用了私有站点密码
"Content-Type": "application/json"
}
@@ -30,7 +30,7 @@ res = requests.get(
```python
requests.patch(
"https://<你的worker地址>/api/mails/state",
headers={"Authorization": f"Bearer {你的JWT密码}"},
headers={"Authorization": "Bearer <你的JWT密码>"},
json={"ids": [1, 2], "state": "read"}
)
```