/usr/lib/courier/faxmail/coverpage is in courier-faxmail 0.73.1-1.6.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | #! /bin/bash
#
# Copyright 2002 Double Precision, Inc. See COPYING for
# distribution information.
#
. /usr/lib/courier/faxmail/init
/usr/bin/perl -e '
foreach ("FROM", "TO", "SUBJECT", "DATE")
{
$ENV{$_} =~ s/\\/\\\\/g;
$ENV{$_} =~ s/\s/ /g;
}
open(F, "/etc/courier/faxcoverpage.tr") || die "/etc/courier/coverpage.tr: $!\n";
$blank=1;
while (defined($_=<F>))
{
next if /^#/;
next if /^\n/ && $blank;
$blank=0;
s/%FROM%/$ENV{"FROM"}/ge;
s/%TO%/$ENV{"TO"}/ge;
s/%SUBJECT%/$ENV{"SUBJECT"}/ge;
s/%DATE%/$ENV{"DATE"}/ge;
s/%PAGES%/$ENV{"PAGES"}/ge;
print;
}
close(F);
print ".nf\n";
while (defined($_=<STDIN>))
{
chomp;
s/\\/\\\\/g;
s/^/\\\&/g;
print "\\f(CW$_\\fP\n";
}
print ".fi"
' > $OUTDIR/.tr
$TBL <$OUTDIR/.tr >$OUTDIR/.tbl
rm -f $OUTDIR/.tr
$TROFF -mm <$OUTDIR/.tbl >$OUTDIR/.troff
rm -f $OUTDIR/.tbl
$DPOST <$OUTDIR/.troff >$OUTDIR/.dpost
rm -f $OUTDIR/.troff
$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER - <$OUTDIR/.dpost
|