From owner-freebsd-questions Sun Nov 24 22:16:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19AF837B401 for ; Sun, 24 Nov 2002 22:16:56 -0800 (PST) Received: from post-21.mail.nl.demon.net (post-21.mail.nl.demon.net [194.159.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27D2C43E88 for ; Sun, 24 Nov 2002 22:16:55 -0800 (PST) (envelope-from cls@raggedclown.net) Received: from [212.238.197.102] (helo=mailhost.raggedclown.net) by post-21.mail.nl.demon.net with esmtp (Exim 3.36 #1) id 18GCYA-000AzN-00; Mon, 25 Nov 2002 06:16:54 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 54D3A50D5; Mon, 25 Nov 2002 07:16:53 +0100 (CET) Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 4BA0D1854; Mon, 25 Nov 2002 07:16:42 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1009) id 4D717225CF; Mon, 25 Nov 2002 07:16:42 +0100 (CET) Date: Mon, 25 Nov 2002 07:16:42 +0100 From: Cliff Sarginson To: lewiz Cc: FreeBSD Questions Subject: Re: Mutt / NNTP_patch. Message-ID: <20021125061642.GB19841@raggedclown.net> References: <20021124192445.GA28986@lewiz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021124192445.GA28986@lewiz.org> User-Agent: Mutt/1.5.1i X-Virus-Scanned: by AMaViS 0.3.12pre8 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Nov 24, 2002 at 07:24:45PM +0000, lewiz wrote: > Hi, > > Like many of you I use mutt for email. I recently reinstalled mutt > and included the NNTP patch allowing me to read news directly through > mutt. However, I have the same home directory (and therefore muttrc) > shared across many machines - not all of which have the nntp patch. > Because I have nntp switches in my muttrc is there any way I can have > these ignored and not throw errors if I am running a version of mutt > without the patch? > Several ways. One which springs to mind is a shell wrapper, say called runmutt, which tests the name of the machine and runs mutt as appropriate. Something like: #/bin/sh # NODE=`uname -n` if [ $NODE = "muttandnews" ]; then mutt -nntpflags else mutt fi adjusted as appropriate for your systems. There are several other ways of course, this is my 7 a.m. in the morning suggestion :) -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message