]> www.infradead.org Git - users/dwmw2/crm114-spamd.git/commitdiff
doh, we handle report, not process
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 9 May 2006 21:34:54 +0000 (23:34 +0200)
committerJohannes Berg <johannes@johannes.berg>
Tue, 9 May 2006 21:34:54 +0000 (23:34 +0200)
dspam-spamd.c

index e6d7f2deeedad5ca93f9a4c4eb7d894d397861bb..ee806212f6325bf34aeb0aff7e3b46f9778501ff 100644 (file)
@@ -39,8 +39,8 @@ int main() {
        if (sscanf(buf, "%s SPAMC/%s", cmd, version) != 2) {
                ERROR(EX_PROTOCOL, "invalid input line");
        }
-       if (strcmp(cmd, "PROCESS") != 0)
-               ERROR(EX_PROTOCOL, "can only handle PROCESS");
+       if (strcmp(cmd, "REPORT") != 0)
+               ERROR(EX_PROTOCOL, "can only handle REPORT");
        if (strcmp(version, "1.2") != 0)
                ERROR(EX_PROTOCOL, "can only handle version 1.2");
 
@@ -152,7 +152,7 @@ int main() {
                ERROR(EX_TEMPFAIL, "dspam exited with non-zero code");
 
        /* Now we have the message as processed by dspam.
-        * The only valid command right now is PROCESS so we
+        * The only valid command right now is REPORT so we
         * extract the lines dspam added to the header first. */
 
        /* null terminate message */