1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 01:57:02 +00:00

Added "To:" header

This commit is contained in:
Tomasz Wojtuń
2016-09-01 15:01:34 +02:00
committed by James Hillyerd
parent 1856deae46
commit 124f830478
6 changed files with 23 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ type JSONMessageHeader struct {
Mailbox string
ID string `json:"Id"`
From string
To string
Subject string
Date time.Time
Size int64
@@ -29,6 +30,7 @@ type JSONMessage struct {
Mailbox string
ID string `json:"Id"`
From string
To string
Subject string
Date time.Time
Size int64
@@ -113,6 +115,7 @@ func MailboxList(w http.ResponseWriter, req *http.Request, ctx *httpd.Context) (
Mailbox: name,
ID: msg.ID(),
From: msg.From(),
To: msg.To(),
Subject: msg.Subject(),
Date: msg.Date(),
Size: msg.Size(),