diff options
author | Greg Hudson <ghudson@mit.edu> | 2004-06-23 22:24:11 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2004-06-23 22:24:11 +0000 |
commit | 7ca14878db2542986e5128baa020773f5d2f4a20 (patch) | |
tree | c59914bd76ffea4832208d2a355668a1e8365f10 /zwgc | |
parent | 5a25703522a4116bece14e5b336a38acb85db984 (diff) |
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.)
Diffstat (limited to 'zwgc')
-rw-r--r-- | zwgc/zwgc.desc | 7 |
1 files changed, 4 insertions, 3 deletions
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: ") |