PSIONWPDATAFILEêêêêêêêêêêêêêêêêêê þ":‚.ÆAr ¶3ÐÐÿÿðððLOC::A:\WDR\BJ-30-LQ.WDR%PPBTBody text ððð Рp@ à°€PHAHeading A ààðРp@ à°€PHBHeading B ððxРp@ à°€PBLBulleted list ÿÿðÐhðð Рp@ à°€NNNormal ÿÿUUUnderline ÿÿBBBold ÿÿIIItalic ÿÿEESuperscript ÿÿSSSubscript ÿÿ’EMAILMAC========Emailmac is a macro for the Macsys system, available from the Readcix/files conference on Cix. Its job is to import email addresses from the database where you hold them to Readcix.The way it works is very simple. When composing messages with Readcix, instead of having to type the email address, and looking it up or importing it from a database, you simply enter into Readcix the search clue which you would normally use in the database. On running the macro, these search clues are taken to the database and their corresponding email addresses looked up and returned to Readcix, at a speed faster than mere human typing can manage.Installation============Unzipping the .zip file should have given you:1. This file (emailmac.txt)2. The macro source code, emailmac.mcr3. The translated macro, emailmac.mco4. A tiny database file emailmac.dbfThe .mcr and .mco files belong in the \macro\mcr\ and \macro\mco\, and are installed in the normal way for Macsys. The database file needs to be put in \cix\macro\, which you will need to create on your internal drive if you don't have it there already.Setting the settings====================Before you use the macro, you need to set up the database file emailmac.dbf. The copy included is set for my own database, but obviously everyone's is different, and individual copies of Emailmac need to know where individual users keep their email addresses.The easiest way to edit the emailmac.dbf is through the Data application. It should be pretty self-explanatory. On the "Data File" line, you should put the name of the database file you want the macro to refer to for your email addresses. And on the "Field Number" line, put the number field which contains the email address itself. For example, if the database record looks something like this:Name: Neil SandsAddress: The MoonPhone Number: 999Email: nsands@cix.compulink.co.ukyou would use 4 as the value for "Field Number", because the email address field is the 4th one.You are now ready to use the macro proper.Using the macro===============When using Readcix to write an email message, just type the addressee's name or some other clue on the TO: line of the Readcix dialog, and fill in the subject and write the message as normal. Do this for as many messages as you like - the macro will treat them all in one go.When you are ready to import the email addresses, press your assigned hotkey for Emailmac. The macro will open reply.txt in the word processor, and your own data file in the database.By luck, Readcix's author David Keppler has had Readcix send all its Cix commands in capitals. This means that the beginning of a message is labelled in reply.txt by TO, and a case-sensitive search will find this, and only rarely will find red herrings. The macro highlights the search clue you put in, and goes over to the database, imports the clue and finds the first record which corresponds.Whether it finds the right record or not depends on how specific your search clue was. A dialog comes up which should let you deal with any eventuality. If the right record is found, and you want to import the email address back into the word processor, press Y. If it is not the right record and you want to continue searching for the next match, press N.If for some reason you don't want to import an address, (for example if you had put the TO characters in the middle of your text somewhere and Emailmac thought it was the beginning of a new message) press I.When Emailmac has found all the addresses, (and you will know this because it will bring the line after your last search clue over to the database) press X to finish the execution and commit the changes. Or if something has gone wrong and you want to abandon all the changes, press Q.If you never interrupt the macro except at this point, you will never be left with files hanging open untidily. Emailmac will close them all down, whether it commits changes or not.That's all there is to it. After you have run the macro, you can post reply.txt with Readcix in the normal way.The Source Code===============I have included the source code in case you want to mess about. Everyone's database is different, and it may be that you want to exploit some of the features of your own. By the same token, Emailmac cannot predict the custom settings of your own database, and some of your settings may cause problems. Some examples of where it will fail are:1. if you keep more than one email address in the same field for the same person, separated by shift-enter say, Emailmac will just find the first one and ignore the rest.2. if you have set the "Find by Label" option in the database, Emailmac will not try to unset it, and may therefore not find matches that are there.Disclaimer==========I will not be liable for anything bad that happens to you or your property as a result of your using Emailmac, in particular the consequential loss of any data.Emailmac is freeware and you are free to do what you like with it. However, be fair, and if you pass it on, in its current state or in an improved form, please tell the recipient that it's mine. Thanks.Thanks to David Griffiths for encouraging me to learn Macsys and write this little macro, and for testing it. Also to Tony Crocker for finding bugs in it!Contact=======Neil Sandsnsands@cix.compulink.co.ukPlease report any bugs or other feedback.Mae'r ffeil hon ar gael yn iaith yr nefoedd, os oes eisiau arnoch. Î BTNN BTNNBTNN¶BTNNBTNNÆBTNNBTNN BTNN BTNNBTNN/BTNNBTNN'BTNN&BTNN%BTNNBTNNþBTNNBTNNBTNNBTNNBTNNBTNNBTNNŒBTNNBTNNBTNNBTNNBTNN"BTNNBTNNaBTNNBTNN+BTNNBTNNBTNNBTNNBTNNBTNNBTNN¸BTNNBTNN”BTNNBTNNeBTNNBTNN×BTNNBTNNBTNNBTNN¶BTNNBTNNpBTNNBTNNBTNNBTNNBTNNWBTNN«BTNN•BTNNBTNN BTNN BTNNBTNN¡BTNNBTNNËBTNNBTNN›BTNNBTNNBTNNBTNNBTNN BTNNBTNN*BTNNBTNNCBTNN