Thu Feb  3 21:34:56 1994  Paul Raines  (raines@bohr)

	RELEASE v1.6 

	* tkmail (mf_incorporate): handle file "stat"ing on
	non-existant folders in several places
	(mf_dispmesg): use mf(compose-alternates) to strip
	unwanted Reply-To's with user address. This most often
	occurs when "replying" using FCCed messages

Tue Jan 25 09:29:51 1994  Paul Raines  (raines@bohr)

	RELEASE v1.6 beta 8

Mon Jan 24 19:57:27 1994  Paul Raines  (raines@bohr)

	* tkmail (mf_setupfolder): got rid of using temporary
	files in place of empty or non-existant folders. Now,
	pipeline is just closed. Several procedures changed to
	support an empty pipeline.
	Fixed several random syntax errors of sort 'set $variable'

Tue Jan 18 08:32:22 1994  Paul Raines  (raines@bohr)

	* mail.tk (mf_disphelp): added printing of help
	file button

	* bindings.tk: get rid of bind_textscroll and just
	use '$src get'.  Not sure why I didn't do this in
	the first place.
	(bind_emacstext): moved all reference to Meta into
	emacs procedure so that foriegn keyboards who require
	the Alt key for special characters can still access
	them by using the btp(use-meta) option
	(bind_emacsentry): added arguments to entry bindings
	along with word movement and kill-ring support

Tue Dec 21 09:27:33 1993  Paul E. Raines  (raines@esaw01)

	RELEASE v1.6 beta 7

	* tkmail (mf_setfoldmenus): corrected usage of depth

	* bindings.tk (bt:numkey): fixed bug in entering
	numbers into text widgets

Mon Dec 20 07:51:06 1993  Paul E. Raines  (raines@esaw01)

	RELEASE v1.6 beta 6

	* bindings.tk (bt:wrap-word): added the beginnings of an
	auto fill mode with C-x f binding.

Sat Dec 18 04:37:09 1993  Paul E. Raines  (raines@esaw01)

	* test/mtest: rewrote so it uses procedures in the
	mailcmd.tk library. Also changed it to use the 
	mf(mail-deliver) setting to deliver mail

	* compose.tk (mf_selprefix): added emacs type to
	use emacs kill-ring

Thu Dec 16 04:15:36 1993  Paul E. Raines  (raines@esaw01)

	* bindings.tk: extensive rework of key bindings to make
	emacs binding much more emacs-like with argument keys,
	kill-ring and mark-ring.  Since too many of the quick
	menu access keys conflicted with emacs key combos, I
	changed their operation from Meta key combos to hitting
	the F1 and then the letter (like Escape in emacs)

	* tkmail (mf_incorporate): removed verification of delete
	since there are just too many different messages for success
	to check for. Also, use explicit end number for delete op.

	* mailcmd2.tk: created this file to contain alternate
	commands that fake command piping with separate Mail
	calls

	* mailcmd.tk (mf_mailcmd): changed to use append instead
	of lappend 

Wed Dec 15 01:07:52 1993  Paul E. Raines  (raines@esaw01)

	* compose.tk (mf_insertmessages): current message number
	entered in as default

Tue Dec 14 00:43:21 1993  Paul E. Raines  (raines@esaw01)

	* bindings.tk (bind_motiftext): changed so that button 1
	in text doesn't clear selection

	* compose.tk (mf_alteditfinish): reworked alternate editor
	so that user without xauth-style security can still use it

	* bindings.tk (bind_emacsentry): fixed bug with 
	C-k in entry widget
	(bind_emacstext): adjust C-w and A-w bindings
	to first check for a existing X selection and
	then use the emacs mark

	* compose.tk (mf_reply): remove inclusing of CC:
	list from forwarded files since you don't want
	to re-send it to those folks

	* mailcmd.tk (mf_parseaddrlist): fixed bug where a
	a blank arguement would cause an error

	* tkmail: moved opening of initial pipe line to
	mf_setupfolder and fixed bug where it would not
	open empty or non-existant ~/mbox file

Sun Dec 12 14:24:46 1993  Paul E. Raines  (raines@esaw01)

	* tkmail (mf_incorporate): changed it to use
	file size instead of mtime for figuring if mbox was
	appended to.

