nigel@SUND.CC.IC.AC.UK (Nigel Whitfield) (09/03/89)
While the second signature facility of mush is very useful, there are times when I would like to be able to automatically include certain header fields depending on who I am mailing to. For instance, I could redirect replies from certain people to a machine that I use more often, or remove my phone number from the headers sent to certain people. Is there any way that this can be done easily? Nigel -- ------------------------------------------------------------------------ | Nigel Whitfield, | n.whitfield@cc.ic.ac.uk | | Community Radio Association. | poet@tardis.cs.ed.ac.uk | ------------------------------------------------------------------------ | Internet: n.whitfield%cc.ic.ac.uk@cunyvm.cuny.edu | | BITNET: n.whitfield%cc.ic.ac.uk@UKACRL | | UUCP: ...!cernvax!cc.imperial.ac.uk!n.whitfield * NOT via ukc * | ------------------------------------------------------------------------
argv%turnpike@Sun.COM (Dan Heller) (09/04/89)
In article <1295.8909031550@sund.cc.ic.ac.uk> Nigel Whitfield <n.whitfield%CC.IC.AC.UK@mitvma.mit.edu> writes: > For instance, I could > redirect replies from certain people to a machine that I use more > often, or remove my phone number from the headers sent to certain people. > Is there any way that this can be done easily? There currently is no support for this. However, you can build cmd's which do this for you. cmd dan 'my_hdr Phones: 555-1212; m argv@sun.com; un_hdr Phones:' You can get more intricate with some imagination. dan <island!argv@sun.com> ----- My postings reflect my opinion only -- not the opinion of any company.
schaefer@ogccse.ogc.edu (Barton E. Schaefer) (09/04/89)
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