From baaefdc3478cdf09e5db128b45e7597f51a69ff3 Mon Sep 17 00:00:00 2001 From: "Dolf Schimmel (Freeaqingme)" Date: Wed, 30 Mar 2016 22:27:19 +0200 Subject: [PATCH] Improve function names. There's now a reportHam() and reportSpam() --- client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index bd942bf..77e713c 100644 --- a/client.go +++ b/client.go @@ -162,7 +162,7 @@ func (s *Client) Headers(abort chan bool, msgpars ...string) (reply *SpamDOut, e } //Sign the message as spam -func (s *Client) ReportingSpam(abort chan bool, msgpars ...string) (reply *SpamDOut, err error) { +func (s *Client) ReportSpam(abort chan bool, msgpars ...string) (reply *SpamDOut, err error) { headers := map[string]string{ "Message-class": "spam", "Set": "local,remote", @@ -170,8 +170,7 @@ func (s *Client) ReportingSpam(abort chan bool, msgpars ...string) (reply *SpamD return s.Tell(abort, msgpars, &headers) } -//Sign the message as false-positive -func (s *Client) RevokeSpam(abort chan bool, msgpars ...string) (reply *SpamDOut, err error) { +func (s *Client) ReportHam(abort chan bool, msgpars ...string) (reply *SpamDOut, err error) { headers := map[string]string{ "Message-class": "ham", "Set": "local,remote",