Hi all,<br><br>I've started using cvsspam in a new workplace some weeks ago (I'm a long time user, but not in the last 3 years). Everything was fine, except that yesterday there were 3 RuntimeError episodes. In all 3 instances I get something like this:<br>
<br>/usr/local/lib/cvsspam/cvsspam.rb:229:in `advance': /tmp/#cvsspam.27771.504-36629626/logfile:424 line did not begin with '#': if_line_of_code (RuntimeError)<br> from /usr/local/lib/cvsspam/cvsspam.rb:201:in `each'<br>
from /usr/local/lib/cvsspam/cvsspam.rb:499:in `handleLines'<br> from /usr/local/lib/cvsspam/cvsspam.rb:1399<br> from /usr/local/lib/cvsspam/cvsspam.rb:1391:in `open'<br> from /usr/local/lib/cvsspam/cvsspam.rb:1391<br>
from /usr/local/lib/cvsspam/cvsspam.rb:1387:in `open'<br> from /usr/local/lib/cvsspam/cvsspam.rb:1387<br>/usr/local/lib/cvsspam/collect_diffs.rb:296:in `mailtest': problem running '/usr/local/lib/cvsspam/cvsspam.rb' (RuntimeError)<br>
from /usr/local/lib/cvsspam/collect_diffs.rb:461<br><br>Where if_line_of_code is obviously an if statement (in java). Please note that the line numbers may be different than what you expect because I had to change the script in order to do authentication on an SMTP server and execute with nohup. Nevertheless, I don't think that my changes have caused this issue.<br>
<br>Consider that that if_line_of_code is present in 1 file only and that file hasn't been modified in months. It has nothing to do with the code change that was going to be notified. The other 2 instance point to other code.<br>
<br>Of course if I open the temp file I can clearly see that that line indeed doesn't start with '#'. At the same time, though, I don't see how collect_diffs.rb can have put something without a leading '#' into the temp file. Has anybody ever experienced something like this?<br>
<br>FYI:<br>*) ruby 1.8.5 (2007-03-13 patchlevel 35) [i386-linux]<br>*) cvsspam 0.2.12<br>*) cvs 1.11.22 on a "Fedora Core release 5 (Bordeaux)" server<br><br>Thanks,<br>Giuliano<br>