Xref: utzoo comp.emacs:5525 comp.mail.misc:1678 comp.mail.sendmail:604 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!diamond.bbn.com!mlandau From: mlandau@bbn.com (Matt Landau) Newsgroups: comp.emacs,comp.mail.misc,comp.mail.sendmail Subject: Re: sendmail question Message-ID: <12700@jade.BBN.COM> Date: 7 Mar 89 19:46:14 GMT References: <1349@ccncsu.ColoState.EDU> Reply-To: mlandau@bbn.com (Matt Landau) Followup-To: comp.mail.sendmail Organization: BBN Systems and Technologies Corporation, Cambridge, MA Lines: 30 In comp.mail.misc, alan l wendt writes: >And the rest of the stuff wants to get put in /usr/spool/mail/wendt. >The sensible thing to do with the rest of the stuff is to pipe >it back into sendmail, with a flag saying not to do forwarding, >but I can't find such a flag on sendmail. Suggestions anyone? [ Why was this in comp.emacs? ] [ I've directed followups to comp.mail.sendmail. ] My sendmail man page (SunOS 4.0) describes a -n flag that means "don't do aliasing" -- I'm not sure whether aliasing is construed to include per-user forwarding, but I think I recall from the sendmail source that they're handled in the same place, so maybe. You might also be able to quote the recipient name by preceding it with a backslash. At least, if sendmail finds a name of the form '\name' in a .forward file, it doesn't try to reforward the message. Alternatively, instead of handing the stuff back to sendmail, you could just feed it to /bin/mail, which will deliver it to your mailbox. I wrote a rule-based pattern matcher for dispatching mail based on ed-style regular expressions in its headers, and it uses this technique to effect final delivery for sites that use the sendmail / /bin/mail combination. In fact it derives the sender's name from the message and then uses "/bin/mail -r -d " to force the "From " lines to contain the right name. -- Matt Landau Waiting for a flash of enlightenment mlandau@bbn.com in all this blood and thunder