3 # @(#)pmcanon 1.9 (PGP Moose) 97/07/10
4 # Canonicalisation script for PGP Moose
5 # (in other words, it takes a news article and turns it
6 # into something we can compute/check a signature on.)
7 # Written by Greg Rose, RoSecure Software, Copyright C 1995.
12 trap "rm -f /$TF.?" 0 1 2 3 15
14 # Check usage. File must be specified, and result comes out on stdout.
16 echo >&2 "usage: $0 [article]"
21 sed '/^ *$/q' $TF.f >$TF.h
23 # multiple greps so we can guarantee order
26 grep -i "^From:" "$TF.h"
27 grep -i "^Subject:" "$TF.h"
28 grep -i "^Message-ID:" "$TF.h"
29 } | sed -e 's/^[^:]*: *//' -e 's/: */:/g' -e 's/[ ]*$//'
33 -e 's/^[Ff][Rr][Oo][Mm]/>&/' \
34 -e 's/^[Ss][Uu][Bb][Jj][Ee][Cc][Tt]/>&/' \