aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/email/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/email/parser.go')
-rw-r--r--pkg/email/parser.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/email/parser.go b/pkg/email/parser.go
index 796f0f7c2..6974f66d5 100644
--- a/pkg/email/parser.go
+++ b/pkg/email/parser.go
@@ -131,13 +131,13 @@ func Parse(r io.Reader, ownEmails []string, goodLists []string) (*Email, error)
patch, cmdStr, cmdArgs := "", "", ""
if !fromMe {
for _, a := range attachments {
- _, patch, _ = ParsePatch(string(a))
+ patch = ParsePatch(a)
if patch != "" {
break
}
}
if patch == "" {
- _, patch, _ = ParsePatch(bodyStr)
+ patch = ParsePatch(body)
}
cmd, cmdStr, cmdArgs = extractCommand(subject + "\n" + bodyStr)
}