home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / mail / mh / 958 < prev    next >
Encoding:
Text File  |  1992-07-23  |  995 b   |  26 lines

  1. Newsgroups: comp.mail.mh
  2. Path: sparky!uunet!uunet.ca!canrem!telly!druid!r-node!rui
  3. From: rui@r-node.gts.org (Rui M. Pereira)
  4. Subject: comapring field/strings in format strings
  5. Message-ID: <1992Jul22.173413.26902@r-node.gts.org>
  6. Organization: R-node Public Access UNIX System (416-636-2026) 24hrs.
  7. Date: Wed, 22 Jul 1992 17:34:13 GMT
  8. Lines: 16
  9.  
  10. From what I've read in the mh man pages, this is impossible, but ...
  11.  
  12. Is it possible to do string comparisons, like the following half-pseudo-code:
  13.  
  14.    if %{from} == "user1@site1"
  15.          %{cc}
  16.    %|
  17.          %{from}
  18.  
  19. The reason is that one of the mailing lists I receive does not have a
  20. Reply-To: field, which means it uses the From: field, which is the user
  21. who sent the message, rather than the mailling list address (which
  22. -- 
  23.  -=[Rui M. Pereira]=- <g0pereir@cdf.toronto.edu>|<rui@r-node.{gts.org|uucp}>
  24.  A bad sector disk error occurs only after you've done several hours of work
  25.      without performing a backup.       - The Law of Computers -
  26.