aboutsummaryrefslogtreecommitdiff
path: root/public/mailbox.html
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-16 12:51:42 +0100
committerSimon Ser <contact@emersion.fr>2019-12-16 12:52:44 +0100
commitd897eeee5c4d163891d0b6a8f85d328ccada7575 (patch)
tree39d2428b8f9cb677d79e66cb3763cdaed6147616 /public/mailbox.html
parente83844fbad63a0d6fc2d29a8a412c95f2a419b56 (diff)
downloadalps-d897eeee5c4d163891d0b6a8f85d328ccada7575.tar.gz
alps-d897eeee5c4d163891d0b6a8f85d328ccada7575.zip
Introduce base plugin
This plugin offers base IMAP/SMTP functionality. References: https://todo.sr.ht/~sircmpwn/koushin/39
Diffstat (limited to 'public/mailbox.html')
-rw-r--r--public/mailbox.html45
1 files changed, 0 insertions, 45 deletions
diff --git a/public/mailbox.html b/public/mailbox.html
deleted file mode 100644
index ddd1260..0000000
--- a/public/mailbox.html
+++ /dev/null
@@ -1,45 +0,0 @@
-{{template "head.html"}}
-
-<h1>koushin</h1>
-
-<p>
- <a href="/logout">Logout</a> · <a href="/compose">Compose</a>
-</p>
-
-<h2>{{.Mailbox.Name}}</h2>
-
-<p>Mailboxes:</p>
-<ul>
- {{range .Mailboxes}}
- <li><a href="/mailbox/{{.Name | pathescape}}">{{.Name}}</a></li>
- {{end}}
-</ul>
-
-{{if .Messages}}
- <p>Messages:</p>
- <ul>
- {{range .Messages}}
- <li><a href="/message/{{$.Mailbox.Name | pathescape}}/{{.Uid}}?part={{.TextPartName}}">
- {{if .Envelope.Subject}}
- {{.Envelope.Subject}}
- {{else}}
- (No subject)
- {{end}}
- </a></li>
- {{end}}
- </ul>
-
- <p>
- {{if ge .PrevPage 0}}
- <a href="?page={{.PrevPage}}">Prev</a>
- {{end}}
- {{if and (ge .PrevPage 0) (ge .NextPage 0)}}·{{end}}
- {{if ge .NextPage 0}}
- <a href="?page={{.NextPage}}">Next</a>
- {{end}}
- </p>
-{{else}}
- <p>Mailbox is empty.</p>
-{{end}}
-
-{{template "foot.html"}}