Invoking Procmail

2000-03-17 Thread Charles Curley

Let's see if I have this straight, before I shoot myself in the foot, or
email, anyway.

Mutt doesn't care how it gets its mail, as long as it surfaces someplace
on the computer where it can get at it. One way to get mail from a pop or
imap server is to use fetchmail. If I correctly read the man pages for
fetchmail, it doesn't put the mail in /var/spool/mail/username, or not
directly anyway. Rather, it calls sendmail to do this. If you happen to
have a call to procmail in your /etc/sendmail.cf file, sendmail executes
procmail, which then picks up ~/.procmailrc and executes the filters
there.

Since I already have a call to procmail in my sendmail.cf, all I need to
do to use procmail is write a .procmail.

Here is the invocation to procmail in sendmail.cf:


##*##
###   PROCMAIL Mailer specification   ###
##*##

#  @(#)procmail.m4  8.11 (Berkeley) 5/19/1998  #

Mprocmail,  P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31, 
T=DNS/RFC822/X-Unix,
A=procmail -Y -m $h $f $u


And indeed procmail is right where the path above indicates it should be.


-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley



Re: Invoking Procmail

2000-03-17 Thread David DeSimone

Charles Curley [EMAIL PROTECTED] wrote:

 Since I already have a call to procmail in my sendmail.cf, all I need to
 do to use procmail is write a .procmail.

Maybe, maybe not...

 ##*##
 ###   PROCMAIL Mailer specification   ###
 ##*##
 
 #  @(#)procmail.m48.11 (Berkeley) 5/19/1998  #
 
 Mprocmail,P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31, 
T=DNS/RFC822/X-Unix,
   A=procmail -Y -m $h $f $u

That's a correct definition of the procmail mailer, BUT, the normal mail
delivery method for local users is a mailer called "local", not
"procmail".  You should search for the "Mlocal" definition and see if it
makes use of procmail.

For instance, on my HP-UX box here, procmail is not used by the local
mailer:

Mlocal, P=/usr/bin/rmail, F=lsDFMAw5:/|@m, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,
A=rmail -d $u

But on my Linux box at home, procmail is used:

Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qShP, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,
A=procmail -a $h -d $u

So your answer is "It depends."  :)

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Re: Invoking Procmail

2000-03-17 Thread Charles Curley

On Fri, Mar 17, 2000 at 01:28:29PM -0600, David DeSimone wrote:
- Charles Curley [EMAIL PROTECTED] wrote:
- 
-  Since I already have a call to procmail in my sendmail.cf, all I need to
-  do to use procmail is write a .procmail.
- 
- Maybe, maybe not...
- 
-  ##*##
-  ###   PROCMAIL Mailer specification   ###
-  ##*##
-  
-  #  @(#)procmail.m4 8.11 (Berkeley) 5/19/1998  #
-  
-  Mprocmail, P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31, 
T=DNS/RFC822/X-Unix,
- A=procmail -Y -m $h $f $u
- 
- That's a correct definition of the procmail mailer, BUT, the normal mail
- delivery method for local users is a mailer called "local", not
- "procmail".  You should search for the "Mlocal" definition and see if it
- makes use of procmail.
- 
- For instance, on my HP-UX box here, procmail is not used by the local
- mailer:
- 
- Mlocal,  P=/usr/bin/rmail, F=lsDFMAw5:/|@m, S=10/30, R=20/40,
-  T=DNS/RFC822/X-Unix,
-  A=rmail -d $u
- 
- But on my Linux box at home, procmail is used:
- 
- Mlocal,  P=/usr/bin/procmail, F=lsDFMAw5:/|@qShP, S=10/30, R=20/40,
-  T=DNS/RFC822/X-Unix,
-  A=procmail -a $h -d $u
- 
- So your answer is "It depends."  :)

I seem to have a very similar definition in my sendmail.cf.

Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40,
T=DNS/RFC822/X-Unix,
A=procmail -Y -a $h -d $u

Thanks!


-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley