πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80858

Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available

#80858
From: D. Stussy
Date: Sun, 03 May 2009 23:20
32 lines
2314 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gtl4ia$656$1@news.trigofacile.com...
> > sub mailArtAndDie {
> >     my ($msg) = @_ ;
> >
> > +    syslog "err", "$msg";
> >     print STDERR $msg,"\n" if -t STDERR ;
> >
> > Let's log the error to the syslog in case the e-mail version of the
error
> > isn't sent.
>
> I have just committed:
>
>     syslog("err", "$msg\n") if $debugging && $use_syslog;
>
> Thanks,

OK.  Close enough - although I'd prefer "if (debugging OR use_syslog)".  I
think this is the one place that should get into the syslog regardless of
the state of the debugging flag - as this is the reason why the script is
aborting, not the logging of an intermediate step along the way (as the
other calls to syslog are).  I feel that the syslog should log the outcome:
Delivery into the newsspool (currently, no message) or aborting (the code
above).

    syslog("err", "$msg\n") if $debugging || $use_syslog;

Lastly, I wasn't certain if the newline was needed for syslog().  Other
calls don't have it.

Technical Details
Message-ID: <gtl8s9$fjr$1@aux.snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news2.arglkargh.de!feeder.erje.net!news.snarked.org!not-for-mail
References: <878wnex9f4.fsf@windlord.stanford.edu> <75mc7qF195jsaU1@mid.individual.net> <gtj1pq$4hl$1@aux.snarked.org> <gtl4ia$656$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gtl8s9$fjr$1@aux.snarked.org>
Subject: Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Date: Sun, 3 May 2009 16:20:45 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <878wnex9f4.fsf@windlord.stanford.edu> <75mc7qF195jsaU1@mid.individual.net> <gtj1pq$4hl$1@aux.snarked.org> <gtl4ia$656$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news2.arglkargh.de!feeder.erje.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 32
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-106-211-188.lsanca.dsl-w.verizon.net
X-Trace: aux.snarked.org 1241392841 15995 71.106.211.188 (3 May 2009 23:20:41
 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Sun, 3 May 2009 23:20:41 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478