🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #126815

Re: [dialog] X-Now-Playing script :)

#126815
From: matija
Date: Sun, 22 Jun 2003 11:54
35 lines
2624 bytes
Jarrod Cifer, completely geschtonkenflapped, wrote:
> Two questions:
> Have you added it to the script repository on the Dialog wiki pages?

     not yet. i'll do so as soon as people on this and the croatian
     news software groups say it's working as expected :)


> You've already shown me how to add a header, can you give me a tip how to
> delete a header on sending a message as well?

     index := message.indexOf ('what you are searching for');
     message.delete (index);


     if you don't know the search string exactly, traversal
     will be necessary:


     for n := 0 to message.count do
       if pos ('something', message[n]) <> 0 then message.delete (n);


     so, if you're searching for 'X-Foo: bar' which is constant,
     you go with the first method. if the X-Foo header changes
     (e.g. 'X-Foo: bar' or 'X-Foo: baz' or 'X-Foo: quux' or...),
     the second method should be used, and this time you're
     searching only for 'X-Foo'.


-- 
there is a cheer. the gnomes have learned a new way to say hooray.   [-shpongle]

address is scrambled - remove SPAMISEVIL to reply
Technical Details
Message-ID: <1lm0vftr9xw0z$.dlg@shpongle.604>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!freenix!usenet-fr.net!teaser.fr!fr.ip.ndsoftware.net!fu-berlin.de!CARNet.hr!not-for-mail
References: <1m063ufypbf7v.dlg@shpongle.604> <Ix-dncK2B9zD-WmjXTWcqA@giganews.com> <aotnkdfxtxrh.dlg@shpongle.604> <Q6acnajm2aFczGijXTWcow@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <1lm0vftr9xw0z$.dlg@shpongle.604>
Subject: Re: [dialog] X-Now-Playing script :)
Date: Sun, 22 Jun 2003 13:54:57 +0200
From: matija <mSkPrAnMic@jaIgSor.srEcVe.IhLr>
References: <1m063ufypbf7v.dlg@shpongle.604> <Ix-dncK2B9zD-WmjXTWcqA@giganews.com> <aotnkdfxtxrh.dlg@shpongle.604> <Q6acnajm2aFczGijXTWcow@giganews.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!freenix!usenet-fr.net!teaser.fr!fr.ip.ndsoftware.net!fu-berlin.de!CARNet.hr!not-for-mail
Newsgroups: news.software.readers
Organization: 604
Lines: 34
NNTP-Posting-Host: cmung418.cmu.carnet.hr
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: bagan.srce.hr 1056282897 17379 193.198.129.164 (22 Jun 2003 11:54:57 GMT)
X-Complaints-To: abuse@carnet.hr
NNTP-Posting-Date: Sun, 22 Jun 2003 11:54:57 +0000 (UTC)
X-Now-Playing: "cygnus x - positron" (Winamp 2.91)
X-Face: "7>Vm?rO.@qh|TIsbG@X7>asBJ8BSLKs%T@Wd+qgN<P?}[3`e1(M~;NT:f=hn#iN:nyAWyT fR9pPzc9ON|MqY_5Fvk)9[+7Lu!%Ihw.GS]KBQF6K_Vn1J2sB{Ne@3Fa5G-z
X-Afraid-Of: spiders
X-Searching-For: GMT soundtrack (guy sigsworth)
X-Mastered: the art of pizza making
User-Agent: 40tude_Dialog/2.0.5.53hr (7f2126c2.258.186)