MAILOPSOperationsforLookingatandScavengingMailFolders/FilesDocumentation:[Phylum]MAILOPS.Tedit/pressProgram:[Phylum]MAILOPS.dcomRevised:Aug17,1984byJonLWhiteMAILSCAVENGE(FOLDERERRORMSGSTREAMTEMPHOST)will"scavenge"themailfolderbyupdatingthelengthfieldsofanymessageheaderthatseemstobegarbaged,sothatLaurel/Lafite/...willbeabletoparseit.FOLDERisthefilenameofamailfolder(extensionwilldefaultto.MAIL).Itwillactuallycopythemailfilefirst,andworkonthecopy;afterfinishing,itwillaskifyouwanttoreplacetheoriginalfile,withthe"No"answermeaningtosimplystoreitasanewversion.ItprintsoutonERRORMSGSTREAMthemessagenumbersofanythathadtobecorrected,includingwhetherasimplecorrectionofthelengthwassatisfactory,orwhethertheentireheader-linehadtobereconstructed.Theinterimcopyisstoredonthesamehostasthemailfolder,butthiscanbeoverriddenwithTEMPHOST.MAILSCAVENGE.IN.PLACE(FOLDERERRORMSGSTREAM)--self-explanatory.SEEMSG(FOLDERFOLDERFILEPTRSCANFLGOUTFILE)willprintoutthemessagefromthemailfolderwhichbeginsafilepositionFOLDERFILEPTR.IfFOLDERFILEPTRisnotthepositionofthebeginningofamessage,theneitheranerroroccursor,ifSCANFLGisnon-null,ascanisbegun(firstinthe"forwards"directionfromFOLDERFILEPTR,andtheninthe"backwards"direction)tofindavalidmesagebeginning.PARSENMSGS(FOLDERFOLDERFILEPTRNSCANFLGNOERRORFLG)AssumingthatFOLDERFILEPTRandSCANFLGspecifysomemessagebeginning(asdescribedunderSEEMSGabove),itwill"move"forwardNmessagesandreturnthefilepositionforthebeginningofthatmessage.IfNisnegative,itwill"move"backwards;N=0isusefulforfindingamessagebeginning"somewherenear"agivensomerandomfileposition. b6p b6 b6 ` `&y_ q/_ ]" ]"[p|S**[r[ [!((), 5M9 B[p[B[ YSq YS WUs  WUtWU&.fWUqWU.lWU UWsUWqUWUWtUW)UW SsNStS>"&\S R#q R# Pp P O3u (W/O3pO3015 ?B`FFO3 MXC$$*,/6<@EHAJJM LX).-a/46;???LuLDLpLEHAHAL K+N9$ .82k9#;<K+uK+?K+pK+B`C7EIIK+ IC"v(W+/2k5:? III H{ w!(W+3B8L<?DIIH{ G#/!$$%).0149=V??G# Eu EpE!(W*.82k58L: DDE DsX! *-a069 EHAHADs C $(W*-a 9:>-DIIC A wX9l!$$'+2k59=V? IIA @k%%@ku@k@kp@k@k ? ? =u#M/=p=03BA= -AHAHA; 9%!').-a449u9 ?9p9AB`C7EE9 8[u 8[p8[9'*-a58L9AEE8[ 7XbC!$$$$7u7*7p7*-a57u;>-C7II7 5 w "v&&5u5 15p53B6:=V@ JJ5 4S /!' /4S 2 2 1u %'.8 7u1p18L9#@DD1 0Ku 0Kp0K0Ku0K0Kp0K '+2k:>-FF0K ..u..p.#M)./19#<B`EII. -9!$$(W/03B47u?B`FF- ,C l!'*13B9B`B`,C * /9$$*.85* ) )6 q?[~GACHA ~GACHA HELVETICA TIMESROMAN  HELVETICA~GACHA j/  Lw {ERIS}MAILOPS.TEDIT;2JONL.PA17-Aug-84 02:04:35