Fri Dec 10 16:26:34 1993  Paul E. Raines  (raines@esaw01)

	RELEASE v1.6 beta 5

Thu Dec  9 11:41:31 1993  Paul E. Raines  (raines@esaw01)

	* compose.tk (mf_compose): hopefully fixed problem 
	where an illegal last unit error would occur in
	the compose scrollbar on creation

	* mail.tk (mf_print): will abort in for sel type if
	no X selection exists

	* tkmail (mf_incorporate): changed so that it uses the
	explicit name for system folder and mbox given by user
	instead of % and & shortcuts.
	(mf_setfoldmenus): for menus that get chopped due to too
	the mf(menu-folders-max) settings, a final entry of
	"+++ chopped +++" will be added to the menu which
	when selected will popup a file select box in that directory
	(mf_checkmail): added new setting mf(viewer-beep-empty) to
	be evaluated when mail check finds an empty mail box

Wed Dec  8 12:45:26 1993  Paul E. Raines  (raines@esaw01)

	* compose.tk (mf_sendmesg): modified so user can
	FCC to multiple files (comma separated)

	* tkmail (mf_buildfoldermenus): moved folder menu
	building to this procedure and added menu item
	to Folder menu to allow rebuilding of folder menus
	inside TkMail. Also added menu item to reread the
	alias file
	(mf_waiton): new procedure to show a watch cursor
	during lengthy operations

	* mailcmd.tk (mf_procheader): fixed bug where quotes in
	around address in From line can cause TkMail to bomb

	* tkmail (mf_incorporate): reprogrammed incorpation in
	a way that should work safely for everyone. It firsts uses
	the 's' command to save the new messages to mbox, checks
	to make sure mbox modification time changed and then
	deletes messages from system folder. Once back in mbox,
	uses 'new' command to mark new messages as new.

	* Makefile (altedit): corrected make to set the
	wish correctly in altedit.tk

Tue Dec  7 12:59:44 1993  Paul E. Raines  (raines@esaw01)

	* mail.tk (mf_print): added new %W, %S, and %D substitutions
	to the print command for contents of From, Subject, and
	Date fields

	* tkmail (mf_quit): modified so that if TkMail detects external
	modification to current folders, it asks if user wants to
	save changes
	(mf_procdelete): reworked deleting messages to act more
	sanely on aborts
	(mf_setupfolder): put in protection against opening an
	invalid mail file, since most Mail programs will clobber
	the file.

Mon Dec  6 16:28:24 1993  Paul E. Raines  (raines@esaw01)

	* utils.tk (ut_askcreate): created this procedure to handle
	verification of new file creation and new directories if needed

Mon Dec  6 00:01:12 1993    (root@moby)

	* mailcmd.tk (mf_mailcmd): added completion check to many
	commands that use Mail 's' command

	* mail.tk (mf_quickdecode): allow for multiple inclusions
	in the same message

	* tkmail: replace mf_utilwindow with new utils.tk
	procedure ut_simpletext

Fri Nov 26 05:56:13 1993  Paul E. Raines  (raines@esaw01)

	* compose.tk (mf_entryinsert): put a button after each entry field
	in the compose window to be used for special editing of that field.
	The button at FCC now brings up a file selector to quickly select
	a file.

Fri Nov 19 07:05:15 1993  Paul E. Raines  (raines@unixhub.SLAC.Stanford.EDU)

	* compose.tk (mf_compose): created mf(insert-prefix-sig) option
	for change the behavoir of placing '--' infront of signature

	* mailcmd.tk (mf_expandaliases): rewrote the mf_expandaliases
	procedure and replace mf_getaddress with mf_parseaddrlist. This
	will have better handling of alias expansion with addresses
	in rfc822 format

	* tkmail: moved several mail processing related commands to mailcmd.tk

Wed Nov 17 00:48:34 1993  Paul E. Raines  (raines@unixhub.SLAC.Stanford.EDU)

	* tkmail (mf_setfoldmenus): added option mf(menu-depth-max) to
	control maximum depth of pull right menus

	* bindings.tk (bind_motifentry): changed Delete binding in entry
	to be the same as Backspace since this is the dominant unix
	standard

