{#if receivedChain && receivedChain.length > 0}
Email Path (Received Chain)
{#each receivedChain as hop, i}
{receivedChain.length - i} {hop.reverse || '-'} ({hop.ip}) → {hop.by || 'Unknown'}
{hop.timestamp ? new Intl.DateTimeFormat('default', { dateStyle: 'long', 'timeStyle': 'short' }).format(new Date(hop.timestamp)) : '-'}
{#if hop.with || hop.id}

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

{/if}
{/each}
{/if}