From d608b5651b02528715058d24fc23eb658cfc2285 Mon Sep 17 00:00:00 2001 From: "Dolf Schimmel (Freeaqingme)" Date: Sat, 19 Sep 2015 21:26:01 +0200 Subject: [PATCH] Revert "Attempt to fix some empty lines from spamd" This reverts commit 0a272d09dbaf05f51135cdac6d7eed7dd266abdc. --- client.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client.go b/client.go index d754234..bfc2d9e 100644 --- a/client.go +++ b/client.go @@ -316,9 +316,7 @@ func processResponse(cmd string, data *bufio.Reader) (returnObj *SpamDOut, err e r := regexp.MustCompile(`(?i)SPAMD\/([0-9\.]+)\s([0-9]+)\s([0-9A-Z_]+)`) var result = r.FindStringSubmatch(lineStr) if len(result) < 4 { - // We're not actually sure what a line of zero length represents. However, - // we're now testing if it helps to ignore these zero-length lines. - if cmd != "SKIP" && len(result) > 0 { + if cmd != "SKIP" { err = errors.New("spamd unrecognized reply:" + lineStr) } else { returnObj.Code = EX_OK