To do:
* Different fetch intervals for different users
* Look at ESMTP 8bit MIME support
* Last line in choices file is ignored if not LF terminated (MessageTrans
  problem?)
* In some situations (particularly if POPstar runs for long periods of time,
  upwards of 24 hours), the wimpslot starts growing and reaches ridiculous
  sizes (2MB upwards). This isn't a memory leak in the traditional sense,
  because walking the memory heap shows only 12K is allocated, with 1.8MB
  sitting in blocks that have been freed. Seems to be more pronounced if an
  error occurs or a large email is fetched? Anyone got any details on how the
  shared C library allocates blocks?
* More command line options (eg. users to fetch)
* Force status window to open in same place? "Save position" option?
* Option to always snap status window to top right of screen

		POPstar 2.06-ds.5 released on 2005-06-20
2005-06-20 ds	Enlarged the SMTP send address buffer to 256 bytes.
		Apparently, addresses > 127 bytes long do exist...

		POPstar 2.06-ds.4 released on 2005-06-04
2005-06-04 ds	Enlarged various buffers to avoid buffer overflow problems
		with long filenames and command sending.
		Report if a text or work file in the outgoing queue can't be
		deleted.

		POPstar 2.06-ds.3 released on 2005-02-07
2005-02-07 ds	Added option "OversizeBell" (boolean).

2004-10-16 ds	Users file: tidied up parsing and error reporting, and fix
		line counting and long line handling.

		POPstar 2.06-ds.2 released on 2004-09-20
2004-09-20 ds	Added per-user control of APOP authentication.

		POPstar 2.06-ds released on 2004-06-08
2004-06-08 ds	Sanitised the SMTP authentication: parameters are now always
		taken from the options file. Also, a potential buffer
		overflow which may occur while reading that file has been
		fixed.
		Documentation update.
2004-01-29 ds	Fixed "#! rmail" writing (for mail >= 10^6 bytes long).
		If anybody wants to send a message > 95MB, let me know ;-)
2003-09-16 ds	Don't bounce or dequeue mail on an SMTP 4xx response;
		instead, leave it enqueued for a later send attempt.
2003-06-29 ds	Now supports authenticated POP3.
2003-06-25 ds	Now supports the POP3 UIDL command. IDs are logged, and
		messages which have already been fetched are not refetched.

		POPstar 2.05 released 08/02/03
02/02/03	Updated my email address and website everywhere - I
		now use heenan.me.uk instead of ping.demon.co.uk.
07/12/02	SMTP.username/password may now be system variables in the
		same way as SMTP is.
		Added 32 bit support (mainly changing to using the new
		TCPIPLibs).
07/07/02	Now supports SMTP AUTH (PLAIN and LOGIN types), thanks
		to help from various people including James MacDonald.
05/01/02	Now exits properly if you confirm you want to shutdown
		the desktop whilst a fetch is in progress.
19/05/01	POPstar's menu can now be opened from the status window
15/04/01	Changed TransferEnd back to previous behaviour, added
		new 'FetchEnd' and 'SendEnd' commands, called with the
		numbers of messages as the first parameters.
		Fixed bug with TransferEnd not getting called after a fetch
		of one user using the iconbar menu.


		POPstar 2.03 released 07/04/01
01/04/01	Added AutoStatus:3 option (see example choices file)
		Added parameters to say how many messages have been
		  sent / received to the transfer end command, see
		  the StrongHelp manual.
		When bouncing a message, try postmaster if we can't
		  write to the message file for the user in question.
		Bounces messages now indicate address that caused the
		  problem.
		If Alt is held down when POPstar is loaded, it will
		  ignore any autoquit settings.
		Fixed a socket leak if you hit 'Stop' whilst POPstar
		  was trying to connect to an SMTP server.
31/03/01	Fixed problems that caused sending not to work if the
		  mail queue was accessed over LanMan98.
		POPstar now makes sure all the queue directories exist
		  when it starts up.
11/03/01	Changed to use DNS code from !WimpClib, with the effect
		  that the resolver present is now detected automatically,
		  and multitasking resolving done if possible.
		Added a patch from Darren Salt to detect open relays.
		  (compile time option, disabled by default.)
