[whups] mail-filter.php and postfix

Jens Hansen mailinglists at eminenz.ath.cx
Wed Jan 26 09:44:16 PST 2005


It does, when i put the exit before the loop it exits the scripts. I can put
it even in the loop. But as soon as the exit is after the loop, i get the
error message.

-----Original Message-----
From: whups-bounces at lists.horde.org [mailto:whups-bounces at lists.horde.org]
On Behalf Of Jan Schneider
Sent: Wednesday, January 26, 2005 6:42 PM
To: whups at lists.horde.org
Subject: RE: [whups] mail-filter.php and postfix

Zitat von Jens Hansen <mailinglists at eminenz.ath.cx>:

> Mike,
>
> I did, and i am still getting the same error. it does not go after the
loop!
>
> # echo "test" | php mail-filter.php --queue "Supportanfrage" --type
> "Emailanfrage" --priority "1. Low" --state "Unconfirmed"
> Allowed memory size of 104857600 bytes exhausted (tried to allocate 10240
> bytes)

It looks like it doesn't even reach that loop. Try putting "exit;" into the
script to find out which line causes this error.

> -----Original Message-----
> From: mbydalek at mobilemini.com [mailto:mbydalek at mobilemini.com]
> Sent: Wednesday, January 26, 2005 5:33 PM
> To: mailinglists at eminenz.ath.cx; whups at lists.horde.org
> Subject: RE: [whups] mail-filter.php and postfix
>
>> I think it loops while reading the message, but i don't know php.
>>
> Try this:
>
> // Read and parse the message.
> $text = '';
> while (!feof(STDIN)) {
>     $text .= fgets(STDIN, 512);
>     echo $test . "\n";
> }
> exit;
>
> And see what happens... For me I get this:
> ]# echo "hi" | php mail-filter.php --queue "Test Queue" --type "Problem"
> --priority "1. Low" --state "New"
> hi

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-- 
Whups mailing list - Join the hunt: http://horde.org/bounties/#whups
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: whups-unsubscribe at lists.horde.org




More information about the whups mailing list