🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #127264

Re: [dialog] X-Now-Playing script v0.45

#127264
From: Andreas Loch
Date: Sun, 29 Jun 2003 00:21
47 lines
3106 bytes
Samstag, 28. Juni 2003 23:55, Gandalf il Grigio:

> news.software.readers ~ 24/6/2003 ~ Gandalf il Grigio:

>>> try changing the index and see what happens.
>> I'm trying with 11 instead of 1, let's see :)
>
> Well, I eventually found a �bug�... since the script adds the
> header also to the email messages (I use Dialog as the default
> mailreader, too), and since an email message has less headers, it
> inserts the header in the message body (after the first line,
> usually) :/
>
> Now, could you use a flag to avoid inserting the header in email
> messages?

This flag already exists:

  // set this to true if you want x-headers and/or song names applied
  // to e-mails, too.
  cApplyToEmails = false;

I think you changed it into "cApplyToEmails = true;" and now the
script also works for emails.

But you could set the header position for email and news seperately.
To do this, replace the occurences of the line

| message.insert (1, cXHeaderName + ': ' + tempSong);

with the following code

| if isEmail then begin //this is for emails
|   message.insert (8, cXHeaderName + ': ' + tempSong); end
| else begin            //this is for usenet postings
|   message.insert (11, cXHeaderName + ': ' + tempSong);
| end;

and fit the index numbers to your needs.

Andreas
-- 
http://gigaschatten.de/
Now another way to explain acronyms to newbies:
"Install 40tude Dialog and hover the cursor over, dude."
[Loonie in news.software.readers]
Technical Details
Message-ID: <1784117.lQdfDRzY0h@quidam.anchedo.net>
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!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <myfhectiqs8$.dlg@shpongle.604> <5ukzq0d6wx2q$.dlg@gandalf.my-fqdn.de> <1uvc8ypqb00ip$.dlg@shpongle.604> <qkgkrckzbrnb.dlg@gandalf.my-fqdn.de> <1hqnixncmtt49$.dlg@gandalf.my-fqdn.de>

Show Full Headers
Complete Article Headers
Message-ID: <1784117.lQdfDRzY0h@quidam.anchedo.net>
Subject: Re: [dialog] X-Now-Playing script v0.45
Date: Sun, 29 Jun 2003 02:21:01 +0200
From: Andreas Loch <anchedo@gmx.net>
References: <myfhectiqs8$.dlg@shpongle.604> <5ukzq0d6wx2q$.dlg@gandalf.my-fqdn.de> <1uvc8ypqb00ip$.dlg@shpongle.604> <qkgkrckzbrnb.dlg@gandalf.my-fqdn.de> <1hqnixncmtt49$.dlg@gandalf.my-fqdn.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.readers
Organization: Schattenseite [tm]
Lines: 46
Reply-To: usenet-reply@anchedo.net
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
X-Trace: news.t-online.com 1056846084 02 4426 3HO1VvVSSZAWeN 030629 00:21:24
X-Complaints-To: usenet-abuse@t-online.de
X-ID: VAy1GcZfYePCPgBc7zZjvNZnMiXyTF+8UCbm2DHlgwhEtKMk7jdy0Q
User-Agent: KNode/0.7.2
X-God: Ivanova
X-Orden: Orden der Dunklen Seite von de.ALL [tm]
X-Title: Oberster Schlumpf
X-URL: http://gigaschatten.de/
X-Face: w9bMbd2{F~x6?D!\mU+yE(onhfp%2wx{YBB_WtGg/nK0[80&"Jvm0g|ZS&Z4[WfXcqdh\Nq 6U-!nVSCc->LTZkQTSHd+Q<64(D]l3I!EG2a{iPHMRXY9^Ikj$\PB9TvVhM8)%W9)Ns]3i-.Tm~nX> ^k+Z`4I]#UpK+LAJ&|Ai#m;RmU2eM*f{{Oz