[423] in Zephyr_Comments

home help back first fref pref prev next nref lref last post

[Emanuel 'Jay' Berkenbilt: zephyr signatures]

daemon@ATHENA.MIT.EDU (John T Kohl)
Sat Feb 17 23:52:02 1990

Date: Sat, 17 Feb 90 23:51:46 EST
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: zephyr-comments@ATHENA.MIT.EDU
might be appropriate for examples...

------- Forwarded Message

From: qjb@ATHENA.MIT.EDU
Date: Sat, 17 Feb 90 22:24:34 -0500
To: watchmakers@ATHENA.MIT.EDU
Subject: zephyr signatures


Sorry if this is the wrong audience for this, but because of
people like cordelia and saeed, I have the following useful code
in my .zwgc.desc ($orig_nof has the value of $number_of_fields):

     if $orig_nof == "2" then
       set signature = verbatim($1)
       set body = $2
       set toolong = ".........."               # 10
       set toolong = $toolong + $toolong        # 20
       set toolong = $toolong + $toolong        # 40
       set toolong = $toolong + "..*"           # >= 40
       if $signature =~ $toolong then
          set signature = "<ridiculously long signature>"
       endif
     else
        set signature = "???"
        set body = $message
     endif


The relevant code is between the first if and the first else.
The result of this is that all the @ characters are made literal
in the signature and that the signature is then replaced with
"<ridiculously long signature>" if it is longer than 40
characters.

I thought some people may find this interesting or useful...

                                Jay

------- End Forwarded Message

home help back first fref pref prev next nref lref last post