home *** CD-ROM | disk | FTP | other *** search
- ;**********************************************************************
- ; RequestManager definitions
- ; for use with ITrack by Andreas Klein, 2:246/47
- ;**********************************************************************
- ;
- ; Possible names for the request manager
- ;
- Data Name ReqMgr
- ReqMgr
- RequestMgr
- FreqMgr
- ReqFix
- RequestFix
- FreqFix
- ITRACK
- #END# Data
- ;
- ; Requestmanager Fileattaches waiting for arriving file
- ;
- FidoArea %FDALL%\RESPONSE workmail system
- ;
- ; Who should be notified of the request?
- ;
- Data Addressname InfoReq
- 2:246/55 Frank Prade
- #END# Data
- ;
- ;**********************************************************************
- ; REQUESTMGR
- ; Scan inbound mails to the defined requestmanager aliases and
- ; then first scans the local filebase for the file. If found,
- ; an attach will be created and sent back to the requester.
- ; if not found, a request to the specified node will be created
- ; Then, on every run the inbound area as well as the local file-
- ; base will be scanned and the file will be sent to the sender
- ; of the request
- ; For scanning the created fileattaches in the workmail directo-
- ; ry use a call like 'ITRACK CHECK_RESPONSES' to activate the
- ; scanning function
- ; ------------------------------------------------------------------
- ; Templates used: ReqLocal, NoReqMgr, Bad_Req, InfoFReq
- ; Datablocks : ReqMgr, FileAttPwd, CrashReq, FileBase,
- ; FileAlias, Inbound, InfoReq
- ; ------------------------------------------------------------------
- ;
- ; Format of the request-message used in this function:
- ;
- ; ===========================================================================
- ; From: %FROMNAME% %FROM%
- ; To : RequestMgr %SYSTEM%
- ; Subj: <Your Password>
- ; ---------------------------------------------------------------------------
- ; <(A) File to be requested> <zu requestendes File>
- ; <(B) Address to request from> <Request-Adresse>
- ; <(C) optional flags for the request> <zusaetzliche Flags>
- ;
- ; ---<Tearline>
- ; ---------------------------------------------------------------------------
- ;
- ; (A) needs to be on or more correct | (A) ist ein oder mehrere korrekte
- ; file names for DOS systems | Filename(n) fuer DOS-Systeme
- ; (B) needs to be a correct and complete | (B) ist eine korrekte und voll-
- ; fido sytle address | staendige Adresse im Fido Format
- ; (C) can be one of the following: CRASH,| (C) ist eines der folgenden Flags:
- ; IMM. | CRASH, IMM.
- ; ===========================================================================
- ;
- Block RequestMgr
- SelectTo System
- SelectTo ReqMgr
- SelectFrom FileAttPw
- ChangeSubject %LINE[1]%
- ChangeAttr ATTRIBUTE %Line[3]%
- SelectFrom !CrashReq
- SetAttribute @Attribute !CRASH !IMM
- #END# SelectFrom
- ;
- CopyGroup InfoReq
- SetAttribute @Attribute !CRASH !IMM
- AddHeader InfoFreq
- #END# CopyGroup
- ;
- FAttach 10 FileBase Inbound FileAlias
- CreateReturn ReqLocal
- SetAttribute @Attribute !CRASH !IMM
- ChangeSubject %%OLDSUBJECT%%
- #END# CreateReturn
- Kill
- #END# FAttach
- CreateMail Netmail ADDRESS %Line[2]%
- SetAttribute @Attribute REQUEST DIR
- #ORIG# CreateMail
- Move WorkMail
- #END# CreateMail
- AddHeader Bad_Req
- #ELSE# SelectFrom
- CreateReturn NoReqMgr
- #END# CreateReturn
- Kill
- #END# SelectFrom
- #END# SelectTo
- #END# SelectTo
- #END# Block
-
- ;**********************************************************************
- ; CHECK_RESPONSES:
- ; Checks the waiting request mangager requests whether the file
- ; is already on the system
- ; Warning:
- ; This block is never called during normal runs, it has to be
- ; called via commandline, f.e. 'Itrack Check_Responses'
- ; ------------------------------------------------------------------
- ; Templates used: ReqFound
- ; Datablocks : WorkMail, Inbound, FileBase, FileAlias,
- ; NetMail, WorkMail
- ; ------------------------------------------------------------------
- ;
- Block Check_Responses
- Scan WorkMail
- FAttach Inbound FileBase FileAlias
- CreateReturn ReqFound
- ChangeSubject %%OLDSUBJECT%%
- Move Netmail
- #END# CreateReturn
- Kill
- ; %SEMAP_M% Semaphor-Directory of FrontDoor (FD 2.02 = %FD%)
- Touch %FLAGS%\FDRESCAN.NOW
- #END# FAttach
- #END# Scan
- #END# Block
- ;
-
-