procmail
[Top] [All Lists]

Re: What is wrong here?

2001-12-28 09:57:46
On 28/12/01 at 4:37pm, Martin McCarthy wrote:

|Ah!  Ok - it looks like something in your script or your MTA...nothing
|to do with procmail.

No, I know it is getting confussing, but the failure is at the procmail level. I
know it has to be something very simple, but I just do not know it! :-)

Let me explain the process without logs.

* How things should happen normally:

A person personA(_at_)domainA(_dot_)com sends an email to 
personB(_at_)domainB(_dot_)com (me). Pass
throught procmail and get handed to my script. My script replies with a confirm
message containing personB(_at_)domainB(_dot_)com (me) email modified with a 
cookie. It
should be something like 
personB+confirm+accept_10823243(_dot_)df342(_dot_)df3(_at_)domainB(_dot_)com(_dot_)

personA(_at_)domainA(_dot_)com gets that confirmation mail and replies to that 
address,
personB+confirm+accept_10823243(_dot_)df342(_dot_)df3(_at_)domainB(_dot_)com, 
procmail isolates the
confirm+accept_10823243.df342.df3 and handles that to my script.

The problem been here is that this .procmailrc will work:

## Begin good .procmailrc

EXTENSION="$1"
:0
* EXTENSION ?? .
{
  DELIMITER="+"
}

RECIPIENT="$LOGNAME$DELIMITER$EXTENSION(_at_)$HOST"
SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`

:0 w
| /home/d/david/tmda/bin/tmda-filter

EXITCODE=$?
DEFAULT=/dev/null

## End good .procmailrc

While this will not (changed only at the end on the RECIPIENT variable):

## Begin bad .procmailrc

EXTENSION="$1"
:0
* EXTENSION ?? .
{
  DELIMITER="+"
}

RECIPIENT="$LOGNAME$DELIMITER$EXTENSION(_at_)netbros(_dot_)com"
SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`

:0 w
| /home/d/david/tmda/bin/tmda-filter

EXITCODE=$?
DEFAULT=/dev/null

## End bad .procmailrc

While running it on debug mode, it fails to "see" the extension en delimiter,
hence my scripts do not get the data it needs and the process cycles. So, it is
not the script, it is something wrong on that very simple .procmailrc... I just,
as I said in the begining, do not know what is! :-)))

Help!!!! Please!!!! (it bothers me that such an small thing is 'toasting' my
brain)

Cheers!


-- 
David Collantes
http://www.bus.ucf.edu/david/
"The only source of knowledge is experience" - Albert Einstein

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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