diff --git a/main.go b/main.go index 168147f..eb25b6b 100644 --- a/main.go +++ b/main.go @@ -7,40 +7,6 @@ import ( "os" ) -/* Full mail struct for posterity; generated from https://mholt.github.io/json-to-go/ -type AutoGenerated struct { - Data struct { - Fromfull string `json:"fromfull"` - Headers struct { - MimeVersion string `json:"mime-version"` - Date string `json:"date"` - Subject string `json:"subject"` - XSgEid string `json:"x-sg-eid"` - MessageID string `json:"message-id"` - Received string `json:"received"` - From string `json:"from"` - ContentType string `json:"content-type"` - To string `json:"to"` - DkimSignature string `json:"dkim-signature"` - } `json:"headers"` - Subject string `json:"subject"` - RequestID string `json:"requestId"` - Parts []struct { - Headers struct { - ContentTransferEncoding string `json:"content-transfer-encoding"` - ContentType string `json:"content-type"` - } `json:"headers"` - Body string `json:"body"` - } `json:"parts"` - From string `json:"from"` - Origfrom string `json:"origfrom"` - To string `json:"to"` - ID string `json:"id"` - Time int64 `json:"time"` - SecondsAgo int `json:"seconds_ago"` - } `json:"data"` -} */ - type mail struct { Data struct { Subject string `json:"subject"`