| Preprocessor run file for !FetchMail
|
| This is slightly different to !Run. It is designed to be called by the
| FetchMail prodder VIX. It will backup your email file and try to run the
| preprocessor. It expects Voyager to be running and you to have just
| completed a mail fetch.
|
%Set FetchMail$Dir <Obey$Dir>
|
|
| This is a precaution - for RiscOS2 users...
%RMEnsure SharedCLibrary 0.00 RMLoad System:Modules.CLib
%RMEnsure SharedCLibrary 3.75 Error FetchMail needs SharedCLibrary 3.75 or later
|
|
| The !Run file does set up the Posty user path, but the preprocessor
| expects to find the right paths (ie, Voyager running - invoked after
| mail download).
%If "<PostyUser$Dir>" = "" Then Set PostyUser$Dir <VTiInternet$Dir>.Apps.Mail.!PostyUser
%If "<PostyUser$Dir>" = "" Then Error Cannot resolve |<PostyUser$Dir|>...
| %If "<PostyUser$Dir>" = "" Then Error Cannot resolve |<PostyUser$Dir|>, are you running !FetchMail without !Voyager?
|
|
| Backup mail file
| Not within program, so you can alter it if you need...
|%Copy <PMailIn$File> <PMailIn$File>.^._In_Email ~CF~N~PQ~V
|
|
|
| **********************************************************************
| DO NOT UNCOMMENT THE REMAINING LINES unless you have a version of the
| 'preprocess' program.
| 
| If you are stuck without preprocessing...
|   1. Copy the old templates into the main directory (or combine the two
|      in Resources).
|   2. Copy Sprites from the Resources directory into the main directory.
|   3. Copy in the old '!RunImage', only RENAME IT FIRST to 'ppc'.
|   4. Change the '%Run <Fetch...' line to say:
|        %Run <FetchMail$Dir>.ppc -preprocess
|
|
| Run application
| %WimpSlot -min 128K -max 128K
%WimpSlot -min 256K -max 256K
| %Run <FetchMail$Dir>.preprocess
%Run <FetchMail$Dir>.ppc
