修复按收件用户拦截黑名单邮件并补齐历史邮件警示
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-25 01:44:44 +08:00
1 parent ed7b960921
commit 6254217972
10 files changed
+136 -10

No files matched your search

@@ -23,6 +23,14 @@
</div>
</div>
<div v-else class="mail-detail-content">
<el-alert
v-if="detailData.is_blacklisted"
title="该发件人已在你的黑名单中"
description="这是已保存的历史邮件。黑名单会拦截后续新邮件,不会自动删除历史邮件。请谨慎查看内容与附件。"
type="error"
:closable="false"
show-icon
/>
<h1 class="mail-subject">{{ detailData.subject }}</h1>
<div class="mail-meta-card">
+5
View File
@@ -72,12 +72,17 @@
<!-- 高辨识度安全与发送状态标签 -->
<div class="mail-status-tags" v-if="scope.row.dangerous || isOutbox">
<el-tag v-if="scope.row.is_blacklisted" type="danger" effect="dark" size="small">
黑名单发件人
</el-tag>
<template v-else>
<el-tooltip content="点击将该发件人添加至信任白名单,后续免除风险提示" placement="top" v-if="scope.row.dangerous">
<el-tag type="danger" effect="dark" size="small" class="clickable-tag" @click.stop="trustSender(scope.row.sender.EmailAddress)">
<el-icon><Warning /></el-icon> 疑似不安全 (点击信任)
</el-tag>
</el-tooltip>
</template>
<template v-if="isOutbox">
<el-tag type="warning" effect="light" size="small" v-if="scope.row.status === 6">
待投递
@@ -1,5 +1,12 @@
<template>
<div class="settings-card sender-filter-card" v-loading="loading">
<el-alert
title="黑名单仅对当前账号生效"
description="命中黑名单的新邮件不会进入你的邮箱,也不会触发你的收信规则;不影响其他收件人。历史邮件保留并显示警告,白名单不会绕过协议校验。"
type="info"
:closable="false"
show-icon
/>
<div class="settings-header sf-header">
<div class="header-main">
<h3>发件人黑白名单</h3>
@@ -179,4 +186,4 @@ const {
handleDelete,
formatDate,
} = useSenderFilters()
</script>
</script>