From owner-freebsd-questions Wed Mar 21 15:57:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id EC82F37B71D for ; Wed, 21 Mar 2001 15:57:35 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f2LNvTN09753; Wed, 21 Mar 2001 15:57:29 -0800 (PST) Date: Wed, 21 Mar 2001 15:57:29 -0800 From: Alfred Perlstein To: Jonathan Chen Cc: questions@FreeBSD.ORG Subject: Re: rotating .signatures? Message-ID: <20010321155728.A9431@fw.wintelcom.net> References: <20010321103918.P12319@fw.wintelcom.net> <20010322093549.A94461@itouchnz.itouch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010322093549.A94461@itouchnz.itouch>; from jonathan.chen@itouch.co.nz on Thu, Mar 22, 2001 at 09:35:49AM +1200 X-all-your-base: are belong to us. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Jonathan Chen [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