From 7ca14878db2542986e5128baa020773f5d2f4a20 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 23 Jun 2004 22:24:11 +0000 Subject: Use a better test to check for single-field zephyr messages. (This change will have little practical effect without further work, because of a complementary bug where zwrite only sends one field if the body is zero-length. But it's still cleaner.) --- zwgc/zwgc.desc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'zwgc') diff --git a/zwgc/zwgc.desc b/zwgc/zwgc.desc index 90a5666..48c7fe3 100644 --- a/zwgc/zwgc.desc +++ b/zwgc/zwgc.desc @@ -63,10 +63,11 @@ match "message" set type = "Instance "+$instance endif - fields signature body - if ($body == "") then - set body = $signature + if ($number_of_fields == "1") then + fields body set signature = "" + else + fields signature body endif if ($signature =~ "^[Ff]rom: .*") then set dummy = lany($signature,"From: ") -- cgit v1.2.3