πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80184

Re: posting oooold email archive to my inn2 server

#80184
From: Jon Bendtsen
Date: Thu, 26 Feb 2009 08:21
32 lines
2190 bytes
Julien Γ‰LIE wrote:
> Hi Jon,
> 
>> ps: there is an error in the mailpost script because it does not
>> exit with an exitcode different from 0 when it hits the above error
>> message.
> 
> 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.


> I do not know the reason for that but I believe there is one...
> Maybe because of its being used in newsfeeds?
> I do not see other scripts mailpost interacts with.

I use it like this:

fetchmail gets email from pop3 server which then runs maildrop and
mailfilter which checks the to address and sets the correct group.
Then i call mailpost.

The result is that if there is an error, then mailpost wont show
this error to maildrop which means the bad message wont spill over
and be saved in a Maildir storage i can handle manually.



JonB
Technical Details
Message-ID: <go5je3$148h$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!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!news.stupi.se!news.net.uni-c.dk!munin.diku.dk!not-for-mail
References: <go3dcd$upa$1@munin.diku.dk> <go42tl$83t$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <go5je3$148h$1@munin.diku.dk>
Subject: Re: posting oooold email archive to my inn2 server
Date: Thu, 26 Feb 2009 09:21:24 +0100
From: Jon Bendtsen <noone@example.com>
References: <go3dcd$upa$1@munin.diku.dk> <go42tl$83t$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!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!news.stupi.se!news.net.uni-c.dk!munin.diku.dk!not-for-mail
Newsgroups: news.software.nntp
Organization: Department of Computer Science, University of Copenhagen
Lines: 32
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 1235636483 37137 130.225.96.226 (26 Feb 2009 08:21:23
 GMT)
X-Complaints-To: news@diku.dk
NNTP-Posting-Date: Thu, 26 Feb 2009 08:21:23 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
In-Reply-To: <go42tl$83t$1@news.trigofacile.com>
X-Original-Bytes: 1913