#!/bin/sh

# Written by Feline (feline@irendi.com) - Irendi Software
#
# All code distributed under the GNU Public Licence, version 2.
# Copyright Michael Sharpe 1994-2000.
#
# We grant permission to use, copy, modify, and distribute this software
# under the terms of the GPL v2, provided that the above copyright
# notice and this text are not removed. We make no guarantee about the
# sutability of this software for any purpose and we are not liable
# for any damages resulting from its use. Further, we are under no
# obligation to maintain or extend this software. It is provided on an
# "as is" basis without any express or implied warranty.
#
# Bug reports, enhancement requests and bug fixes are always welcome.

# This script simple invokes autosig to change the signature file and then
# invokes mutt. Everytime mail is read using this script, a new signature file
# is created with a different quote.

# Initialise variables
quoteFile=quotes
delimiter="~###~"
sigHeader=dotsignc
sigFile=dotsignature

# Generate a new signature file
autosig $quoteFile $delimiter $sigHeader $sigFile
chmod 644 $sigFile

# Now invoke elm
mutt $*
