Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!andante!mp From: mp@allegra.UUCP (Mark Plotnick) Newsgroups: comp.mail.sendmail Subject: getting contents of header lines into rewrite rules Message-ID: <33187@andante.UUCP> Date: 11 Apr 90 07:21:56 GMT Organization: AT&T Bell Laboratories, Murray Hill Lines: 18 One of our neighbors sends mail without an '@hostname' in the From: line: Date: 6 Apr 1990 11:33-EST From: mf Subject: Projects To: allegra!ad Message-Id: <90/04/06 1133.000@mhuhk> Origin: mhuhk mf doesn't have an account on our system, and one of the department heads here is thus complaining "I would like to be able to type 'r' and have my mail respond to the author of the mail I am reading." Is there a way in sendmail to get the contents of a header line into a rewrite rule? I'd like to be able to notice the 'Origin: mhuhk' line and then have sendmail change a sender of <$-> into <$1@mhuhk>. Mark Plotnick allegra!mp mp@allegra.att.com