Article View: news.software.nntp
Article #84234Re: Mail-to-News
From: Julien ÉLIE
Date: Thu, 04 Aug 2011 22:23
Date: Thu, 04 Aug 2011 22:23
74 lines
3713 bytes
3713 bytes
Hi Dennis,
>> My comment was only meant for the inews program shipped with
>> INN. It should be updated to take a benefit from the new commands
>> defined in RFC 3977. I do not know much about the other "inews"
>> programs in the wild. I bet it would also be worthwhile updating
>> them.
>
> I agree it would be worthwhile, but I'm not sure this would
> have much impact. I suspect all of the "inews" programs in the wild
> are used on client machines that have READ/POST permissions. In
> practice any added IHAVE functionality is unlikely to be used.
>
> I also suspect that some of these versions of "inews" aren't
> currently maintained.
It is not a problem that other versions of "inews" are no longer
maintained. At least, the one shipped with INN is still maintained and
is from time to time improved.
If older "inews" programs fit the need of their users, it is great.
Otherwise, it is helpful for them to know that in case they need another
features, INN (amongst others) may do the job.
>> # Acquire a lock.
>> $INN::Utils::Shlock::lock($lockfile);
>>
>> # Unlock.
>> $INN::Utils::Shlock::unlock($lockfile);
It is in fact without the leading "$". It was a typo in my previous
article.
INN::Utils::Shlock::lock($lockfile);
INN::Utils::Shlock::unlock($lockfile);
> I suspect the two lines:
>
>> These two functions return 1 on success, 0 on failure. Therefore, the success of
>> (un)locking can be checked for instance as follows:
>
> would read better as:
>
> These two functions return 1 on success, 0 on failure. For example
> the success of (un)locking can be checked as:
Yes, totally. Thanks for the suggestion. I have adopted it.
> and I'm sure the perl pedants will want:
>
>> if ($INN::Utils::Shlock::lock($lockfile, 4)< 1) {
>
> written as:
>
> if (! INN::Utils::Shlock::lock($lockfile, 4)) {
Yup!
Whole commit here:
http://inn.eyrie.org/trac/changeset/9303
--
Julien ÉLIE
« En France, on n'a pas de pétrole, mais on a des idées ! Alors,
j'ai troqué ma deux-chevaux contre une deux-bœufs ! » (Raymond
Devos)
Technical Details
Message-ID:
<j1f65l$r82$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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.stben.net!news.trigofacile.com!.POSTED.aaubervilliers-552-1-71-100.w83-200.abo.wanadoo.fr!not-for-mailReferences:
<iuaorh$gbt$1@n102.xanadu-bbs.net> <j01usk$v8r$1@news.trigofacile.com> <LoMMn0.67I.B.larch@bath.ac.uk> <j0cvgt$pok$1@news.trigofacile.com> <Loy243.Ax8.B.larch@bath.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <j1f65l$r82$1@news.trigofacile.com> Subject: Re: Mail-to-News Date: Fri, 05 Aug 2011 00:23:48 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <iuaorh$gbt$1@n102.xanadu-bbs.net> <j01usk$v8r$1@news.trigofacile.com> <LoMMn0.67I.B.larch@bath.ac.uk> <j0cvgt$pok$1@news.trigofacile.com> <Loy243.Ax8.B.larch@bath.ac.uk> 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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.stben.net!news.trigofacile.com!.POSTED.aaubervilliers-552-1-71-100.w83-200.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 4 Aug 2011 22:23:49 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-552-1-71-100.w83-200.abo.wanadoo.fr:83.200.70.100"; logging-data="27906"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; fr; In-Reply-To: <Loy243.Ax8.B.larch@bath.ac.uk> Lines: 73 X-Original-Bytes: 3542