PenguinTag RAG(tm) Version. A small utility for adding multiple line taglines to Foozle messages. What is it? 'PenguinTag' is a small ARexx utility to add a randomly chosen tagline to the end of a Foozle or other point system message. This is the special RAG(tm) version release. Otherwise known as PTag (RAG). What is RAG(tm)? RAG(tm) stands for Random Abuse Generator, a concept invented by a number of the inmates of Aspects' Gateway mail area in response to a young gentleman called Graham Trevor. This was all a very big 'in-joke' until somebody with far more time on his hands than is good for him decided to make it real. Installing PenguinTag. To install PenguinTag RAG(tm) version, copy the file 'RAG.Rexx' into your rexx: directory, and copy 'TagFile' into your s: directory. Customising the tagfile. PTag (RAG) will look for a file that is either named in the environment variable 'tagfile', or failing that the file 'S:TagFile'. The first line of this file should contain the number of taglines in the file (this is to avoid messing around with indexes and the like, I did say it was simple). Each line following the first is a tagline, taglines can contain any valid Amiga character, the character '|' being replaced by a carriage return. The supplied tagfile contains some choice insults, feel free to add as many as you like. I personally still prefer the contents of the original example tagfile, but who am I to argue with the inventors of the RAG(tm) concept. :) Running PenguinTag RAG(tm) Version. PTag (RAG) is called by the command 'RX RAG '. PenguinTag will then load the supplied filename searching for the character string '$TAG', when it finds this it will replace it with a randomly chosen tagline. In order to have this run with Foozle you need do two things: 1. Alter your signature to contain the character sequence '$TAG'. eg. '...Alex|(a.r.p.mckay@mcs.salford.ac.uk)||$TAG' 2. Alter the editor in FzI to call a script, (eg 'execute mail:writemessage') and have the script do the following: t:foozle.tmp RX PTag t:foozle.tmp Using your favourite editor, and replacing t:foozle.tmp with the file you are using for the temporary file as defined in FzI. Non random mode. If the environment variable 'ptagcount' is set to a value then the quote coresponding to that line number in the quotefile will be used. ptagcount is incremented by one each time, and reset to zero when it reaches the limit. Nobrag mode. If the keyword 'NOBRAG' is appended to the end of the RAG calling sequence, then PTag (RAG) will not append its credits to the end of the tagline. Limitations. PTag (RAG) will truncate all messages longer than 32K to 32K, this isn't a major problem, as most mail systems don't like messages this long anyway. Also because of its simplicity PTag (RAG) will take a second or two to tag a message file, the length of time being proportional to the length of the tagfile and the randomly chosen position of the tag to use. Copyright & Legal Disclaimer. This ARexx script and its associated documentation is released as public domain, you may do with it as you wish. Because of this the usual disclaimer that I am not responsible for the actions of the script or any errors and their effects applies. Specifically neither I, nor anyone else involved with RAG(tm), accept any responsibility for any loss, damage, injury or legal action suffered by anyone using the insults in the supplied tagfile. Revison History V1.0 - First release V1.1 - Vast improvement on speed of tagline insertion. No longer has to scan the input line character by character. V1.2 - Added non-random mode. V1.3 - Minor tidying up, increased max message size to 32K instead of 32000 bytes. V1.4 - Fixed a minor bug in the insertion of carriage returns, previously inserted the carriage return one character too late. Only just spotted this 'cos all my quotes have spaces immidiately after the '|' character. V1.5 - Made random selection a little more random. V1.6 - Changed all 'exit(10)'s to 'exit(0)'s. V1.7 - Added NoBrag mode. V1.8 - Fixed problem with occasionally occuring random choice of the 0th quote. :) V1.9 - Minor tidying up using 'call's V1.10.0 - Fixed problem if there was more than 100 quotes in the tagfile. ARexx won't produce a random number above 1000 :) Changed version numbering. V1.10.0R- The special RAG(tm) version. Thanks. First of all, thanks to Chi Wai Lee, as this script was inspired by his TagArt ARexx script. Secondly thanks to Dave Gorski and all the inmates of Aspects BBS 'Gateway' for putting up with all the Red Dwarf quotes & taglines I've inflicted upon them. Specific thanks (if thats the word) to Pete Goulty for coming up with the idea of RAG(tm) and Paul Gibson for flapping around with V1.1 of this script and therefore sneakily convincing me to do the same with an actual working version of PTag. Thanks a bundle guys! :) Me. Alex McKay, 22 year old Computer Science graduate working in the network support department of Salford University. Well known sadact Red Dwarf case. Contactable at FidoNet 2:250/107.98 or InterNet a.r.p.mckay@ais.salford.ac.uk Postscript. Why 'Penguin'Tag you may well be wondering. Well, 2:250/107.98 is called "Alex's Penguin" for reasons that are now lost in the mists of history, so why not? :)