Mon Nov 15 16:22:17 1993  Paul E. Raines  (raines@unixhub.SLAC.Stanford.EDU)

	* tkmail: fixed error where alias file was read in before
	~/.tkmail file.

Wed Nov 10 00:14:31 1993  Paul E. Raines  (raines@esaw01)

	* Makefile (INCORP): put the {folder %} command needed by some
	Mails to incorporate into the mf(mail-incorp) settings 

	* compose.tk (mf_recordmsg): changed so that if file
	that is being recorded into is the current one in the
	viewer, it is closed appended to and reopened.

Tue Nov  9 19:29:22 1993  Paul E. Raines  (raines@esaw01)

	* compose.tk (mf_sendmesg): added mf(compose-require-subject)
	so users can send blank subject if they so desire

	* tkmail: added mf(compose-quick-forward) settings so
	forward menu item and button can be set to bring up
	a compose window or just a entry for an address

	* ispell.tk (tkisp_next_check): fixed bug where ispell
	would freeze up at the end of messages with no ending
	newline char.

	* utils.tk (ut_fsokcmd): changed to recognize the ~ and /
	character at the beginning of a typed in filename
	(ut_fsfill): fixed it so fs_box doesn't bomb when a
	directory contains file with special characters in their
	names. TkMail itself (actual Mail) still can't handle them
	so files with special characters can't actually be opened
	or written to. I will work this out for v2.0, hopefully.

Fri Nov  5 22:44:27 1993  Paul E. Raines  (raines@esaw01)

	RELEASE v1.6 beta 4

	* tkmail: fixed initialization to look for ~/.tk/tkmail
	instead of ~/tk/tkmail

Thu Nov  4 12:45:25 1993    (root@moby)

	* tkmail: rationalized FCC: to be separate from CC: and
	BCC: but act in the same manner. Therefore, the Record
	menu checkbutton has been changed to Show Fcc.

Wed Nov  3 11:11:13 1993  Paul E. Raines  (raines@esaw01)

	* bindings.tk (bind_emacstext): improved the emacs bindings
	so Ctrl-k, Ctrl-w and Ctrl-y work more like they are supposed to

	* tkmail (mf_getaddress): added a mf(compose-addr-postfix)
	setting for adding a default machine to addresses without
	a @machine part

	* compose.tk (mf_togglecc): added new field for cc's called
	fcc to hold the file name to record the message in. This allows
	the user to override the mf(mail-record) setting. Added 
	settings mf(mail-record-forward) to allow recording to be
	turned off when mail is forwarded.

	* tkmail (mf_dispmesg): added a strip comment on $mfp(hdr,to)
	before testing if there is multiple addresses

	* compose.tk (mf_recordmsg): changed to take third argument
	of file to record in

	* tkmail (mf_parsemailrc): renamed this procedure to mf_parsealiasfile
        added elm alias file processing
	created new mf(mail-alias-file) and mf(mail-alias-type) settings
	to specify where to read aliases and whether they are bsd or elm
	(mf_getaddress): made alias expansion recursive by adding
	mf_expandaliases procedure

	* RELEASE v1.6 beta3

	* tkmail (mf_dispmesg): changed regulars experssion searching
	results of 'size' command to be able to handle Ultrix/HP format

	* bindings.tk (tk_entryForwspace): fixed so Delete
	deletes forward char

	* tkmail (mf_setupfolder): fixed bug with reverse format
	that needed an ending new line

Mon Nov  1 23:45:18 1993    (root@moby)

	* tkmail (mf_dispmesg): go rid of mf(secfid) variable and
	now create a second pipe to Mail only when really needed.
	The zombie process problem should also be fixed

Sat Oct 30 15:34:17 1993  Paul E. Raines  (raines@esaw01)

	* tkmail(mf_headparser): added setting mf(header-config)

Fri Oct 29 09:37:44 1993  Paul E. Raines  (raines@esaw01)

	* tkmail: RELEASE v1.6 beta2

	* test/mtest: fixed error with INCORP setting in Makefile
	that used old mf(mbox) settings

