Thread View: comp.mail.misc
2 messages
2 total messages
Started by Richard Kooijman DNPAP
Wed, 19 Aug 1992 07:41
Problem using procmail
Author: Richard Kooijman DNPAP
Date: Wed, 19 Aug 1992 07:41
Date: Wed, 19 Aug 1992 07:41
128 lines
3034 bytes
3034 bytes
Hi, I have the following problem with procmail. I have defined a set of recipes with which I want to save mail for certain lists in certain files and place a log message in my system mailbox. All other mail should be placed in my system mailbox without generating a log message. For example, mail from the SNMP list should be appended to a file called ~/mail/SNMP and a log message should be generated in my system mailbox /var/spool/mail/richard. The log message and the appending works fine, but the message itself is also placed in my system mailbox. Can somebody tell me what I am doing wrong? My .procmailrc is included below. Thanks, Richard. ================================================================== PATH=/usr/local/bin:/usr/ucb:/usr/bin # path for shell commands MAILDIR=$HOME/mail # mail directory ORGMAIL=/var/spool/mail/$USER # system mailbox DEFAULT=$ORGMAIL # default delivery mailbox LOGFILE=$ORGMAIL # default log mailbox # Staff mail :c ^(To|Cc).*Staff | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/flush.au & :A: Staff # Develop mail :c ^(To|Cc).*Develop | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/quitit.au & :A: Develop # G2 mail :c ^(To|Cc).*G2 | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au & :A: G2 # SNMP mail :c ^(To|Cc).*SNMP | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/flush.au & :A: SNMP # InterViews mail :c ^(To|Cc).*InterViews | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au & :A: InterViews # CLIPS mail :c ^(To|Cc).*CLIPS | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au & :A: CLIPS # NEDERL mail :c ^(To|Cc).*NEDERL | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au & :A: NEDERL # LITPROG mail :c ^(To|Cc).*LITPROG | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au & :A: LITPROG # default delivery, no log LOGFILE=/dev/null :0 | rsh dutepp6 ~/bin/sun/play -v 30 ~/deskset/sounds/bark.au & :A: $DEFAULT -- -- ir. Richard Kooijman ------------------ Email: R.Kooijman@ET.TUDelft.NL -- -- Intelligent Network Management Project (INEMA) --------------------------- -- CARDIT, Delft University of Technology ------------ Tel: (31)-15-786209 -- -- P.O.Box 5031, 2600 GA Delft, The Netherlands ------ Fax: (31)-15-784898 --
Re: Problem using procmail
Author: Stephen R. van den Berg
Date: Thu, 20 Aug 1992 14:11
Date: Thu, 20 Aug 1992 14:11
29 lines
1891 bytes
1891 bytes
Richard Kooijman writes:
>I have the following problem with procmail. I have defined a set of recipes
>with which I want to save mail for certain lists in certain files and
>place a log message in my system mailbox. All other mail should be
>placed in my system mailbox without generating a log message.
>For example, mail from the SNMP list should be appended to a file
>called ~/mail/SNMP and a log message should be generated in my
>system mailbox /var/spool/mail/richard.
>The log message and the appending works fine, but the message itself is
>also placed in my system mailbox.
>Can somebody tell me what I am doing wrong?
>My .procmailrc is included below.
Your .procmailrc file looks fine. My guess is that the problem lies in your
.forward file. Look in the man page for procmail(1) in the NOTES section, and
check to see if you don't have any extraneous entries in your .forward file.
I suspect you looked at the .forward file example in the vacation(1) man page.
Procmail, unlike vacation does not need the \username entry in the .forward
file.
--
Sincerely, berg@pool.informatik.rwth-aachen.de
Stephen R. van den Berg (AKA BuGless). berg@physik.tu-muenchen.de
"My name is Psmith, the P is not pronounced."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads