On Wed, Sep 03, 2014 at 01:47:59PM +0200, Stevan Bajić wrote: > On 02.09.2014 23:59, Eric Broch wrote: > >Hi Stevan, > > > Hello Eric, > > > >I sent the email you requested to your private email account in a > >zip file. > > > I got the mail. Tested the result with normal "dspam" and with > "dspamc" and with "dspam --client". Using plain old "dspam" worked > flawlessly while using "dspamc" and "dspam --client" resulted in > stripping data from the mail. > > Looking at the mail source the error occurred at line 3 (line > numbering added by me): > > 001 has low airflow of 92 cfm for exhaust down low which equates to > .4 cfm/ft2= > 002 . > 003 <b>I suggest that this ducting be modified before I return. > Another low duc= > > So it is clearly a dot stuffing issue. I don't know who is to blame > here. Usually the client/sender is supposed to do the dot stuffing. > The 'cut' command is not intelligent enough to do this. A small SED > command however could do that: > ( sed '/^$/q' 'email' ; echo ; sed '1,/^$/d' 'email' | sed > 's:^\.$:..:g' ) | dspamc --user user@domain --stdout > --deliver=innocent,spam > > I don't know how to intelligently catch this issue in the code (it > has been a while since I looked or touched the code). IMHO piping > data to the DSPAM binary should not suffer from this dot stuffing. > If you would send that directly to LMTP/DLMTP socket then I would > say that it is clearly your problem but piping? I don't know. >
Hi Stevan and Eric, I agree that it is a dot-stuffing problem. Looking at the code for dspamc, it calls client_process() just like dspam does so it seems like it should be escaping the single period on the line as well. So definitely, to work around this issue, use dspam and not dspamc or deliver to DSPAM using LMTP. I will try to run it under a debugger and see if I can see what is happening. Regards, Ken ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user