HuggieTag 0.8 BUILD 4

This file is bottom to top. Chronologically speaking.

0.8
===
4:Fixed memory leaks.
4:Fixed "Error, please rebuild tagfile" problem occurring when not necessary.
3:yesno now no longer prints invalid answers it just beeps. Should be neater.
3:Added some ifdef's for MSDOS compilation.
3:Added handler for SIGINT to allow us to clean up properly afterwards.
3:General code cleanups.
3:Included RPM spec file.
2:Ahem. A day after release fix, annoying LEADER option not surrounded by "
  bug.
1:Presumed to be stable? Should be released in the wild
0:General code clean ups. Made work with -pedantic
0:Changed a few error messages in Jonathan's patch.
0:Added PAUSEONERROR option (default to YES)
0:Fixed no newline at end of htrc
0:Made signatures only occur once per instance of HuggieTag
0:Allow ~ as well as $HOME for homedir expansion
0:More/changed documentation
0:Added stat on tagfile to check date on tagfile. (mtime stored in idx file)
0:Added quit option in some places (instead of just (y,n))
0:Changed some defaults if options are missing from htrc (mainly so that
  with an empty htrc it won't complain unless absolutely necessary)
0:Fixed no newline at end of htrc problem

0.7 - Never in the "wild"
===
8:Patch from Jonathan McDowell for SIGDIR
7:Added new makefile targets for author's use.
6:Use install not cp (for those using packinstall like me)
6:Fix off by one in fixedsig.c
5:Added ACKNOWLEDGEMENTS file
5:RANDHEAD now needs quotation marks around it. (not sure why it didn't
  before)
5:@xxR@ and @xxC@ added.
5:Changed builds to pres (and then changed back later...)
4:Rewrote documentation.
4:FILLALLSPACES option added.
4:do_replace modified to cope with @B in clever sigs
3:Newlines moved to the right places.
3:Do you want to use this sig? option.
2:Added merged sigs and tags courtesy of Jonathan McDowell.
1:Adding essential functions like add_tag :)
0:Pre-release to beta-testers.
0:Complete rewrite (well almost)

v0.06:
======
2:Ahem. Fixed buffer overflow in from name parsing.
1:Made it use .htrc and .htsig when in linux/unix
1:Changed dir structure and Makefiles to match.
1:Overhauled the tearlines:
1:- Can have no tearline.
1:- Can have short one (i.e. "~~~ HuggieTag v0.06")
1:- Can have long one as before but now tearline text may be changed
1:  randomly too using RANDTEAR.
1:FIRST and LEADER became optional.
1:Fixed bug with the getch supplied which didn't reset the terminal
1:attributes properly (meaning that su broke and leading to me typing my
1:password for all to see) (Idea for fix from Jonathan McDowell)
1:Thought it was about time to have another look at huggietag code and make
1:it do a little bit more. Hence new version.

v0.05:
======
9:Added RANDHEAD to ht.cfg, to allow headers at the start of replies. (Only
9:when HT can figure out who the message is for e.g. ~FROM: is defined or it
9:is a PINE reply)
9:Many minor fixes.
9:Transferred History from tags.c to HISTORY file.
8:Stopped using /tmp as storage for tagtemp.tmp
7:Modified behaviour with HOME in linux + changed readcfg to work with DOS
6:Added NEWLINE to configfile
5:Added getopt(3) support and ht.cfg
4:Fixed bug with expansions. Should not overflow buffers now.
3:Bug in htsig.sig support fixed (doesn't copy last line twice if terminated by
3:a line with just a CR on it.
2:Tested on a 13.5Mb tagfile. Seems to work ok. :+)
2:Refined index support.
1:Index File support added.

v0.04a:
=======
5:Added support for long taglines. *YAY*
5:Reformats them, properly deals with reformatting (or not) tags with @B in.
5:I hope.
5:Changed rename to a system call. Won't work in DOS. This is a work around for
5:linux because on my system /tmp and where the message files are aren't always
5:on the same partition.
5:Removed bug in using null tagline files/tagline files with less than 1 line
5:Removed bug in below.
4:Changed behaviour when no FROM name is found. It will now not suggest 
4:taglines containing @F @L or @N.
4:Added support for @B for begin a newline
3:Fixed last line bug.
2:Now copies any blank lines first before looking for ~FROM: due to "feature"
2:in termail which meant it didn't get the real from name.
2:Introduced build system to help me keep track of what's what.
Made more modular and easier to maintain.

v0.04:
======
Fixed personalised taglines bug.
Substitutes from name from first line either from PINE in standard format or
from ~FROM: name_goes_here. Replaces @F with first name, @L with last and @N
with everything.
Dynamically allocates strings.
Can steal tags from last 10k (or whole) of message file.
Checks last 400 bytes for already existing tagline.

v0.03:
======
Prompts user whether to add this tagline, choose again or not add one at all.
Tries to spot whether there is already a tagline there. (checks last two lines
only)

v0.02:
======
Alters msg file.
Independent of my machine (I hope)

v0.01:
======
Output tagline to stdout.
Relied on taglines.tag being in /usr/local/bin.
