home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
sqpv104.zip
/
sqprv.doc
< prev
next >
Wrap
Text File
|
1995-11-10
|
11KB
|
420 lines
******************************************************************************
* *
* *
* **** ***** ****** ****** ** ** *
* ** ** ** ** ** ** ** ** ** ** *
* ** ** ** ** ** ** ** ** ** *
* ** ** ** ***** ***** ** ** *
* ** ** ** ** ** ** ** ** *
* ** ** ** *** ** ** ** ** ** *
* **** ***** **** **** ** *** *
* ** *
* *
* A local echomail scanner for Squish<tm> *
* *
* *
******************************************************************************
* *
* (C) Copyright 1992-1995 Alberto Pasquale *
* *
* A L L R I G H T S R E S E R V E D *
* *
******************************************************************************
* *
* SqPrv is NOT free-software, it is distributed under the ShareWare *
* concept ! If you regularly use it, you should register. *
* See REGISTER.DOC for more details on how to register your copy. *
* *
******************************************************************************
* *
* How to contact the author: Alberto Pasquale *
* Viale Verdi 106 *
* 41100 Modena *
* Italy *
* *
* 2:332/504@fidonet +39-59-246112 ISDNC V34+ VFC V32T H16 24h *
* 2:332/524@fidonet +39-59-246113 ISDNC V34 VFC V32T H16 FAX 24h *
* *
******************************************************************************
SQuish PRiVate echomail scanner ver. 1.04
LICENSE
See License.Doc.
Main characteristics:
- To be used with Squish<tm> mail processor by Scott J. Dudley.
- Especially easy to configure in combination with NmFwd by
the same author (Alberto Pasquale).
- Allows correct distribution of local private or public&private
areas to points.
- Allows Squish's one-pass processing.
- Minimum configuration effort required.
- Full 3D and 4D support.
- Full *.MSG and Squish type areas support through MSGAPI
by Scott J. Dudley.
* This program uses the MsgAPI code by Scott J. Dudley.
* Squish is a trademark of Lanius Corporation.
Page 1
OVERALL OPERATION
SqPrv is a special kind of echomail scanner that exports
messages to your OUTBOUND.SQ.
Public messages are forwarded to all the linked systems,
while Private ones are only forwarded to the addressee's
point (if any match occurs with the "Remap" statements of
NmFwd.cfg or SqPrv.cfg).
You can specify a list of systems that must receive all
the messages, even if they are private (typically useful
for the SysOp's and/or CoSysOp's point or for sharing the
area with another similarly equipped BBS).
If you are currently using Squish in a multi-pass environment,
then you can invoke SqPrv after Toss and before Scan/Pack.
If you are using Squish in a one-pass environment, then you
must use the SqRem/SqUnRem programs too.
Since you want Squish NOT to scan private areas while
tossing them, you need to call SqRem _before_ Squish, in
order to comment private areas so that they are not
recognized and the tossed messages go to your BAD_MSGS (which
must be in Squish format).
Then you can use SqUnRem to restore the commented areas and
invoke "squish in" to do a Toss from the BAD_MSGS. Now you can
call SqPrv and "Squish squash" to pack the private-area
messages that SqPrv has just exported to your outbound.SQ. See
"Installation" and the sample SqPriv.Btm file for examples.
Page 2
INSTALLATION
1) Make sure your "BadArea" in Squish.Cfg is in Squish format,
otherwise the public messages coming from a 4D point will be
exported to him too.
2) Enable the "TossBadMsgs" option in squish.cfg.
3) Make sure you are not using the "Include" feature of Squish,
to divide its config file into multiple ones.
You need a unique Squish configuration file before
installing SqPrv (at least, all the info needed by SqPrv
must be in one file only).
4) Edit SqPrv.cfg and choose your exes.
OS/2 : Make sure you have MSGAPI32.DLL in your libpath.
DOS 32: Make sure you have the DOS4GW.EXE dos extender in
your path.
5) Always remember that SqPrv is an echomail Scanner that
selectively exports messages to the temporary Outbound.Sq.
5a) Multi-Pass environment:
Edit your mail processing batch file in order to call SqPrv
after "Squish in" and before "Squish out".
Example:
...
Squish in
NmFwd
SqPrv
Squish out squash
...
Page 3
5b) One-Pass environment:
You must separate Toss and Scan for the private-echomail
areas.
Edit your mail processing batch file in order to follow
the guideline given by the sample SqPriv.Btm (which you can
rename to .CMD (OS/2) or .BAT (DOS).
Example:
...
SqRem
Squish in out squash -o
SqUnRem
Squish in
NmFwd
SqPrv
Squish out squash
...
The last "Squish out squash" could be "Squish squash", but
locally entered messages in areas with no new tossed
messages would not be scanned (since "Squish in out
squash" only scans the areas it has just tossed to).
If you use different schedules for netmail and echomail,
you have to add some more lines to your batch:
Example:
...
SqRem
Squish in out squash -sEpack -o
SqUnRem
Squish in
Sqprv
Squish out squash -sEpack -o
NmFwd
squish squash -spack
...
Where pack is the netmail schedule and Epack the echomail
one.
Page 4
6) Private area selection.
SqPrv scans all the areas in the Squish configuration file
that have their "Echoarea" definition preceded by a
";SqPrv [<node> ...]" line. The optional list of nodes
specifies which systems, if linked, must receive all the
messages whether they are public or private.
Example from Squish config file:
...
;SqPrv 2:332/504.1 .2
EchoArea GAMELOC d:\msg\gameloc -$d30 2:332/504.1 .3 .4
EchoArea CLOCAL d:\msg\clocal -$d15 2:332/504.1 .2 .3
;SqPrv 2:332/504.1 .2
EchoArea LOCAL d:\msg\local 2:332/504.1 .2 .3 .4
...
Area GAMELOC is scanned by SqPrv and .1 receives all the
messages whether they are public or not.
Area CLOCAL is not scanned by SqPrv.
Area LOCAL is scanned by SqPrv and points 1 and 2 receive
all public and private messages.
Page 5
Command line switches
-c<cfgfile> Cfg file override
Example: SqPrv -cc:\max\SqPrv.cfg
SqRem -cc:\max\SqPrv.cfg
SqUnRem -cc:\max\SqPrv.cfg
Errorlevels
SqPrv:
1 - Invalid parameter on command line or no config file
2 - Cannot open squish config file
253 - Cannot initialize MSGAPI
254 - Cannot open logfile
255 - Out of memory
SqRem/SqUnRem:
1 - Invalid parameter on command line or no config file
2 - Cannot open or write to squishcfg
3 - Cannot rename tmp file to squish.cfg: you can find
the temporary squish config file with the ".$$$"
extension.
254 - Cannot open logfile
255 - Out of memory
CONFIGURATION FILE
SqPrv requires a configuration file (defaults to SqPrv.Cfg).
See the sample file included in the archive for more details.
Page 6