home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / mail / misc / 2702 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.8 KB

  1. Path: sparky!uunet!crdgw1!uakari.primate.wisc.edu!sdd.hp.com!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!mintaka.lcs.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!mcsun!sun4nl!dutrun!donau!richard
  2. From: Richard.Kooijman@dnpap.et.tudelft.nl (Richard Kooijman DNPAP)
  3. Newsgroups: comp.mail.misc
  4. Subject: Problem using procmail
  5. Keywords: procmail
  6. Message-ID: <richard.714210066@dutepp6>
  7. Date: 19 Aug 92 07:41:06 GMT
  8. Sender: news@donau.et.tudelft.nl (UseNet News System)
  9. Organization: Delft University of Technology, Dept. of Electrical Engineering
  10. Lines: 128
  11. Nntp-Posting-Host: dutepp6.et.tudelft.nl
  12.  
  13.  
  14. Hi,
  15.  
  16. I have the following problem with procmail. I have defined a set of recipes
  17. with which I want to save mail for certain lists in certain files and
  18. place a log message in my system mailbox. All other mail should be
  19. placed in my system mailbox without generating a log message.
  20.  
  21. For example, mail from the SNMP list should be appended to a file
  22. called ~/mail/SNMP and a log message should be generated in my
  23. system mailbox /var/spool/mail/richard.
  24.  
  25. The log message and the appending works fine, but the message itself is
  26. also placed in my system mailbox.
  27.  
  28. Can somebody tell me what I am doing wrong?
  29.  
  30. My .procmailrc is included below.
  31.  
  32.  
  33.  
  34. Thanks,
  35.  
  36. Richard.
  37.  
  38.  
  39. ==================================================================
  40. PATH=/usr/local/bin:/usr/ucb:/usr/bin    # path for shell commands
  41. MAILDIR=$HOME/mail            # mail directory
  42. ORGMAIL=/var/spool/mail/$USER        # system mailbox
  43. DEFAULT=$ORGMAIL            # default delivery mailbox
  44. LOGFILE=$ORGMAIL            # default log mailbox
  45.  
  46.  
  47. # Staff mail
  48.  
  49. :c
  50. ^(To|Cc).*Staff
  51. | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/flush.au &
  52.  
  53. :A:
  54. Staff
  55.  
  56.  
  57. # Develop mail
  58.  
  59. :c
  60. ^(To|Cc).*Develop
  61. | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/quitit.au &
  62.  
  63. :A:
  64. Develop
  65.  
  66.  
  67. # G2 mail
  68.  
  69. :c
  70. ^(To|Cc).*G2
  71. | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au &
  72.  
  73. :A:
  74. G2
  75.  
  76.  
  77. # SNMP mail
  78.  
  79. :c
  80. ^(To|Cc).*SNMP
  81. | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/flush.au &
  82.  
  83. :A:
  84. SNMP
  85.  
  86.  
  87. # InterViews mail
  88.  
  89. :c
  90. ^(To|Cc).*InterViews
  91. | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au &
  92.  
  93. :A:
  94. InterViews
  95.  
  96.  
  97. # CLIPS mail
  98.  
  99. :c
  100. ^(To|Cc).*CLIPS
  101. | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au &
  102.  
  103. :A:
  104. CLIPS
  105.  
  106.  
  107. # NEDERL mail
  108.  
  109. :c
  110. ^(To|Cc).*NEDERL
  111. | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au &
  112.  
  113. :A:
  114. NEDERL
  115.  
  116.  
  117. # LITPROG mail
  118.  
  119. :c
  120. ^(To|Cc).*LITPROG
  121. | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au &
  122.  
  123. :A:
  124. LITPROG
  125.  
  126.  
  127. # default delivery, no log
  128.  
  129. LOGFILE=/dev/null
  130.  
  131. :0
  132. | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au &
  133.  
  134. :A:
  135. $DEFAULT
  136. --
  137. -- ir. Richard Kooijman ------------------ Email: R.Kooijman@ET.TUDelft.NL --
  138. -- Intelligent Network Management Project (INEMA) ---------------------------
  139. -- CARDIT, Delft University of Technology ------------ Tel: (31)-15-786209 --
  140. -- P.O.Box 5031, 2600 GA Delft, The Netherlands ------ Fax: (31)-15-784898 --
  141.