RE: mail-filter.php and postfix

"Jens Hansen" <[email protected]> Wed, 26 Jan 2005 17:17:42 +0100
Newsgroups gmane.comp.horde.whups
Message-ID <[email protected]>
Jan, now i tried 300M, same error:

when i pipe a simple "hello" to the script, the same happens:

echo hello | /srv/www/htdocs/horde/whups/scripts/mail-filter.php --queue
Supportanfrage --type Emailanfrage --priority Low --state Unconfirmed

Allowed memory size of 314572800 bytes exhausted (tried to allocate 10240
bytes)

I think it loops while reading the message, but i don't know php.

// Read and parse the message.
$text = '';
while (!feof(STDIN)) {
    $text .= fgets(STDIN, 512);
}

Thanks

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Jan Schneider
Sent: Wednesday, January 26, 2005 5:12 PM
To: [email protected]
Subject: Re: [whups] mail-filter.php and postfix

Zitat von Jens Hansen <[email protected]>:

> In my postfix alias file i have:
>
> support:        "|/srv/www/htdocs/horde/whups/scripts/mail-filter.php
> --queue Supportanfrage --type Emailanfrage --priority Low --state
> Unconfirmed"
>
> but nothing shows up in whups.
>
> when i cat a mail.txt (saved txt mail from outlook) to the script it says:
>
> Allowed memory size of 104857600 bytes exhausted (tried to allocate 10240
> bytes)

Wow, that's a lot for this simple script. I guess this is not a huge message
you are testing with? You should try to raise the memory_limit in php.ini
even more, just to see if this script is really taking so much memory or if
you hit some loop causing the memory to fill up.

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: [email protected]


-- 
Whups mailing list - Join the hunt: http://horde.org/bounties/#whups
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]