Article View: news.software.readers
Article #208974Re: status of slrn
From: Christian Ebert
Date: Fri, 19 Oct 2007 02:13
Date: Fri, 19 Oct 2007 02:13
89 lines
4508 bytes
4508 bytes
* John E. Davis on Friday, October 19, 2007:
> On Thu, 18 Oct 2007 22:02:30 +0200, Christian Ebert <blacktrash@gmx.net>
> wrote:
>> Can confirm that -liconv is not needed on MacOS X anymore.
>
> What exactly do you mean? Do you mean OSX has built-in support for
> iconv, so it is not necessary for libiconv, or do you mean you no
> longer have to edit the makefile after configure has run?
I want to link to a more recent iconv (in /sw) than the shipped
iconv (in /usr). Up to 0.9.9 I had to explicitly add -liconv to
LDFLAGS:
LDFLAGS="-liconv -L/sw/lib" \
sh autogen.sh --prefix=/usr/local --with-libiconv-prefix=/sw
because --with-libiconv-prefix was not enough.
>> A, hopefully minor, problem: I had a script that created a custom
>> message id, working perfectly. With this version this creates
>> invalid articles: Several empty lines are inserted *before* the
>> headers -- I only realized this because I suddenly found out that
>> my article had been sitting in the local queue for hours.
I apologize for double/triple postings but I was confused by the
above.
> Is this script run by an slrn hook? If so, which one and what does it
> look like and how can I reproduce the problem?
I'll try a simplified version:
#v+
implements ("SlrnHook");
private define get_hostname ()
{
variable res, fp = popen ("hostname", "r");
if (fp == NULL || -1 == fgets (&res, fp))
throw ApplicationError, "could not obtain hostname";
() = pclose (fp);
return strtrim_end (res);
}
private variable host_name = get_hostname ();
% stolen from Sven Guckes
private define create_msg_id ()
{
variable tm = gmtime (_time ());
return sprintf ("%d%02d%02d%02d%02d%02d.slrn@%s",
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
tm.tm_hour, tm.tm_min, tm.tm_sec, host_name);
}
private define followup_or_post (custom_headers)
{
set_string_variable (custom_headers,
sprintf ("Mail-Copies-To: nobody\nMessage-ID: <%s>",
create_msg_id ()));
}
static define post_hook ()
{
followup_or_post ("custom_headers");
}
static define followup_hook ()
{
followup_or_post ("followup_custom_headers");
}
if (1 != register_hook ("post_hook", "SlrnHook->post_hook"))
throw RunTimeError, "failed to register: post_hook";
if (1 != register_hook ("followup_hook", "SlrnHook->followup_hook"))
throw RunTimeError, "failed to register: followup_hook";
#v-
Hope you get the picture, barring copying mistakes. -- As I said,
I can live without it, I was just surprise that a working script
brokw.
c
--
__ _ _ _ __ _ _
\ \ | |__| |__ _ __| |_\ \| |_ _ _ __ _ __| |_
\ \| '_ \ / _` / _| / /\ \ _| '_/ _` (_-< ' \
\_\_.__/_\__,_\__|_\_\ \_\__|_| \__,_/__/_||_| http://www.blacktrash.org/
Technical Details
Message-ID:
<slrnfhg4m4.ell.blacktrash@krille.blacktrash.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeedt0.toon.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mailReferences:
<slrnfh4nnm.m6a.davis@aluche.mit.edu> <ih5au4-jbq.ln1@wiegner.user.individual.de> <slrnfh4sdn.niq.davis@aluche.mit.edu> <slrnfh5gvs.6bg.andrew@ilium.invalid> <slrnfh5inc.div.davis@aluche.mit.edu> <slrnfh5keg.f62.andrew@ilium.invalid> <slrnfh5pvf.kh7.davis@aluche.mit.edu> <slrnfh6262.kk0.wiegner@dost.mchm.siemens.de> <slrnfh74q9.inb.jed@aluche.mit.edu> <slrnfhfeum.5ju.blacktrash@krille.blacktrash.org> <slrnfhg1d3.1ps.jed@aluche.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrnfhg4m4.ell.blacktrash@krille.blacktrash.org>
Subject: Re: status of slrn
Date: Fri, 19 Oct 2007 04:13:24 +0200
From: Christian Ebert <blacktrash@gmx.net>
References: <slrnfh4nnm.m6a.davis@aluche.mit.edu> <ih5au4-jbq.ln1@wiegner.user.individual.de> <slrnfh4sdn.niq.davis@aluche.mit.edu> <slrnfh5gvs.6bg.andrew@ilium.invalid> <slrnfh5inc.div.davis@aluche.mit.edu> <slrnfh5keg.f62.andrew@ilium.invalid> <slrnfh5pvf.kh7.davis@aluche.mit.edu> <slrnfh6262.kk0.wiegner@dost.mchm.siemens.de> <slrnfh74q9.inb.jed@aluche.mit.edu> <slrnfhfeum.5ju.blacktrash@krille.blacktrash.org> <slrnfhg1d3.1ps.jed@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeedt0.toon.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.readers
Organization: Black Trash Productions <http://www.blacktrash.org/>
Lines: 89
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.t-online.com 1192760019 00 4351 beTC1N+llmszo3b 071019 02:13:39
X-Complaints-To: usenet-abuse@t-online.de
X-ID: XdBkuGZeYe3BsblbDxYyBfO8wex5DaXKQuNjIS192oBnx9psqiTTUK
Mail-Copies-To: nobody
X-Face: )&#alA:[x"-#%%./(nuC&8n; #gqM; =mfY&ivRz@Gnv|AD_0l1Uz{fnJ^BW~OX[d;
/)z!yV
User-Agent: slrn/pre0.9.9-16 (Darwin)