home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / mail / sendmail / 2193 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!cs.utexas.edu!sun-barr!rutgers!cmcl2!panix!alexis
  2. From: alexis@panix.com (Alexis Rosen)
  3. Newsgroups: comp.mail.sendmail
  4. Subject: Re: Removing msg body in IDA for postmaster
  5. Message-ID: <1992Sep2.074845.9955@panix.com>
  6. Date: 2 Sep 92 07:48:45 GMT
  7. References: <root.715272995@merlin>
  8. Organization: PANIX Public Access Unix, NYC
  9. Lines: 30
  10.  
  11. peter@merlin.acadiau.ca (Peter Steele) writes:
  12. >A while back someone posted a script that could be used in IDA
  13. >sendmail for the POSTMASTERBOUNCE option that would remove the
  14. >message body, leaving only the headers. I archived it but have
  15. >only now gotten around to checking it out. Unfortunately I 
  16. >can't find it. I must have deleted it during some house
  17. >cleaning. Does any one know the script I'm referring to?
  18.  
  19. I've just started thinking about this myself. I haven't gotten to it yet
  20. but what I intend to do is make postmaster an alias to a script which does
  21. two things:
  22.  
  23. 1) Save the mail to a file (see below)
  24. 2) Pipe it through a sed which chops it at the first blank line, then forwards
  25.    it to postmaster.
  26.  
  27. Of course, the postmaster address that sendmail knows about wouldn't be
  28. postmaster, but sm-pm or something like that. that's because humans also
  29. use the postmaster address occasionally. You don't want to chop their mail...
  30.  
  31. As for why you keep a full copy: Sometimes the bounces you get are bounces
  32. of bounces. At that point, you want to open the real mail file, find the
  33. message, and pipe it through something that chops after the _second_ blank
  34. line...
  35.  
  36. --
  37. Alexis Rosen   Owner/Sysadmin,
  38. PANIX Public Access Unix & Internet, NYC.
  39. alexis@panix.com
  40. {uupsi,cmcl2}!panix!alexis
  41.