From 2b7e6b70db5449b31c24d4c70d102aa1081b5f52 Mon Sep 17 00:00:00 2001 From: Tino Hager Date: Fri, 19 Jul 2024 13:22:40 +0200 Subject: [PATCH] optimize mail flow --- src/Frontend/src/components/MailFlow.vue | 24 +++-- src/Frontend/src/components/MailFlowTable.vue | 90 +++++++++++++++++++ src/Frontend/src/pages/IndexPage.vue | 9 +- 3 files changed, 115 insertions(+), 8 deletions(-) create mode 100644 src/Frontend/src/components/MailFlowTable.vue diff --git a/src/Frontend/src/components/MailFlow.vue b/src/Frontend/src/components/MailFlow.vue index 4e7cae1..867c3c2 100644 --- a/src/Frontend/src/components/MailFlow.vue +++ b/src/Frontend/src/components/MailFlow.vue @@ -1,22 +1,32 @@ + + diff --git a/src/Frontend/src/pages/IndexPage.vue b/src/Frontend/src/pages/IndexPage.vue index 7369e41..620a483 100644 --- a/src/Frontend/src/pages/IndexPage.vue +++ b/src/Frontend/src/pages/IndexPage.vue @@ -7,6 +7,7 @@ import { ReceivedHeaderParts } from 'src/models/ReceivedHeaderParts' import { mailHelper } from 'src/helpers/mailHelper' import MailFlow from 'src/components/MailFlow.vue' +import MailFlowTable from 'src/components/MailFlowTable.vue' const MailHeaders = { From: 'From', @@ -53,7 +54,12 @@ const mailHeaderParts = computed(() => { return undefined } - return mailHelper.splitMailHeader(mailHeader.value) + try { + return mailHelper.splitMailHeader(mailHeader.value) + } catch (error) { + console.error(error) + return undefined + } }) const returnPathHeaders = computed(() => { @@ -375,6 +381,7 @@ const otherHeaders = computed(() => { class="q-mt-sm" > +