From 6a497d2780be6f1ad7cfb3383c307d34aeb9c463 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Fri, 11 Mar 2022 16:57:14 +0100 Subject: [PATCH] Calling it a day... --- .idea/workspace.xml | 106 -------------------------------------------- mailmsg.go | 12 +++-- 2 files changed, 9 insertions(+), 109 deletions(-) delete mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index f982bb6..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - \ No newline at end of file diff --git a/mailmsg.go b/mailmsg.go index 675f193..6bc94ed 100644 --- a/mailmsg.go +++ b/mailmsg.go @@ -197,9 +197,15 @@ func (m *Msg) SetDate() { // Header does something // FIXME: This is only here to quickly show the set headers for debugging purpose. Remove me later func (m *Msg) Header() { - fmt.Printf("Address header: %+v\n", m.addrHeader) - fmt.Printf("Generic header: %+v\n", m.genHeader) - + fmt.Println("Address header:") + for k, v := range m.addrHeader { + fmt.Printf(" - %s: %s\n", k, v) + } + fmt.Println("\nGeneric header:") + for k, v := range m.genHeader { + fmt.Printf(" - %s: %s\n", k, v) + } + fmt.Println() } // setEncoder creates a new mime.WordEncoder based on the encoding setting of the message