Thu Oct 28 10:04:48 1993  Paul E. Raines  (raines@esaw01)

	* tkmail: RELEASE v1.6 beta

	* tkmail(MAIN): added new checkbutton to Options menu
	for mf(mail-read-ask), mf(menu-sender-full), and mf(insert-strip)

Wed Oct 27 19:06:34 1993  Paul E. Raines  (raines@esaw01)

	* mail.tk (mf_evalopt): in searching for set statements in
	the ~/.tkmail file, 'set' must now be the first word on the
	line. Changed to allow '-' in settings names.

	* tkmail: (MAIN) Got rid of mf() settings for text font and colors.
	Use 'option add' commands in ~/.tkmail file instead
	Added the mf_viewer_hook procedure that can be defined by the user
	in the ~/.tkmail file. Moved sourcing of ~/.tkmail file to near
	the top of MAIN

	* Makefile (INCORP): made save and delete method of incorporation
	the default since I have gotten may complaints.

Wed Oct 20 23:14:17 1993    (root@moby)

	* tkmail (mf_fmodcheck): when user chooses to continue, reset
	the saved modified time

Tue Oct 19 21:35:12 1993    (root@moby)

	* tkmail (TextSearch): changed to return 0.0 on failure to
	be consistent with return text index on success

	* Makefile (install): added chmod commands to installed files

	* bindings.tk: added Tom Phelps button 2 bindings so middle button can
	both insert selection and do scanning

	* tkmail (mf_checkmail): put checks before all 'wm iconbitmap commands to
	see if bitmap file exists

	* test/mtest: added the 'folder %' command to incorporate

	* Makefile: updated to the new settings names

Mon Oct 18 22:23:18 1993    (root@moby)

	* tkmail (mf_incorporate):  added a 'folder %' to make it really
	incorporate. Very strange behavoir by Mail.
	(mf_dispmesg): moved size checking to be in lines and to use
	the 'size' Mail command to determine whether to prompt user or
	not before mf_mail2txt is called
	(MAIN): bound button 2 using Tom Phelps timing scheme so that
	a 2 click will unselected message while movement will do scan
	in the header listbox

Mon Oct 11 19:17:36 1993    (root@moby)

	* tkmail: created ChangeLog file to hold History stuff and started using
	the emacs ChangeLog feature
	(mf_dispmesg): added mf(menu-sender-list) settings for arbitrary mapping
	of email address to filename

