Date: Wed, 21 Mar 2001 15:57:29 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: Jonathan Chen <jonathan.chen@itouch.co.nz> Cc: questions@FreeBSD.ORG Subject: Re: rotating .signatures? Message-ID: <20010321155728.A9431@fw.wintelcom.net> In-Reply-To: <20010322093549.A94461@itouchnz.itouch>; from jonathan.chen@itouch.co.nz on Thu, Mar 22, 2001 at 09:35:49AM %2B1200 References: <20010321103918.P12319@fw.wintelcom.net> <20010322093549.A94461@itouchnz.itouch>
next in thread | previous in thread | raw e-mail | index | archive | help
* Jonathan Chen <jonathan.chen@itouch.co.nz> [010321 13:36] wrote: > On Wed, Mar 21, 2001 at 10:39:18AM -0800, Alfred Perlstein wrote: > > I've seen people that have rotating .signatures for email, > > anyone know how to do this with mutt? > > I've got in my ~/.muttrc: > > set signature="~/bin/pick-sig|" > > which is a small C program which picks up a random signature from > ~/.signatures. Ah, nice but here's what I'm using: (it expects a ~/signature_lines file in the format of a fortune file) #!/bin/sh # Copyright (c) Alfred Perlstein # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. sig=$HOME/.signature lines=$HOME/signature_lines dat=${lines}.dat if [ `ls -t $lines $dat 2> /dev/null | head -1` != $dat ] ; then /usr/games/strfile -rs $lines $dat fi cat $sig fortune $lines To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010321155728.A9431>