mirror of
https://github.com/1f349/mail.1f349.com.git
synced 2024-11-13 23:21:40 +00:00
Print messages in folder
This commit is contained in:
parent
1be9ad77b5
commit
6fbb790fcd
@ -1,17 +1,24 @@
|
||||
<script lang="ts">
|
||||
import type {MailFolder} from "../logic/folder";
|
||||
import type {ImapMessage} from "../types/imap";
|
||||
import type {FolderSelection} from "../types/internal";
|
||||
|
||||
export let folder: FolderSelection;
|
||||
export let folder: MailFolder;
|
||||
export let messages: ImapMessage[];
|
||||
</script>
|
||||
|
||||
<code>
|
||||
<pre>{JSON.stringify(folder, null, 2)}</pre>
|
||||
</code>
|
||||
<code>
|
||||
<pre>{JSON.stringify(messages, null, 2)}</pre>
|
||||
</code>
|
||||
<h2>{folder.name}</h2>
|
||||
{#if messages}
|
||||
{#each messages as msg}
|
||||
<div class="msg">
|
||||
<h3>{msg.Envelope.Subject}</h3>
|
||||
<h3>{msg.Envelope.From}</h3>
|
||||
<h3>{msg.Envelope.Date}</h3>
|
||||
</div>
|
||||
{/each}
|
||||
{/if}
|
||||
|
||||
<style lang="scss">
|
||||
.msg {
|
||||
border-bottom: 1px solid white;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user