procmail
[Top] [All Lists]

Why does this happen sometimes??

1997-04-29 02:41:00

I'll spare you all the entire digest (this time) ;-)).
Most of them are handled by my system correctly, but about once
a week I find the entire digest in my inbox.

Here is what my .procmailrc looks like:

:0 w: procmail.lock
* ^TO(_dot_)*procmail-d(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE(_dot_)*
| formail +1 -eds /usr/lib/mh/rcvstore +procmail

Whazz happenin'?

Lance

------- Forwarded Message

From lance(_at_)iac(_dot_)co(_dot_)jp  Tue Apr 29 17:45:13 1997
Received: from iac.co.jp (Akajishi.com [127.0.0.1])
        by Akajishi (8.8.5/8.8.5) with ESMTP id RAA00597
        for <lance>; Tue, 29 Apr 1997 17:45:05 +0900
Date: Tue, 29 Apr 1997 17:45:05 +0900
From: Lance Cummings <lance(_at_)iac(_dot_)co(_dot_)jp>
Message-Id: <199704290845(_dot_)RAA00597(_at_)Akajishi>

 Subject: pipetest
  Folder: /usr/mail/revjack                                     877
- ---[end log]--------------------------------------------------
Status:   


So my question is, is there anything special I need to do in the
procmail recipe to properly pipe mail to this (or any) perl script?

Thank you,
_________________
revjack(_at_)radix(_dot_)net

- ------------------------------

Date: Mon, 28 Apr 1997 18:25:09 -0500
From: Dennis Davison <ddavison(_at_)execpc(_dot_)com>
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Thanks and Has anyone seen this...
Message-ID: <336531D5(_dot_)55C8(_at_)execpc(_dot_)com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Thanks to those that helped with the "Reply-To:" delemia I had. It
appeared as though my problem was not using ":0 fh" but using just ":0".

Now onto something fun. Below is the header from one of my small list
subscribers. Look closly and you'll see after Content Type and before
hopfen(_at_)malz(_dot_)com there is a blank line. This blank line seperates the 
To:
and Subject: info. As a result Procmail will not see the To: or Subject
and will not forward it. It believes  that the blank line is now going
to start the mail. 

My question, is there any way around it on my end? I know I could use
the From: and be able to forward this guys stuff, but if he gets on a
couple of my lists, this won't work correctly.....

Received: from crystal.iac.net (root(_at_)crystal(_dot_)iac(_dot_)net 
[199.6.32.156]) by
columbia
..digiweb.com (8.7.5/8.7.3) with ESMTP id JAA28656 for
<beerscore(_at_)bjcp(_dot_)org>; Mon,
 28 Apr 1997 09:54:38 -0400 (EDT)
From: hopfen(_at_)malz(_dot_)com
Received: from [199.6.41.250] by crystal.iac.net with ESMTP
        id NAA19836; Mon, 28 Apr 1997 13:56:07 GMT
Date: Mon, 28 Apr 1997 13:56:07 GMT
X-Sender: hopfen(_at_)iac(_dot_)net
Message-Id: <v03102800af8a5b456fcd(_at_)[199(_dot_)6(_dot_)41(_dot_)250]>
In-Reply-To: 
<199704281316(_dot_)JAA02708(_at_)dave(_dot_)nrl(_dot_)navy(_dot_)mil>
References: <199704272156(_dot_)QAA23241(_at_)xnet(_dot_)com> from 
"korz(_at_)xnet(_dot_)com" at Apr
 27, 97 04:56:39 pm
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

hopfen(_at_)malz(_dot_)com
Date: Mon, 28 Apr 1997 09:49:40 -0400
To: beerscore(_at_)bjcp(_dot_)org
From: Ed Westemeier <hopfen(_at_)malz(_dot_)com>
Subject: Re: issues list


- -- 
Dennis Davison                          mailto:ddavison(_at_)execpc(_dot_)com   

                BJCP Representative for the Midwest
                        BJCP President

http://www.bjcp.org

- ------------------------------

Date: 28 Apr 1997 20:43:24 -0400
From: Roderick Schertler <roderick(_at_)argon(_dot_)org>
To: revjack(_at_)Radix(_dot_)Net
Cc: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: Piping mail to perl via procmail
Message-ID: <pzvi564q1f(_dot_)fsf(_at_)eeyore(_dot_)ibcinc(_dot_)com>

On Mon, 28 Apr 1997 22:28:35 GMT, revjack(_at_)Radix(_dot_)Net 
(revjack(_at_)radix(_dot_)net) said:

#!/usr/bin/perl
read(STDIN, $buffer, 655350);
[...]
mymail: syntax error at line 2: `read' unexpected

That error message is coming from /bin/sh, not perl.  For some reason sh
is interpreting your perl script instead of perl.  Is bash not the shell
you have listed in the password file, or do you have a SHELL assignment
in your procmailrc?  What happens when you run "sh -c mymail < test-message"?

As a workaround you could change the invocation in the recipe to

    | perl /path/to/mymail
    
but of course that's nasty.

- -- 
Roderick Schertler
roderick(_at_)argon(_dot_)org

- ------------------------------

Date: Tue, 29 Apr 1997 02:44:56 +0200
From: srb(_at_)cuci(_dot_)nl (Stephen R. van den Berg)
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: lists and the conventions they should adopt
Message-Id: 
<199704290044(_dot_)CAA11062(_at_)dionysus(_dot_)fw(_dot_)cuci(_dot_)nl>

etc. . .ad nauseum <g>

<Prev in Thread] Current Thread [Next in Thread>
  • Why does this happen sometimes??, Lance Cummings <=