# Copyright (c) 1991, Andrew Rosen.
# All rights reserved.
#
# This  software is supplied free of charge.  This software, or any part
# of it,  may  not  be  redistributed or otherwise made available to, or
# used  by,  any  other  person  without the inclusion of this copyright
# notice.  This software may not be used to make a profit in any way.
#
# This  software  is provided with absolutely no warranty, to the extent
# permitted  by  applicable  state law.  In no event, unless required by
# applicable law,  will the author(s) of this software be liable for any
# damages caused by this software.


## Save subject of message
ggrep '^Subject: ' ${file} | head -1 | sed 's/`//g' | cut -d':' -f2- >! /tmp/subject.$$

echo "Subject is `head -1 /tmp/subject.$$`"
set subject = "`head -1 /tmp/subject.$$`"

rm -f /tmp/subject.$$
