#! /bin/sh /usr/share/dpatch/dpatch-run ## 15_spamass-milter-auth-ssf.patch.dpatch by Herbert Straub ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Add authenticated bits information for spamc @DPATCH@ --- spamass-milt/spamass-milter.cpp.ORIG 2007-12-06 06:23:55.000000000 +0100 +++ spamass-milt/spamass-milter.cpp 2007-12-06 06:24:40.000000000 +0100 @@ -199,8 +199,7 @@ #endif openlog("spamass-milter", LOG_PID, LOG_MAIL); - - + syslog(LOG_ERR, "argc: %d", argc); for (int xy=0; xyoutput((string)"X-Envelope-From: "+assassin->from()+"\r\n"); assassin->output((string)"X-Envelope-To: "+envrcpt[0]+"\r\n"); - assassin->output((string) - "Received: from "+macro_s+" ("+macro__+")\r\n\t"+ - "by "+macro_j+"("+macro_v+"/"+macro_Z+") with "+macro_r+" id "+macro_i+"\r\n\t"+ + string rec_header; + rec_header=(string)"Received: from "+macro_s+" ("+macro__+")\r\n\t"; + if (strlen(macro_auth_ssf)!=0) { + rec_header+=(string)"(authenticated bits="+macro_auth_ssf+")\r\n\t"; + } + rec_header+=(string)"by "+macro_j+"("+macro_v+"/"+macro_Z+") with "+ + macro_r+" id "+macro_i+"\r\n\t"+ macro_b+"\r\n\t"+ - "(envelope-from "+assassin->from()+"\r\n"); + "(envelope-from "+assassin->from()+"\r\n"; + debug(D_SPAMC, "Received header for spamc: %s", rec_header.c_str()); + assassin->output(rec_header); } else assassin->output((string)"X-Envelope-To: "+envrcpt[0]+"\r\n");