diff --git a/clamd.go b/clamd.go index 5199f63..8938d2d 100644 --- a/clamd.go +++ b/clamd.go @@ -36,6 +36,7 @@ import ( const ( RES_OK = "OK" RES_FOUND = "FOUND" + RES_EXCLUDED = "Excluded" RES_ERROR = "ERROR" RES_PARSE_ERROR = "PARSE ERROR" ) diff --git a/conn.go b/conn.go index 5c9f7f9..7b2c2d7 100644 --- a/conn.go +++ b/conn.go @@ -41,7 +41,7 @@ const CHUNK_SIZE = 1024 const TCP_TIMEOUT = time.Second * 2 var resultRegex = regexp.MustCompile( - `^(?P[^:]+): ((?P[^:]+)(\((?P([^:]+)):(?P\d+)\))? )?(?PFOUND|ERROR|OK)$`, + `^(?P[^:]+): ((?P[^:]+)(\((?P([^:]+)):(?P\d+)\))? )?(?PFOUND|ERROR|OK|Excluded)$`, ) type CLAMDConn struct { @@ -140,6 +140,7 @@ func parseResult(line string) *ScanResult { switch matches[i] { case RES_OK: case RES_FOUND: + case RES_EXCLUDED: case RES_ERROR: break default: