From 74c590d727a972fa051d6cd15cbbc2ffe4451e8a Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Fri, 19 Jun 2020 18:46:36 +0200 Subject: Don't abort when parsing the body fails Signed-off-by: Max Magorsch --- pkg/importer/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/importer/utils.go b/pkg/importer/utils.go index 1af34ed..2fe73e8 100644 --- a/pkg/importer/utils.go +++ b/pkg/importer/utils.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "io/ioutil" - "log" "mime/multipart" "net/mail" "os" @@ -75,7 +74,8 @@ func getBodyParts(body io.Reader, boundary string) map[string]string { } slurp, err := ioutil.ReadAll(p) if err != nil { - log.Fatal(err) + fmt.Println("Error while reading the body:") + fmt.Println(err) } bodyParts[p.Header.Get("Content-Type")] = string(slurp) } -- cgit v1.2.3-65-gdbad