Article View: news.software.readers
Article #261399Request help with 40tude dialog program syntax
From: Stijn De Jong
Date: Sat, 31 Dec 2016 19:40
Date: Sat, 31 Dec 2016 19:40
27 lines
1935 bytes
1935 bytes
I'm not a programmer where I'm just trying to meld two different onBeforeSendingMessage scripts found in the 40tude script repository (http://dialog.datalist.org/scripts). I can put the two scripts together, but I can't redefine the variable. The variable seems to take one and only one value! That is, I can easily give the variable any value, but I can't seem to figure out the syntax to *redefine* that variable in an "if" statement. This pseudocode tries to explain what I'm trying to accomplish: if identity = id1 then Remove_Headers='User-Agent: ,Message-ID: '; else if identity = id2 then Remove_Headers='User-Agent: ,Content-Transfer-Encoding: '; else Remove_Headers='User-Agent: ,Mime-Version: '; To help you help me, I'll post the exact code I'm using, but at the risk of confusing things (because the code is a few hundred lines long). Essentially, all I'm trying to do is set the headers based on the identity. Nothing more fancy than that. I'm asking for syntax help because everything I try, by trial and error, has caused an error, simply because I don't know how to redefine the RemoveHeader variable syntactically.
Technical Details
Message-ID:
<o491jh$7jr$1@gioia.aioe.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <o491jh$7jr$1@gioia.aioe.org> Subject: Request help with 40tude dialog program syntax Date: Sat, 31 Dec 2016 20:40:28 +0100 From: Stijn De Jong <stijndekoning@nlnet.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers,alt.windows7.general Organization: Aioe.org NNTP Server Lines: 27 NNTP-Posting-Host: L2rGmi1oKYWfLo4MQZsu9Q.user.gioia.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Body-CRC: 829429245 X-Received-Bytes: 1880