From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/41123 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: expiry-target as function, how about an example Date: Sun, 30 Dec 2001 00:39:09 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035176569 4486 80.91.224.250 (21 Oct 2002 05:02:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:02:49 +0000 (UTC) Return-Path: Original-Received: (qmail 4820 invoked from network); 29 Dec 2001 23:44:17 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 29 Dec 2001 23:44:17 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16KT8v-0007rh-00; Sat, 29 Dec 2001 17:43:57 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 29 Dec 2001 17:43:48 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id RAA29429 for ; Sat, 29 Dec 2001 17:43:36 -0600 (CST) Original-Received: (qmail 4812 invoked by alias); 29 Dec 2001 23:43:39 -0000 Original-Received: (qmail 4807 invoked from network); 29 Dec 2001 23:43:38 -0000 Original-Received: from quimby.gnus.org (HELO quimby2.netfonds.no) (195.204.10.66) by gnus.org with SMTP; 29 Dec 2001 23:43:38 -0000 Original-Received: from news by quimby2.netfonds.no with local (Exim 3.12 #1 (Debian)) id 16KTNY-0001wx-00 for ; Sun, 30 Dec 2001 00:59:04 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 32 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby2.netfonds.no 1009670344 7376 195.204.10.148 (29 Dec 2001 23:59:04 GMT) Original-X-Complaints-To: usenet@quimby2.netfonds.no Original-NNTP-Posting-Date: 29 Dec 2001 23:59:04 GMT Mail-Copies-To: never X-Now-Playing: Slicker's _Frustrache.EP_: "Frustrache (T. Raumschmiere remix)" User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 (i686-pc-linux-gnu) X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > Here we go in nitwit mode... Do you mean something as simple as: > > cat process_exp.ksh > #!/bin/ksh > > if grep '^From:.*larsi@' >/dev/null;then > echo "sacred_keepers" > fi Well, kind of. `shell-command' doesn't return the output from the command; it returns the exit status. So you have to capture the output from the command. > Or does the name have to wear more adorment like "nnml:sacred_keepers" Yes. > If this is all it takes then a semi-complex case statement could pick > from almost any number of targets. Oh.. is "/dev/null" amongst the > legitimate stings to return? No. > Do the groups have to exist? No. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen