Article View: news.software.nntp
Article #81852Re: mailpost exits with 0 when it should not
From: Ray Banana
Date: Wed, 02 Sep 2009 11:51
Date: Wed, 02 Sep 2009 11:51
13 lines
1721 bytes
1721 bytes
* Jon Bendtsen wrote: > cat "$post" | /usr/lib/news/bin/mailpost -a approved $group && rm > "$post" > So it should ONLY delete mails that was successfully posted, which > leads to mailpost should not return 0 when there was an error. It's not the return code from mailpost that triggers the rm command, but the return code from cat and cat was successful. -- Too many ingredients in the soup, no room for a spoon http://www.eternal-september.org
Technical Details
Message-ID:
<slrnh9sn2v.jut.rayban@banana.shacknet.nu>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!news.mixmin.net!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!not-for-mailReferences:
<h7lkqm$947$1@munin.diku.dk>Show Full Headers
Complete Article Headers
Message-ID: <slrnh9sn2v.jut.rayban@banana.shacknet.nu> Subject: Re: mailpost exits with 0 when it should not Date: Wed, 02 Sep 2009 11:51:59 +0000 From: Ray Banana <rayban@banana.shacknet.nu> References: <h7lkqm$947$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!news.mixmin.net!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!not-for-mail Newsgroups: news.software.nntp Organization: A noiseless patient Spider Lines: 13 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX187FMVVsEGxHn7arJ76YjoR5yXrBz6/fw9DxnHmwQz/JOU5MNBEI1ELyAQqJntd9FU9TtKpQKSML4aiUsChpG9jsGIgPKITdm9pzxGlBVnPSybZQQ1xZY8QaMvs8RSjHJbvgDzVrt9qS3gpRu6S/MU2 X-Complaints-To: abuse@eternal-september.org NNTP-Posting-Date: Wed, 2 Sep 2009 11:51:59 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19CYxUWfKbKdlbtOz7Zfd3afkzmBcb+/aOIB/DNPv0y6g== Cancel-Lock: sha1:/wkQyBbPq+MOJgzOsXaeac1L9is= User-Agent: slrn/0.9.9 (Linux)