###########################################################################
# 
# 
#    TkMail -- A Tk/Tcl interface to Mail
# 	    		by Paul Raines (raines@bohr.physics.upenn.edu)
# 
# HISTORY:
#   v1.0 alpha
#      93-05-19    released original version
# 
#   v1.0 alpha r1
#      93-05-19    insert file no longer uses prefix
# 	         Re: now works correctly
# 
#   v1.0 alpha r2
#      93-05-21    fixed bug in mf_delete with finding closest undeleted mesg
# 	         fixed yview's to use mfp(curtndx)
# 
#   v1.0
#      93-05-28    fixed bug where $mf(cmd) was not used everywhere
#      93-05-29    fixed bug in Next and Prev
# 		 directed bell to stderr
# 		 fixed system folder stat bug (thanks Dan Schenck)
# 		 changed sendmsg to use sendmail so headers can be included
# 		 fixed bug with calling selmesg after delmesg
# 		 sendmail now in background, tabbing in compose
# 		 reverse order available, user def file sourced
# 		 implemented mf_compose_hook, itegrated tkispell
# 		 added Gripe
#      93-05-30    x-y posting of alert and getstring
# 
#   v1.1
#      93-05-31    fixed compose window bug with xpos
# 
#   v1.2
#      93-05-31    forward now uses $mf(deliver)
#      	         now keeps directories out of listed folders
# 
#      93-06-02   Put checkmail before setup on startup so iconic option works
#      	    	Fixed getopts and Main Box menu item to allow user to specify
#      	       		a main box other than ~/mbox
#      	    	Changed incorporate mail to use "s" instead of "mb" 
#      	    	Implemented mf_recordmsg
#      93-06-03   Got rid of update idletasks, put in alternate bell ability
#      	    	Implemented getting number of message in system box.
# 
#   v1.3
#      93-07-18   added quotespecial to formatting to prevent errors
#     	    	added .signature inclusion
#      	    	changed mail delivery to use sendmail '-t' option
#      	    	added headers option to mf_compose
#      	    	parse for Cc: and Reply-To: and include Cc: in Reply
#      93-07-29   added Help menu item and help display procedure 
# 		added mf(autoincorp)
#      93-07-30   added parsing of .mailrc for aliases
# 		added mf_getaddress for expanding aliases
# 		added Cc and Bcc entries in compose with hide option
# 		added print and save selections
#      93-07-31   added mf(mesgstate)
# 		added mf(quicksend)
# 		added mf(savesend) to be able to recover last compose
# 		changed mf_compose to take Cc and incmesg options
# 		added Button bindings for <3> events and made <3> on
# 			Reply button a reply with message include
# 		added mf(getfrom) and From: parsing
# 		added text searching with Control-S
# 		added emacs bindings
# 		added automatic header inclusion
# 		added toggling of showing Cc and Bcc in compose menu
# 		added TCL evaluation of selection
# 		turned off the message flashing to be indefinite
#      93-08-03   added pipe of selection to unix command
# 		added including file with encoding, compression, prefix
# 		added <3>  on Compose to auto message include
#      93-08-04   added mf_quickdecode
#      93-08-05	fixed button/menu sync bug
# 		added mfp(globalset)
# 		added mf_defaultset to fix ignoring of some settings
# 		added %F construct to mf(print)
# 		fixed mf_checkmail to have flag up for non-empty folder
# 		added header stripping with mf(hdrstrip)
#      93-08-06	added alternate editor ability
#      93-08-07   added options menu
# 		moved private variables to mfp array
# 		moved Alt-x,c,v bindings to general Text
# 	        added mf_defaultstart
# 		fixed mf_checkmail to keep flag up for autoincorporaters
#      93-08-08   added saving of options in mf_evalopt
# 		added pipe directory
# 
#   v1.3 patched
#      93-08-12   added seperation of header from body with newline
#      93-08-16   added error catching on format call in setupfolder
# 		added cutbuffer bindings to entry widgets
# 		changed setupfolder to show blank for non-existant folders
# 		added mf(autoaltedit) and mf(leftscroll)
#      93-08-17   made Move button on button bar a menubutton
# 		fixed sync problem with incorporating new mail
# 
#   v1.4 b1
#      93-08-18   added -nocomplain to glob on mf(fdir)
#      93-08-21   added -e option to echo's with linefeeds
# 		more parsing added to Reply-To: and Cc:
#      93-08-22   converted Mail calls to use new open pipeline
# 		added mf_checkfile
# 		made mesg area edits effect printing
#      93-08-23   removed several procedures from tkmail file to
# 		mail.tk and compose.tk. Removed the mf(utils),
# 		mf(spell). and mf(alteditlib) variables and
# 		created a mfp(tkmaillib) variable for the location
# 		of *.tk files and a tclIndex file.
# 		Created Makefile for easy installation and
# 		edited documentation.
# 		Added mf(ispell) to enable/disable spell checker
# 		changed mf(autoincorp) to use Binding to <Map>
# 		added mf(debug) variable
# 
#   v1.4 b2
#      93-08-26   switched code to use disjoint.tk instead of doing it
# 	        internally
# 		added textscrollset to generalize <Next> <Prior> bindings
#      93-08-27   put in catch for possibly unnessary flush/close in quit
#      93-08-28   improved Entry bindings
# 		added MIME mail header parsing
# 		add Cc and To multiline header parsing
# 		add mf(alternates) variable
# 		add mf(mime) and entry to Options menu
# 		added Record option to Compose menu
# 
#   v1.4
#      93-08-29   added <Sender> to move and copy message
# 		Changed order of Subject and To in sent messages to
# 		conform to standard
# 		major renovation to mf_parseheader to increase efficiency
# 		added mf_stripcomments proc
# 		added mf(fromname) variable for <Sender> menu item
# 		added mf(ignorefold)
# 		added inclusion of mf()'s and 'uname -a' to Gripe
# 		modified mf_parsemailrc to handle multiline aliases
# 		made Text bindings clear selection more
# 
#   v1.4 p1
#      93-08-30   added code to delete mfp(tfile) in mf_quit
#      93-08-31   modified sentinal gettings to handle spurious output
# 		modified mf_mailcmd to flush more for large files
# 		fixed mf(alternates) bug
# 		added transient code to secondary toplevels
#      93-09-01   fixed bug in compose.tk with mfp(tkmaillib)
# 		adjusted incorp to take "message # new" string
# 		made Text selection clear more sane
#      93-09-02   added '-class' to toplevel for main and compose
# 		moved most of mfp(tfile) stuff to mf_setupfolder to
# 		prevent so many undeleted temp files
# 
#   v1.4 p2
#      93-09-02	fixed ispell.tk bug with tkgetokay
# 		moved motif/emacs bindings stuff to bindings.tk
# 		fixed Quit bug in ispell.tk
# 		fixed bug on startup with empty/missing mbox
# 		fixed dispmesg to clear message on last mesg delete
# 		added menu item to process delete
# 		touched up incorp error handling to be more informative
# 
#   v1.4 p3
#     93-09-03	fixed supid bracket error in mf_incorp
# 
#   v1.5
#     93-09-09	fixed 'destroy . ; exit' to separate lines
#     		added 'unset hold' and 'unset keepsave' to startup
# 		added '--' line before signature
# 		changed mf_incorporate to use 'size' for # new mesg
#     93-09-10	changed several places in code that referenced
# 		strings as lists to prevent unmatched bracket errors
# 		fixed serious bug where deletions caused copy,move,
# 		save to get out of sync
# 		fixed 'writable' bug with print
# 		print now prints all messages selected 
# 
#   v1.5 p1
#     93-09-12	fixed '--' before signature
# 		better handling of empty boxes
# 		added mf(incorp) setting
#     93-09-13    fixed problem with non-existant ~/.tkmail and options
# 		overhauled utils.tk to new calling system
# 		gave help/opt windows geometry
#     93-09-14    created tk_autoMenuBar procedure to allow menu
# 		traversal and account for user defined menu's
#     93-09-15    added new bindings for entries in compose for
# 		Up, Down, Shift-Tab
# 		added Gripe to put in version
# 		added mf(recswap)
#     93-09-16    fixed 'Next' bug
# 		added mf(fcolor) to help and settings windows
# 		changed Makefile to backup old files when installing
#     93-09-17    fixed Compose windows so they have independent do records
# 		and show Cc/Bcc
#     93-09-19    added -g, -p, and -l command line options
# 
#   v1.5 p2
#     93-10-02	fixed insidious del-incorp bug
#
#   v1.6 beta
#     93-09-23  put 'after 20' before destroy in compose
#     93-09-26  added mf_selprefix and bindings to us it
#     93-09-29	added mf_fmodcheck to make delete safe
#     93-10-02	moved help text to help text file and hardcoded sections into menu
#		modified mf_mailcmd to take a variable and fid argument
#		for better efficiency
#     93-10-03  created mfp(secfid), mf(askread), mf(maxread), and mf_mail2txt
#		for more efficient reading of messages into text widgets with
#		ability query for long messages
#		rewrote mf_printmesg to use file descriptor and mail save command
#		rewrote mf_insertprefix to use lappend for more efficiency
# 		replaced several calls to 'cat' to use Tcl open/close
#     93-10-04  added code to support inserting messages w/o prefix 
#		fixed 'Insert Mesg' button in compose to insert the relevant
#		message even if the folder has been changed in the viewer
#     93-10-05  fixed mf_getaddress to handle commas
#     93-10-06  added line parser to mf_mail2txt function
#     93-10-07  added mf_setfoldmenus for directories of folders 
#     93-10-08  restructured mf_dispmesg to do parsing of header during
#		 call to mail2txt so moved most of mf_parseheader to 
#		 mf_procheader procedure
#		added searching of headers with menu entry
#     93-10-10  changed most settings names to new emacs-like names
#		added Recent menus to hold names of new accessed files
#		added message logging and mf_utilwindow
#     93-10-11  fixed bindings.tk to old tk_entryForwSpace
#		added mf(menu-sender-full)
