Article View: comp.mail.mush
Article #175Re: Inclusion of header fields
From: Barton E. Schaefer
Date: Mon, 04 Sep 1989 00:11
Date: Mon, 04 Sep 1989 00:11
33 lines
1800 bytes
1800 bytes
In article <1295.8909031550@sund.cc.ic.ac.uk> Nigel Whitfield <n.whitfield%CC.IC.AC.UK@mitvma.mit.edu> writes:
} I would like to be able to automatically include certain
} header fields depending on who I am mailing to.
}
} Is there any way that this can be done easily?
No, but you can do it the hard way. Use the "eval -h" command to set a
variable to the information you want to test:
eval -h set to = %a
will set $to to the address of the sender of the current message. Then
"source" a mush script that tests $to:
if $to == dheller@cory.berkeley.edu
my_hdr X-Look-At-This-Dan: I made my own header
endif
Finally, "reply" as usual. All this can be bundled up in a "cmd".
Mush 6.6 (currently at beta version 15) provides a :l modifier to force
all characters in a variable expansion to lower case, so the above could
be made more robust as:
if $to:l == dheller@cory.berkeley.edu
which would match dheller@cory.berkeley.EDU and dheller@cory.Berkeley.EDU
and so on.
--
Bart Schaefer "And if you believe that, you'll believe anything."
-- DangerMouse
CSNET / Internet schaefer@cse.ogc.edu
UUCP ...{sequent,tektronix,verdix}!ogccse!schaefer
Technical Details
Message-ID:
<4541@ogccse.ogc.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!husc6!ogccse!schaeferReferences:
<1295.8909031550@sund.cc.ic.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!husc6!ogccse!schaefer From: schaefer@ogccse.ogc.edu (Barton E. Schaefer) Newsgroups: comp.mail.mush Subject: Re: Inclusion of header fields Message-ID: <4541@ogccse.ogc.edu> Date: 4 Sep 89 00:11:33 GMT References: <1295.8909031550@sund.cc.ic.ac.uk> Reply-To: schaefer@ogccse.UUCP (Barton E. Schaefer) Organization: Oregon Graduate Center, Beaverton, OR Lines: 33