aboutsummaryrefslogtreecommitdiffstats
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/server.go b/server.go
index 93da487..021ecff 100644
--- a/server.go
+++ b/server.go
@@ -203,10 +203,11 @@ func handleGetPart(ctx *context, raw bool) error {
}
return ctx.Render(http.StatusOK, "message.html", map[string]interface{}{
- "Mailbox": mbox,
- "Message": msg,
- "Body": body,
- "PartPath": partPathString,
+ "Mailbox": mbox,
+ "Message": msg,
+ "Body": body,
+ "PartPath": partPathString,
+ "MailboxPage": (mbox.Messages - msg.SeqNum) / messagesPerPage,
})
}