This section describes how to integrate premail into Netscape 3.0's built-in mailer. Skip this section if you won't be using Netscape mail.
1. Create symbolic links to premail called ``prezilla'' and ``premailmove''. To do this, make sure you are in the same directory as premail itself, and type:
ln -s premail prezilla
ln -s premail premailmove
2. Find a working movemail. If you have emacs installed, then you most likely have one in /usr/lib/emacs/etc/movemail or a similar location. If you don't already have one, then the source (or possibly binary) for one is included in the Netscape Navigator distribution and you can build it (no need if a binary is included). Then, make sure premail can find it by adding a line such as this one to your preferences file:
$config{'movemail'} = '/usr/lib/emacs/etc/movemail';
This usage assumes that you get your mail from a mail spool, as opposed to POP or some such. You may be able to get it to work for POP as well, but you need to figure out how to invoke movemail to move the mail from your mailbox to a file (specified as the second argument to the movemail script).
3. Add this line to your .cshrc, assuming your shell is csh or tcsh:
setenv NS_MSG_DELIVERY_HOOK /your/path/to/prezilla
Also run this command from the shell so it takes effect immediately. The syntax is slightly different if your shell is sh or bash (note: is this right?):
NS_MSG_DELIVERY_HOOK=/your/path/to/prezilla
export NS_MSG_DELIVERY_HOOK
4. Start Netscape (exit first if it's already running). Go to the
Options|Mail and News Preferences dialog, select the Servers tab.
Click on ``External Movemail'' and set the value to
/your/path/to/premailmove
.
Try sending yourself mail, and clicking on ``Get Mail'' from the Netscape Mail window. The mail should show up in the Inbox, correctly decoded.
To view the X-Premail-Auth: header field to see the result of signature checking, select Options|Show All Headers from the Netscape Mail window.
Note: as of Netscape v3.0b5, there is still a bug in the handling
of the Bcc:
header field, which causes it to be ignored. Do
not use this field. Hopefully, this will be fixed in a future version
of Netscape.
Note: some 3.0 beta versions modify the PATH
environment
variable. If premail seems to work correctly from the command line,
but not from Netscape, try setting absolute pathnames for the programs
used by premail.