🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #216609

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

#216609
From: Peter J Ross
Date: Fri, 08 Feb 2008 06:19
58 lines
3166 bytes
On Fri, 08 Feb 2008 04:27:08, Sqwertz <swertz@cluemail.compost> wrote:
> On Fri, 08 Feb 2008 03:53:54 GMT, Sqwertz wrote:
> 
>> On Fri, 08 Feb 2008 01:30:12 +0000, Peter J Ross wrote:
>> 
>>> 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?
>> 
>> That would do the same as advertising=off.  
> 
> I'm having serious trouble reading this thread correctly.  I must
> have been looking at the line above when I was proofing your
> changes.  
>
> Yes - you had it right the first time, then I repeated it.  Duh.
 
So let's see how this post turns out.

> So as not to make my previous post a complete waste of time, I
> still offer the alternative below:
> 
>> Another "fancy" option is to just edit your existing executable
>> (/usr/local/bin/tin, or whatever) with a binary/hex editor - or
>> Emacs is what I'd use - and search for the string:
>> 
>> User-Agent: %s/%s-%s (\"%s\") (%s)%s\n  
>> 
>> and replace the last 9 characters of that string with 
>> 
>> "\n       "
>> 
>> That's \n with 7 spaces after it - no quotes
>> 
>> It's the brute forth method: Ugly, but it works.  And saves you
>> from building it from scratch, possibly breaking something else
>> in the meantime.

I much prefer to work with the source code, where I have some chance of
knowing what I'm doing.

However, I assume your method would work for anybody who's installed a binary
package.

> I must have a hole in my head today.  Sorry for the confusion -
> again.

Your correction arrived before I read your previous post, so I wasn't
confused. Thanks for your help.


-- 
PJR :-)
Technical Details
Message-ID: <qs8t75xlj2.ln2@pjr.gotdns.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!club-internet.fr!feedme-small.clubint.net!news.motzarella.org!motzarella.org!not-for-mail
References: <slrnfqn4rv.ore.pjr@pjr.motzarella.org> <fog74v$6h2$1@news2.rz.uni-karlsruhe.de> <slrnfqnc54.ore.pjr@pjr.motzarella.org> <1lkqzb3igw8vm$.dlg@sqwertz.com> <1mlx1mt4k92g.dlg@sqwertz.com>

Show Full Headers
Complete Article Headers
Message-ID: <qs8t75xlj2.ln2@pjr.gotdns.org>
Subject: Re: [tin] How to change default User-Agent line?
Date: Fri, 08 Feb 2008 06:19:38 +0000
From: Peter J Ross <pjr@example.invalid>
References: <slrnfqn4rv.ore.pjr@pjr.motzarella.org> <fog74v$6h2$1@news2.rz.uni-karlsruhe.de> <slrnfqnc54.ore.pjr@pjr.motzarella.org> <1lkqzb3igw8vm$.dlg@sqwertz.com> <1mlx1mt4k92g.dlg@sqwertz.com>
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!club-internet.fr!feedme-small.clubint.net!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 58
Reply-To: Peter J Ross <peadar.ruadh@gmail.com>
X-Trace: feeder.motzarella.org
 U2FsdGVkX18QAhG9Ja0FvXqGNSkbTxiImcLfcTCfRl6EoDnvIKSOK1AHTuxUaCFYz0kxiOFXxAYWNB288UufTrVATwLDt+4v21l8ZoiNAvQJ04zfXqtnu44vrRXwuJ/9eJfPJ6VbJNs=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Fri, 8 Feb 2008 06:21:04 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1/+RLPuuUC/n7nR8X/DsTA2
Cancel-Lock: sha1:uo79fuJOPUpCzqEGCJY0RrC/14g=
User-Agent: tin/1.9.2-20070201