home *** CD-ROM | disk | FTP | other *** search
- FIXMAP -
-
- Small kludge (with full source) to take an areafix message (in the
- form of a GIGO function request), and update the mapping.cfg file
- noting the addition or deletion of the new areas.
-
- If you are not using an Areafix-type program on your fidonet
- software, this program will make no sense for you.
-
- Note, that there is no standard for forwarding requests to the usenet
- host; this is implementation-defined for each site. If you want that
- ability, you're going to hack it out yourself :-) Over here, I use
- Harvey's Robot and a 4dos batch file to generate the netmail, that
- contains the message formated as my particular host wants it.
-
- HOW IT WORKS
-
- You need to set up two additional configuration entries in your
- GATEWAY.CFG file.
-
- MAPFU area-fix@<yoursitehere> Areafix
- USER area-fix FUNCTION fixmap.exe mapping.cfg
-
- When GIGO gets a message to "Areafix", it will subsitute the email
- address given (be sure to subsitute your site address!). GIGO will
- then be able to recognize that there is a USER definition for that
- email address, and act on it.
-
- GIGO will generate FUNCTION.REQ, a simple text file. At the top of
- that text file will be two lines ("Apparently-To: ..." and
- "Apparently-From: ..."). Following those two lines, the entire email
- message is written to disk, with all headers. It will be up to the
- external program if it wants to understand any of them.
-
- FIXMAP.EXE will then run, skipping over the headers. When it comes
- to the actual message body, it scans it for additions and
- subtructions to the echos (newsgroups). This message is expected to
- be written by an areafix-type program and using the areafix-type
- style. (If you don't know what this is, then this actual program
- will mean nothing to you). FIXMAP will write the new additions at
- the top, and write the remaining mapfile out to disk. Any
- subtractions made by FIXMAP will be shown at the bottom of the file
- (most recent at the end, instead of the top), and will be commented
- out.
-
- Note that FIXMAP will ONLY modify "= newsgroupname NEWSGROUP" lines;
- if there are changes to the line, they will not be modified at
- all by fixmap.
-
- Upon the return to GIGO, GIGO will check to see if FUNCTION.REQ was
- made. This program does not make one; therefore GIGO will not send
- back a message.
-
-
- ABOUT THE SOURCE:
-
- The source code is written in Spagetti-C (tm), and is a whole
- whopping 7k big. If you take out the comments, maybe a grand total
- of 4k... It compiled fine under Borland 3.1 (16 bit) with the
- large memory model for me. I'm not using anything fancy, this
- is a quick-n-dirty program.
-
- The source should be able to provide you with a shell for other
- function requests. A more suitable program may be the LISTSERV
- program that was also written to take advantage of GIGO's function
- requests.
-
- This program and source code is Copyright 1994 by Jason Fesler. All
- rights reserved. Use of this code is granted to the Public Domain.
-
- jfesler@wmeonlin.sacbbx.com
-