procmail
[Top] [All Lists]

Re: Fwd: procmail on tcsh

2002-07-29 04:02:01
John (for Jay), et al --

Since I'm posting, is there a single best or most-right address for the
list?  I'm confused :-)

...and then John Gianni said...
% 
% Any ideas on this one?

Just one: tcsh grammar.

Well, a second for debugging: mail logs.


% 
% 
% >Date:         Fri, 26 Jul 2002 14:00:17 -0700
% >From: Mrityunjay Singh <singh>
...
% >
% >I have explicitly added first line in my .procmailrc as 
% >SHELL = /bin/sh

That will tell procmail to use /bin/sh but what will tell the mail
software (sendmail, qmail, exim, postfix, ...) to be sure to handle it
that way?


% >
% >My .forward and .procmailrc permissions are 600
% >
% >procmail log file, is 0 bytes.
% >
% >.forward contains following line:
% >\cdsuser, "IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #cadence"
% >or
% >"IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #cadence"

These are both Bourne-flavor format.  C-flavor shells, as you probably
know, use

  setenv VAR value
  set var=value

rather than

  VAR=value

and so I suspect that that's why procmail is never getting kicked off.


% >
% >Even with:
% >"IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #cadence"
% >Mail gets delivered successfully and goes to /var/mail/cadence like
% >normal mail.

That's not what you want, though, right?

Have you tried a .forward of just

  /usr/local/bin/procmail -f-

just to see that it will get kicked off?  Yes, I know that that's not a
great invocation, but it's simple and it will help to test the most basic
part and see if your mail software will allow will allow program
execution from .forward at all.


% >
% >How do I track, what procmail is doing at this point.

I would check the mail logs.


% >
% >Again, exact same setup works on another account with default shell
% >as 'csh'

I admit that that looks confusing and might throw a wrench at my
argument.  Is this other account on the same machine, though?  You
haven't told us anything other than that you're using tcsh, but I 
hope for the sake of my idea that there are other factors :-)


HTH & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) davidtg(_at_)justpickone(_dot_)org * than to live up to them. -- fortune 
cookie
(work) davidtgwork(_at_)justpickone(_dot_)org
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgpSKQlZui3z7.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>