{#if receivedChain && receivedChain.length > 0}

Email Path

{#each receivedChain as hop, i}
{receivedChain.length - i} {hop.reverse || "-"} {#if hop.ip}({hop.ip}){/if} → {hop.by || "Unknown"}
{hop.timestamp ? new Intl.DateTimeFormat("default", { dateStyle: "long", timeStyle: "short", }).format(new Date(hop.timestamp)) : "-"}
{#if hop.with || hop.id || hop.from}

{#if hop.with} Protocol: {hop.with} {/if} {#if hop.id} ID: {hop.id} {/if} {#if hop.from} Helo: {hop.from} {/if}

{/if}

{#if hop.tls} TLS {#if hop.tls.version} Version: {hop.tls.version} {/if} {#if hop.tls.cipher} Cipher: {hop.tls.cipher} {/if} {#if hop.tls.bits} Strength: {hop.tls.bits} bits {/if} {#if hop.tls.verified !== undefined} {hop.tls.verified ? "Certificate trusted" : "Certificate not trusted"} {/if} {:else if protocolIndicatesTLS(hop.with)} TLS {:else if hop.with} No TLS {:else} TLS unknown {/if} {#if protocolIndicatesAuth(hop.with)} Authenticated {/if}

{/each}
{/if}