---Pine-4.02A-- QuoteColorPatch rev0.1 for Linux ONLY! -------------- - Puts some color onto Pine's status bars - and on quoted text. - - by Mikael Abrahamsson - 17 August 1998 - Downloadable from ftp://swm.pp.se/pub/linux/pineqtcolor-0.1.patch - Readme by Jesper Mårtenson - --------------------------------------------------------------------- (Lines marked 'NB!' in this readme is extra important to read before applying and using the patch). The patch file 'pineqtcolor-0.1.patch' puts a bit of color onto a few of the statusbars and on quoted text. This to make it easier to read messages which tends to look cluttered when you have lots of quoted text in them. The quoted text are divided in two types, newly quoted (defined by only one '>' in the beginning of the line) and earlier quoted (defined by more than one '>' in the beginning of the line). A line with a '<' somewhere in it is not considered a quoted line, this to avoid treating mathematical strings as quoted text. Newly quoted text is painted in bold cyan, and earlier quoted is in normal cyan. These colors are easily modified to your liking if you look them up in the source-code. Since it should be possible to install this patch on a NB! system-wide installation of pine, the colors are turned NB! on by setting the environment variable PINECOL. You will not have to set it to something special, just set it. Without this variable set the program runs as a normal Pine4.02A. You can easily modify the source-code to check for the right TERM-setting (linux/xterm/ansi) instead of using the environment variable. Since changes are made to the file 'os.c', which is NB! created during the compilation of pine, pine needs to be NB! compiled once using the command 'build lnx' before NB! applying the patch. This is also the reason why the patch only works on a linux-system. It should be fairly easy to convert it to any other platform. Please do, if you can. =) To install the patch, move the patch-file to your pine4.02A-basedirectory and use the following command: patch -p0 -s < pineqtcolor-0.1.patch After patch completes, verify that there were no problems and rebuild. Please understand that this patch is very "ugly" and can most certainly be made in many better ways, but with this one the job gets done (finally, some have said). Perhaps this patch can inspire someone else to do it "right" and to finally have this feature in the official release of Pine. Known bugs: * URL's recognized by Pine as URL's looks weird in quoted text. * When a line is too long in itself and Pine needs to reformat it - the line can look somewhat crippled. Please note, however, that these bugs only occur when the coloring is active. Deactivating the coloring of this patch makes these problems go away. Any comments are welcome. Regards, Mikael Abrahamsson , patchcoder Jesper Mårtenson , readme-writer