From: "Loren Wilton" <[EMAIL PROTECTED]> > > I was curious why spamd log entries always had an extra blank line > > after them. > > > > It looks like Sys::Syslog always does that so any perl script > > reporting to syslog via that mechanism has extra blank lines. (MacOS > > X 10.4.2). > > I would guess, without looking at any code, that the syslog stuff always > adds a newline to the end of the message text when logging. If the message > text already ends in a newline, you get a blank line. Probably all or > almost all of the sa log lines already end with a newline. > > The trivial change is to not add the extra newline if the text already ends > in a newline. If that is awkward, filter off any terminal newline in the > text before logging, and the logging code will put one back on.
It's a setup problem somewhere. We do not get the extra newline here. ===8<--- Jul 24 04:22:02 morticia fetchmail[21066]: reading message [EMAIL PROTECTED]:1 of 1 (4920 octets) Jul 24 04:22:02 morticia sendmail[24013]: j6OBM2NG024013: from=<[EMAIL PROTECTED]>, size=4929, class=-100, nrcpts=1, msgid=<[EMAIL PROTECTED]>, bodytype=8BITMIME, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Jul 24 04:22:02 morticia fetchmail[21066]: flushed Jul 24 04:22:03 morticia spamd[23064]: connection from localhost.localdomain [127.0.0.1] at port 46920 Jul 24 04:22:03 morticia spamd[23064]: info: setuid to jdow succeeded Jul 24 04:22:03 morticia spamd[23064]: processing message <[EMAIL PROTECTED]> for jdow:500. Jul 24 04:22:06 morticia spamd[23064]: clean message (-2.6/5.0) for jdow:500 in 2.9 seconds, 5255 bytes. Jul 24 04:22:06 morticia spamd[23064]: result: . -2 - BAYES_00,MIME_QP_LONG_LINE scantime=2.9,size=5255,mid=<[EMAIL PROTECTED] >,bayes=2.22044604925031e-16,autolearn=disabled Jul 24 04:22:06 morticia sendmail[24084]: j6OBM2NG024013: to=<[EMAIL PROTECTED]>, delay=00:00:04, xdelay=00:00:04, mailer=local, pri=215113, dsn=2.0.0, stat=Sent ===8<--- It might be something one of his ancilliary tools line AmaVis or ClamAV would do? {^_^}