FAQ about patches | More patches | Main Page | MD5 sum for this patch

Cygwin version of Pine
Patch is available for vesions: pine 4.44 pine 4.50 pine 4.53 pine 4.55 pine 4.58 pine 4.63 pine 4.64
 
This patch makes Pine compile in Cygwin. I've tried to build it with the latest release of gcc. These are the required libraries that you need in order to build Cygwin:
  • You need to install the termcap library.
  • You also need the libcrypto library.
  • (Optional) If you want to build a secure version of Pine you also need OpenSSL from the distribution of Cygwin. Note that
    1. Certificates are located in the directory /usr/ssl/certs, not in /usr/local/ssl/certs, and this directory should not be empty.
    2. Header files are located in /usr/include/openssl.
  • (Optional) Install ldap. The build script will recognize where ldap is located and build with them.
Depending on which version of Pine you are going to build, is the command that you need to execute. For example, to build version 4.44, you need to execute the command:
 
./build cyg
 
but in order to build version 4.50 (or later), you need to execute the command
 
./buildcyg cyg
 
Notice that the patch for version 4.50, is a "bug" fix patch. You can build the cygwin version of Pine without it. It is intended so that certain normal operations of the program do not produce a garbled screen in the cygwin terminal.
 
Following the next link will show you the file /usr/doc/Cygwin/pine-4.58-2.README from the cygwin distribution, which will give you information on how to run Pine on Cygwin (some of this information is contained in this page). Notice that Glenn Murray has gone to great lengths to configure Pine, and has written how he did it, you can read all about it by following this link.
 
Good News! The Cygwin version of Pine works with display-filters and pipes, and in general you can make it interact with any external program (speller, web browser, pgp, etc). If you are using the bash shell, you will have to export the SHELL variable before you execute Pine. This is normally done by adding
 
export SHELL

to either one of the following files "/etc/profile", "/etc/profile.d/local.sh" or "~/.bash_profile". Note that PC-Pine does not offer filters, nor pipes, so this is a great upgrade from the windows version.
 
If you do not wish to export that variable, you can also link the file csh.exe to bash.exe as follows:
 
ln -s /bin/bash.exe /bin/csh.exe
 
 
There are two ways to run Pine and Pico in cygwin. You can either start them in the DOS-type terminal (it is called a cygwin terminal), or you can use a xterm, for example, rxvt, so you can use the command:
 
rxvt -e pine
 
after you've copied pine.exe to the /bin directory, in order to execute Pine.
 
With this patch, Pine should work well with colors in the cygwin terminal. Old versions of the patch may not have this modification, so if you want to use colors in the cygwin terminal please upgrade your patch. If you do not want to upgrade, you can always run pine under rxvt and use colors there. This patch also fixes problems when running Pine under the cygwin terminal, since Pine uses the scrollregion commands, which do not work in the cygwin terminal.
 
If you want to have a clean version of Pine, you will have to build it for yourself. Use the patch above and build Pine as described above.
 
If you are interested in Maildir support in Cygwin, and in particular in Pine, you can get a patch for Maildir support. Please send me feedback to tell me how it works for you.

Last Updated 13:59:42 PST Thu Mar 09 2006.