From dattier@sashimi.wwa.com Fri Jan 24 01:05:37 1997 Path: fu-berlin.de!news.mathworks.com!news.sprintlink.net!news-peer.sprintlink.net!news.wwa.com!not-for-mail From: dattier@sashimi.wwa.com (David W. Tamkin) Newsgroups: comp.mail.misc,alt.fan.e-t-b Subject: Re: procmail recipe to find empty body? Date: 23 Jan 1997 17:29:46 -0600 Organization: TIPFKAG [World-Wide Access, Chicago, Illinois 60606-2804] Lines: 18 Message-ID: <5c8s9b$s3p@miso.wwa.com> References: <5c6hao$8qf@alpha.NetUSA.Net> NNTP-Posting-Host: miso.wwa.com usenet-tag@qz.little-neck.ny.us wrote in <5c6hao$8qf@alpha.NetUSA.Net> that he wants to know how to check in procmailrc for a body of one or more words. [Summarizing was shorter than quoting.] Since he spoke of "one or more words," I'll assume that spaces and tabs do not make a body non-empty, nor that punctuation marks do. So let's check for digits and letters of the alphabet (remember that procmailrc regexps are case-insensitive if you don't use the `D' flag): :0B * ! [a-z0-9] { routine for an empty body } If you have other conditions that preclude using a `B' flag on the flag line, set it as the search area for that one condition: * ! B ?? [a-z0-9]