πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #216596

Re: [tin] How to change default User-Agent line?

#216596
From: Peter J Ross
Date: Fri, 08 Feb 2008 01:30
37 lines
2515 bytes
In news.software.readers on Fri, 8 Feb 2008 00:18:39 +0000 (UTC), Urs
Janßen <urs@buil.tin.org> wrote:

> In <slrnfqn4rv.ore.pjr@pjr.motzarella.org>, Peter J Ross wrote:
>> If I post with tin, my User-Agent header looks like this:
>> 
>>        User-Agent: tin/1.9.2-20070201 ("Dalaruan") (UNIX)
>>         (Linux/2.6.22-3-686 (i686))
>> 
>> I don't want all that information to be shown. In particular, I think
>> my kernel version is my business, not my readers', and I'm not running
>> UNIX, and I have no idea what "Dalaruan" means.
>> 
>> I'd like to be able to replace the line with
>> 
>>        User-Agent: tin/1.9.2-20070201
>> 
>> but my efforts at editing src/config.c, include/version.h etc have so
>
> the relevant code is in post.c:checknadd_headers()
>
>         fprintf(fp_out, "User-Agent: %s/%s-%s (\"%s\") (%s)%s\n",
>             PRODUCT, VERSION, RELEASEDATE, RELEASENAME, OSNAME, suffix);

Thank you. So this should give me what I want:

#v+
	fprintf(fp_out, "User-Agent: %s/%s-%s\n",
		PRODUCT, VERSION, RELEASEDATE);
#v-

Am I right?

-- 
PJR :-)

<http://pjr.lasnobberia.net/usenet/>
Technical Details
Message-ID: <slrnfqnc54.ore.pjr@pjr.motzarella.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!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mail
References: <slrnfqn4rv.ore.pjr@pjr.motzarella.org> <fog74v$6h2$1@news2.rz.uni-karlsruhe.de>

Show Full Headers
Complete Article Headers
Message-ID: <slrnfqnc54.ore.pjr@pjr.motzarella.org>
Subject: Re: [tin] How to change default User-Agent line?
Date: Fri, 08 Feb 2008 01:30:12 +0000
From: Peter J Ross <pjr@example.invalid>
References: <slrnfqn4rv.ore.pjr@pjr.motzarella.org> <fog74v$6h2$1@news2.rz.uni-karlsruhe.de>
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!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 37
Reply-To: Peter J Ross <peadar.ruadh@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX1+jgZ27n/l14bphOy8b6LcgnFDd80zmxCzB7dOMc7XQnhyGehwA5CCHmQ84kIuwpNvmdJrKV7gOMXSRc/3b+ufQx05es9XaB46barV3UPes61LBlHHLWyVpfKiMbI6LKIs=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Fri, 8 Feb 2008 01:31:05 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1+QU9m6A6Zt8KNitRpcWLH+
Cancel-Lock: sha1:68C2P9jgNCF5TO4VaX9gyJCQLGA=
User-Agent: slrn/pre0.9.9-82/mm (Linux)