
/* History:
**   1.543 Enhancement   1999/Apr
**         Changed setup.exe and dialip.exe to handle uninstall better.  Uninstall
**         only 1 entry and not the registration.  I made it undo the reg. as well
**         so you could back to it if you need to.
**
**   1.542 Enhancement   1999/Apr
**         Load from file blew out on blank lines in *.did.  I made it skip them.
**         Maybe user manually changed it and put it in.
**
**   1.541 Fix   1999/Apr
**         dialipex.did was bad and blew out.  Put a fix one in.
**
**   1.54 Enhancements & Fixes   1998/Dec
**         It has been so long that I don't remember all the changes.
**         Changed interface to handle multiple pop id.s faster.
**         Changed settings file format.  This is a major change for some settings
**         and it will hopefully read your old settings but to be safe I would backup
**         your x:\mptn\etc\*.did settings files before saving.
**         Encrypted things like passwords.
**
**   1.53 Fixes & Enhancements   1998/Jul/03
**       On NEW users of dialip 'loading from ini' would not work.  I fixed this.
**       Also if you just save settings to a -File and did not have an Ini entry it would not
**       load the -File settings.  I fixed this.
**       Added an example setup: dialipex -File
**       Updated setup.exe
**       Added a 'Start Before Connect' option to start a program before connecting.
**
**   1.52b Enhancements    1998/Apr/11
**       Moved 'Action' column on 'Email server' window to make it easier to use.
**       Also made 'Hang up Force' to work when you set the flag after it starts and
**       then tell it to dial again.
**
**   1.52 Enhancements    1998/Mar/27
**       -hu	
**               It will not hang you up if you were already connected and dialip gets run and told to hang up.  This is for when you are surfing and it gets started again to check email, etc...
**       
**       -not	notify tells it to pop up a notify window AND play the notify.wav sound if it finds email.
**       
**              Added:
**       -huf	Same as -hu except it forces a hang up when it is done even if you were 'Already connected' before this call of dialip.
**       
**       -notv	notify visually tells it to pop up a notify window if it finds email.
**       
**       -nota	notify audibly tells it to play the notify.wav sound if it finds email.
**       
**       Added a status line to the 'Email at Servers' window so you could tell 
**       what it is doing.
**       Added separate notify (*.wav) file path to each pop id so you could play
**       a different sound for each id that receives email.  This is so if you and your wife
**       or whoever have different id.s and it sounds off, you don't have to go see who
**       it is for.
**       Hopefully fixed -noshow.  'Email at Servers' was still popping up for me.
**
**   1.51 Enhancement    1998/Mar/20
**       Added ability to save and load settings from a file instead of just from
**       the ini file.  This is a lot faster.  For this added a new argument 'idi'.
**       -idi reads from the ini file.  -id CHANGED to now read from the ascii file.
**
**   1.50b6 Tweak    1998/Feb/2x
**       Insert mozilla status line.  May or may not really matter.
**
**   1.50b5 Tweak/Fix    1998/Feb/19
**       Checked that Netscape/Mozilla email will coexists between win 3.1 version 4.0x
**       and OS/2 version 2.02.  Only difference is OS/2 uses 'outbox' while win 3.1 uses
**       'unsent'.  Dialip will send queued email from both.  You can even make both
**       versions point to the same directory to store the mail files.
**   1.50b4 Tweak    1998/Feb/19
**       Tweak for handling email without a 'From'.
**
**   1.50b3 Tweak/Fix    1998/Feb/18
**       Compuserves new pop servers are finicky about an extra space and blew
**       out getting/checking email.  I fixed this.  Maybe others were finicky too and
**       this will fix them also.
**       It seems like you can run Netscape for windows 3.1 in winos2 (I used version 4.x)
**       after installing compuserve's virtual key (16 bit win 3.1) in winos2.  You 
**       'Activate' your pop server account and after that it looks like you can use
**       your regular OS/2 software like dialip with their pop servers without having 
**       to use the virtual key all the time.
**
**   1.50b2 Fix    1998/Feb/15
**       Fixed 'Del Queued' emails for Netscape/Mozilla
**
**   1.50b Fixes    1998/Feb/14
**       Major fixes for Netscape/Mozilla email client.  Deferred email now gets sent
**       properly.  If you had 9 deferred, 9 get sent as they should.
**       I also noticed some email was showing up in the inbox list but you could
**       not read it.  I tweaked that some more to make it more failsafe.
**       Also noticed mail indexes were not saving correctly for multiple pop id.s.
**       I fixed this.
**       Also tried fixing so that sending is done serially so as not to overlap each other.
**
**   1.50 Upgrade    1998/Feb/07
**  Added: 
**       -clf and -dlf and menu options to make it easy to create or delete the
**       dialip.lok lock file.
**       Did some internal changing.  Hopefully it will not cause problems.
**       Also changed reading routine in a few spots.  I hope it will catch
**       those odd times when dialip gets hung up reading email.  My guess is it was
**       because the server timed out or had some other error that I was not
**       looking for.  So I put in an if statement to look for an error.  Hopefully
**       it will not slow downloading too much.  I tried once using 'Only Get Mail'
**       button and found a 440k file went from 169 seconds download to 158 seconds.
**       Only one test though as compared to dialip 1.49h (before the change).
**       Added action buttons per user to 'Email at Server' window also.
**
**   1.49h Upgrade    1997/12/30
**  Added: 
**        'Send Mail' to 'Mail' menu.  This sends queued mail for ALL pop id.s
**        'Delete Queued Mail' now works with your email client to delete queued
**            email from your client software package.
**
**        More integration with email client software packages.
**        For example, send mail should send any queued email from say your 'PM Mail'
**        outbox if that is your email client software.  It did not do this before.
**
**        POP ID.s window:
**        ----------------
**        
**        BUTTONS:  These buttons do these functions immediately for the pop id you are at.
**                        It makes it easy to just work with one persons mail.
**            SEND - sends email for this id.
**            CHECK - check email for this id.
**            GET & DEL - gets and deletes email for this id.
**            ONLY GET - only gets email for this id.
**            ONLY DEL - only deletes email for this id.
**            DEL QUEUED - deletes queued (to send) email for this id.
**      
**       * Error *
**       I have noticed that the sendmail is not working properly for Netscape.
**       It is sending all unsent msg.s to the first person that an unsent msg
**       went to as one combined letter!
**       Have to fix this.
**       At some rev. there might have been I problem with receiving mail into
**       Netscape's inbox too, but this I know works now.
**
**       A Change
**       If you choose 'Netscape/Mozilla' to integrate as your email client then
**       instead of putting 'x:\netscape\mail' in the MAIL STORE DIRECTORY field
**       on the pop id page, you put it in the EMAIL CLIENT BASE DIRECTORY field
**       on the mail page.
**
**   1.49g Upgrade    1997/10/24
**         Added 2 more command-line args: -sac (Start After Connection) &
**         -sad (Start After Disconnect).  These allow you to set these fields in the
**         Dialip 'Starts' window from the command line.  -SAC allows you to start up
**         programs like email or netscape while starting dialip to make your ISP 
**         connection first.  Basically like linkup.exe does.
**   1.4f   Fix    1997/04/30
**         1.4e Blows out after hitting 'Build Connection String'
**         when creating a new id because you did not 'Load Settings'
**         SInce I was not creating new id.s I did not notice it.
**         Tried to make dates appear blank in notify window if they
**         Don't exist.
**         Added 'Program to run on each email' to pop id window.
**         Look in modem init strings.  If already has a \\ then do not
**         convert, else convert \ to \\ to help user.
**         Let Forward To field scroll.
**         For -sm option now use sendmail -q instead of mailq.exe
**         I think mailq.exe was forcing all mail to go to ISP mail
**         server whereas sendmail -q will route mail on local lan
**         first if applicable.
**         Included example rexx programs for starting dialip and
**         for showing how to use 'Program to run on each email'.
**
**   1.49d Fixes/Upgrade    1997/09/30
**         Fix for notify window.  It was not popping up.
**         Fix for some times blowing out doing get mail.
**         Added generic PAP option.  Extra Var.s 1 & 2 are login name and password.
**   1.49c Fixes/Upgrade    1997/09/23
**         On server window all id.s displayed on page 1 instead of their own.
**         Fixed blow out on scroll left/right in email servers windows.
**         Added 'Keep Connection Up' functionality to reconnect if connection dies.
**             Can start with -kcu or manually.
**   1.49  Beta:  Big upgrade.    1997/09
** 
**   1.4a   Fix    1997/03/23
**         1.4 blows out after retrieving mail.
** 
**   1.4   Major Enhancements!    1997/02/27 
**                
**   1.3   Major Enhancements!
** 1996/12 Added: Higher priority to connection so it will work    
**         better (I was starting to not connect at night 
**         presumably when they were busier),
**         Do Not Hang Up If check for and find Mail (this
**         is so you can normally use the -hu flag so it
**         will normally hangup, unless it finds mail, 
**         then it will stay connected),
**         Manual mode connection, Inactivity Timeout,
**         MRU size, Flow Control flag.
**         Fixed: 1.2 might have hung up if you tried to start a 
**         2nd one when another was already connected.
**         Does not tie up program while dialing.  You can
**         tell it to hang up or exit if you change your mind.
**   1.2   Window list now tells what dialip is doing when it is 
**         not showing.
**         Can autostart a program upon connection.
**         Updated get mail to use and index and name new mail:
**         mail_path\emINDEX.msg
**   1.1   Major Enhancements!
**         New code to allow user to program their own ppp
**         connection string!
**         Added variables for use in connection string.
**         Fixed dumb bug of not allowing typing into ID field.
**         Also added predefined templates for building connect 
**         strings to attach to compuserve (ppp) and Spry.
**         Added new command line args -noshow and -ex
**         Stopped sharing password with IBM software.
**   1.0   Very first release
*/
 
