From f3158b36f1f210ff54febbe82b571c1379b30c98 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 3 Mar 2020 16:20:07 -0500 Subject: Initial support for PGP decryption & signatures --- worker/lib/parse.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'worker') diff --git a/worker/lib/parse.go b/worker/lib/parse.go index fd744a7..ac20ac8 100644 --- a/worker/lib/parse.go +++ b/worker/lib/parse.go @@ -57,7 +57,7 @@ func splitMIME(m string) (string, string) { return parts[0], parts[1] } -func parseEntityStructure(e *message.Entity) (*models.BodyStructure, error) { +func ParseEntityStructure(e *message.Entity) (*models.BodyStructure, error) { var body models.BodyStructure contentType, ctParams, err := e.Header.ContentType() if err != nil { @@ -86,7 +86,7 @@ func parseEntityStructure(e *message.Entity) (*models.BodyStructure, error) { } else if err != nil { return nil, err } - ps, err := parseEntityStructure(part) + ps, err := ParseEntityStructure(part) if err != nil { return nil, fmt.Errorf("could not parse child entity structure: %v", err) } @@ -189,7 +189,7 @@ func MessageInfo(raw RawMessage) (*models.MessageInfo, error) { if err != nil { return nil, fmt.Errorf("could not read message: %v", err) } - bs, err := parseEntityStructure(msg) + bs, err := ParseEntityStructure(msg) if err != nil { return nil, fmt.Errorf("could not get structure: %v", err) } -- cgit 1.4.1-2-gfad0