πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80192

Re: posting oooold email archive to my inn2 server

#80192
From: Jon Bendtsen
Date: Fri, 27 Feb 2009 19:51
31 lines
2273 bytes
Julien Γ‰LIE wrote:
> Hi Jon,
> 
>>> The problem is that I read in mailpost, at the end of mailArtAndDie():
>>>
>>>    exit (0) ;                  # Using a non-zero exit may cause
>>> problems.
>>
>> Proper error handling is importent. Errors should propergate until
>> they can be dealt with.
> 
> Change added to INN 2.5.0.  (You can backport it to your INN 2.4.x if
> you want.)
> 
> --- mailpost.in 2009-02-27 18:50:53 UTC (rev 8358)
> +++ mailpost.in 2009-02-27 18:54:27 UTC (rev 8359)
> @@ -510,8 +510,9 @@
>     close SENDMAIL ;
> 
> #    unlink $tmpfile ;
> -
> -    exit (0) ; # Using a non-zero exit may cause problems.
> +
> +    # We use here a non-zero exit.  It should normally not cause problems.
> +    exit(1);

I already changed my own script. i changed ALL exit(0) to another
number. First exit 0 to exit 1, then 2, then ...

So far i have hit 3 and 6. I think 3 is "known Message-ID" and 6 is
some other error (this one gives me an error message).
Technical Details
Message-ID: <go9g8f$1dhr$1@munin.diku.dk>
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!feeder.erje.net!news2.arglkargh.de!nuzba.szn.dk!pnx.dk!news.banetele.no!hist.no!news.net.uni-c.dk!munin.diku.dk!not-for-mail
References: <go3dcd$upa$1@munin.diku.dk> <go42tl$83t$1@news.trigofacile.com> <go5je3$148h$1@munin.diku.dk> <go9d72$jgv$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <go9g8f$1dhr$1@munin.diku.dk>
Subject: Re: posting oooold email archive to my inn2 server
Date: Fri, 27 Feb 2009 20:51:43 +0100
From: Jon Bendtsen <noone@example.com>
References: <go3dcd$upa$1@munin.diku.dk> <go42tl$83t$1@news.trigofacile.com> <go5je3$148h$1@munin.diku.dk> <go9d72$jgv$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!feeder.erje.net!news2.arglkargh.de!nuzba.szn.dk!pnx.dk!news.banetele.no!hist.no!news.net.uni-c.dk!munin.diku.dk!not-for-mail
Newsgroups: news.software.nntp
Organization: Department of Computer Science, University of Copenhagen
Lines: 31
NNTP-Posting-Host: tyr.diku.dk
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: munin.diku.dk 1235764303 46651 130.225.96.226 (27 Feb 2009 19:51:43
 GMT)
X-Complaints-To: news@diku.dk
NNTP-Posting-Date: Fri, 27 Feb 2009 19:51:43 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
In-Reply-To: <go9d72$jgv$1@news.trigofacile.com>