25/02/01	Fixed a bad interaction between the oversize code skipping
		  messages, and the max bytes per connecion limit.
		Fixed crashes that happened when user names had a % in them.
18/03/00	Added socket timeouts (see StrongHelp manual)
		Fixed problems with error boxes delaying exit.
08/02/00	Fixed incorrect year in bounce messages
08/01/00	Changed default for 'SendFirst' to Y.
		Changed default for maxpipe size to 8.
		Added line number in users file to errors about corrupt
		  line.


		POPstar 2.02a released 07/11/99
07/11/99	Fixed two problems with the templates file; the
		  'small' status window not working, and the
		  window being allowed off screen.

		POPstar 2.02 released 17/10/99
17/10/99	Added some debugging to bounce routine as it seems
		  to be causing some people problems.
10/10/99	Fixed display of values over 10M in status window
05/10/99	Will now work without SocketWatch (comment out in
		  !Run file if you want to do this)
		Fixed parsing of SMTP line in config file (spaces
		  weren't stripped)
		Changed default oversize action to 'skip'
26/09/99	Fix for two fetches happening if online state
		  changed during a manual fetch.
		Added option to disable offsets after #! rmail
		  separators ("RmailNum:N")
15/08/99	Changed icon bar behaviour to match NewsHound
		  (select opens status, adjust causes fetch+send)
		Improved messages sent to log lots
28/05/99	Ignore errors generated after a user requested
		  stop.
		Now copes if the last line of the user line does
		 not have a newline at the end of it.


		POPstar 2.0112 released 09/04/98
09/04/99	Fixed size of author bar in info window
		Fixed bug with extra User-Agent headers getting added
		  in outgoing emails.

		POPstar 2.0111 released 04/04/98
15/01/99	Zero size files are no longer left in the mail directory
		  if no messages are downloaded when a user has 'LAST'
		  enabled.
		Reset total bytes downloaded when the connection to the
		  server is re-established.
31/01/99	Newsbase transport V2.02 - supports Messenger Pro queue
		  editing.
07/02/99	Fixed part downloaded message not getting truncated if an
		 error occurred processing pipelined commands at the end of
		 a fetch.
		Fix for internally generated bounce messages not being in
		 rmail format.
04/04/99	Added option so connect errors can be suppressed
		  ('ReportConnectFailure').
		Now puts POP3 server name in the status window title bar.
		Includes the reason the server gave for rejecting a login
		  in the error report.
		Autoquit is deferred until any open error boxes are
		  closed.
		Fixed a problem causing the stop button to now work
		  correctly during the DNS lookup / connection phases.
		Now add/appends to a User-Agent: header in outgoing email.

		POPstar 2.0110 released 04/01/98
29/11/98	Fixed bug that would cause a crash with long user names
		  or passwords.
15/12/98	Fixed problem where NULLs in a message would cause POPstar
		  to fail to fetch a message.
		Stopped insertion of extra line breaks when the line length
		  exceeded the size of our internal buffer.
25/12/98	Added 'Skip' button to the oversize window.
26/12/98	Added options to limit the amount of data fetched in one
		  connection to the server. (MaxMessagesPerConnection
		  and MaxSizePerConnection)
		Fixed bug where POPstar would make the user cancel each
		  user separately if the desktop was shutdown whilst a
		  fetch was in progress.
		SMTP envelope from address may be over ridden at the time
		 the message is sent to the server, using
		 <POPstar$EnvelopeFrom>.
04/01/99	Fixed problems with multitasking stopping whilst sending
		 large emails.
		Added 'TransferEnd' config file tag, allows a star
		 command to be run when a transfer finished. See manual.

		POPstar 2.019 released 08/11/98
06/09/98	Fixed possible bug where a fetch would happen twice
		  when periodic fetches were disabled.
07/09/98	Added -quit and -noicon command line parameters
10/09/98	Added support for SocketWatch module
27/09/98	Log now also shows number of messages fetched
25/10/98	Online column in users file can now be a system variable
		  enclosed in '<' '>'s.
		Iconbar icon is now not filled and created the right width
		  for whatever sprite is in use.
		Fixed bug that made POPstar not wait for the response to
		  a POP-3 QUIT command sometimes.
01/11/98	Spaces are no longer allowed as separators in the users
		  file. This means:
		  * User names and passwords with spaces in them now work
*******		  * You must change any existing users file so it has tabs
		    instead of spaces.
07/11/98	Added 'SendQuitOnError' option, defaults to Y. Setting to
		  N will stop POPstar sending a QUIT command to the server
		  if an error occurs during a mail fetch.
		If an non-fatal error occurs whilst trying to send a message,
		other messages in the queue are now correctly send.
08/11/98	If one recipient of a multiple recipient message fails,
		  a bounce report is now sent to the user.
		If the work file has no recipients, it is now correctly
		  dequeued.
		Added details of the POPstar mailing lists to the help file,
		  in the support section.

		POPstar 2.018 released 27/08/98
19/08/98	Corrected typo in transport 'getgw' command.
24/08/98	Fixed POPstar taking too many wimp polls when
		  'CheckOnlineVar' was in use.
27/08/98	Different ports may now be used by postfixing hostnames
		  with ':port-num' - eg. 'mail.isp.net:1100'

16/08/98	POPstar 2.017
		Fixed problem where a scheduled send didn't always happen
		  straight away.
		New choices file option 'QuitWhenGoOffline', Y or N.
		  If Y, POPstar will quit when it notices you go offline.
17/08/98	New choices file option 'CheckOnlineVar', value is a
		  number in seconds; causes POPstar to check the 'Variable:'
		  with a frequency of that many seconds.

03/08/98	POPstar 2.016 released.
		Experimentally uses username@remotehost instead
		of localuser in the 'Fetch' menu.
		Added 'Help...' option to main menu.

02/08/98	POPstar 2.015 released.
		SMTP server can now be a system variable
		Now checks running tasks to avoid multiple running
		copies, rather than using POPstar$Running.

02/08/98	POPstar 2.014 released.
		Fixed stop/quit handler so it closes down properly
		whilst in DNS lookup or connect phase.
		The voyager messages now need to be specifically
		enabled - there are two command line options:
		  -voyager  : lights mail fetcher LED
		  -flashled : makes mail fetcher LED flash when new
		              mail is downloaded.

31/07/98	POPstar 2.013 released.
		Added AcornURI messages to info box website / email
		buttons.
		Fixed 'Stop' button so it works during a DNS lookup.

27/07/98	POPstar 2.012 released
		Addition of messages to 'Light LEDs' for Argonet users.

25/07/98	POPstar 2.01 released.
		Fixes bug parsing 'MaxSize' from the config file.

18/07/98	POPstar 2.00 released

Changes to POPstar between V1.30 and 2.00
=========================================

POPstar now no longer requires the toolbox modules.
(When upgrading from previous versions, !POPstar.Res can be deleted)

Added !InstTrans program to ease installation of NewsBase transport.

Added support for:

* Using 'LAST' command to POP3 server to skip already fetched
  messages (useful when POPstar is set not to delete messages from
  the server. NB: Does not work with Demon Internet POP3 servers.)

* Riscnet wimp messages
  (This won't mean anything to most people *yet*)
  If the RiscNet module is present, POPstar will disable all
  autofetch/send/quit and wait for a Riscnet_Mail_RequestFetch or
  Riscnet_Mail_SendNew. It will send Riscnet_Mail_Finish at the
  end of a mail fetch, and RiscNet_Offline will cause it to quit.

* Users that are not included in automatic fetches, but still listed
  in the users menu.

* Users that are auto-fetched even when 'offline', and the option to
  send email even when 'offline'.
  (Useful for users on a local ethernet not permanently connected
  to the internet)

Added 'detect' command to NewsBase transport, so Newsbase now warns
the user if POPstar has not been seen by the filer.

Mail file format has changed to #rmail (it was Ctrl-A before).

Added size limit (MaxSize: in config file, 8th column in users file - see
example Users file.) If an oversize message is found, POPstar offers you the
choice of delete it, downloading it, or downloading the message header with a
section appended showing why the message was skipped. Disabled by default,
to enable put MaxSize:200K or similar in the Choices file.

Added pipelining - improving POPstar's speed, especially over slow links
(MaxPipeSize: in config file, defaults to 0 unless anyone can persuade me all
RFC compliant & real servers will support pipelining...). Set to 15 to make
POPstar fetch faster, or 0 to disable this feature.

Several minor bug fixes.
