HELP VED_TMH                                       Aaron Sloman Nov 1991

ENTER tmh
    Tidy the header in the current mail message
ENTER tah
    Tidy all mail headers in the current file

Use of these facilities requires

    uses vedmail
    (E.g. in your $poplib/vedinit.p file)

         CONTENTS - (Use <ENTER> g to access required sections)

 -- Introduction
 -- Global variables
 -- -- unwanted_mail_headers
 -- -- transform_mail_addresses
 -- See also

-- Introduction -------------------------------------------------------

These are autoloadable library programs.

These commands cause VED to get rid of all lines in message headers that
start with one of the strings in the list -unwanted_mail_headers-, and
simplifies local host addresses using the specifications in the list
-transform_mail_addresses-.

The commands are controlled by two global variables.

-- Global variables ---------------------------------------------------

-- -- unwanted_mail_headers

This is a list of strings defining entries to be deleted from the mail
header.

E.g. If the list contains the string 'Message-Id' then all lines in the
message header starting with 'Message-Id: ' will be deleted.

The default value is defined thus (though it may change):

global vars unwanted_mail_headers =
    [   'Content-Identifier'    'Date-Received'       'Delivery-Date'
        'Host'                  'Importance'          'In-Reply-To'
        'Mailer'                'Message-Id'          'Mmdf-Warning'
        'Original-Via'          'Received'            'Relay-Version'
        'Return-Receipt-To'
        'Sensitivity'           'Software-Hoarding'   'Status'
        'Via'                   'X-Envelope-To'       'X-Errors-To'
        'X-Face'                'X-Charset'           'X-Char-Esc'
        'X-Confirm-Reading-To'
        'X-Mailer'              'X-mailer'
        'X-Vms-Cc'            'X-Vms-To'
        'X-Pmrqc'
        'X400-Content-Type'     'X400-Mts-Identifier' 'X-Lines'
        'X400-Received'         'X400-Recipients'     'X-Sun-Charset'
        ;;; 'Mime-Version' 'MIME-Version' 'MIME-version'
        ;;; 'Content-Type'
        'Content-Length'
        ;;;'Content-Transfer-Encoding'
        ;;; 'Content-transfer-encoding'
        'Priority'              'Comments'
        'X-Priority'
        'X-Msmail-Priority' 'X-MSMail-Priority'
        'Status'    'X-Status' 'X-Keywords' 'X-UID'
   ],
;


-- -- transform_mail_addresses

This list contains strings specifying what addresses are to be transformed,
and what they are transformed to, in the format used by VED's ENTER s
comand. The delimiter is usually `/` but can be any character that does
not occur in the addresses.

E.g. if the list transform_mail_addresses includes the string

    '/@uk.ac.bham.cs//'

Then all local addresses of the form '@uk.ac.bham.cs' will be removed.
So
    'fred@uk.ac.bham.cs' will be transformed to just 'fred'.

It may be necessary to cope with alternate forms of addresses, since
they can come with or without abbreviations (e.g. 'susx' for 'sussex').

The default value is defined thus:

transform_mail_addresses =
    ['/@uk.ac.bham.cs//' '/@cs.bham.ac.uk//'];


-- See also -----------------------------------------------------------

HELP * VED_GETMAIL


--- $poplocal/local/help/ved_tmh
--- Copyright University of Birmingham 1999. All rights reserved. ------
