
Installing Headertimmer 2822htrim.pl $Revision: 2.2 $
========================================================

1. Copy the script to a bin-directory, e.g. /usr/local/bin or /var/qmail/bin
   or wherever you store your mail-filter scripts.

2. Be sure that it is executable by the user that owns and runs the list.


3a For ezmlm: 

   All incoming mails to the sending program should be filtered through the
   script. Install the filter in your 'editor'-file in the ezmlm-directory like
   this: 

   (Note the parameter "[mylist]", which is used for the example function
   supplied in the script for cleaning subject-lines. This can of course be
   changed.)

   Locate the line with "ezmlm-send" or "ezmlm-gate"
      (this is an example, your file may look different)

     |/usr/local/bin/ezmlm-reject '/path/to/my/list/mylist'
     |/usr/local/bin/2822htrim.pl "[mylist]" | /usr/local/bin/ezmlm-send '/path/to/my/list/mylist'
     |/usr/local/bin/ezmlm-warn '/path/to/my/list/mylist' || exit 0
     |/usr/local/bin/ezmlm-warn -d '/path/to/my/list/mylist' || exit 0
     |/usr/local/bin/ezmlm-tstdig -t24 -m600 -k1000 '/path/to/my/list/mylist' || exit 99
     |/usr/local/bin/ezmlm-get '/path/to/my/list/mylist' || exit 0

   This could as well look like this:

     |/usr/bin/ezmlm-reject -S '/mypath/mylist'
     |/usr/bin/ezmlm-issubn -n '/mypath/mylist/blacklist' || { echo "Sorry, I've been told to reject your posts. Contact mylist-owner@example.com if you have questions about this (#5.7.2)"; exit 100 ; }
     |/usr/local/bin/2822htrim.pl "[mylist]" |/usr/bin/ezmlm-gate '/mypath/mylist' '/mypath/mylist' '/mypath/mylist/digest' '/mypath/mylist/mod' '/mypath/mylist/extra'
     |/usr/bin/ezmlm-clean -R '/mypath/mylist' || exit 0
     |/usr/bin/ezmlm-warn '/mypath/mylist' || exit 0 

3b. For others: 

    Just don't know. All incoming mails has to be filtered through the
    script. If you do it in a .qmail, .forward-file or directly by patching
    your application, it's your choice. 

4. Test the mailinglist or whatever is using headertrimmer. 


$Id: INSTALL,v 2.2 2001/11/19 11:08:23 magnus Exp $
