5 messages in com.mysql.lists.eventum-usersRe: Problem with download_emails.php
FromSent OnAttachments
Andreas Otto19 Jan 2006 07:32 
Bryan Alsdorf19 Jan 2006 08:30 
Andreas Otto19 Jan 2006 08:35 
Andreas Otto20 Jan 2006 01:14 
Andreas Otto20 Jan 2006 05:18 
Subject:Re: Problem with download_emails.php
From:Bryan Alsdorf (bry@mysql.com)
Date:01/19/2006 08:30:36 AM
List:com.mysql.lists.eventum-users

Andreas,

Have you enabled PHP error reporting? PHP could be running out of memory, depending on the size of the email it is downloading.

http://eventum.mysql.org/wiki/index.php/Displaying_PHP_errors

Best Regards, /bryan

Andreas Otto wrote:

Hi,

on one installation download_emails.php gives me real headaches.

Every invocation of the file creates a lock file but does not remove the lock file.

The first invocation of download_email.php:

/usr/bin/php -q download_emails.php tic@dkd.de mail.dkd.de Total eMails: 2 Before getEmailInfo

There are 2 eMails on the mail server. The script terminates after fetching the first eMail.

Hence all following invocations of download_emails.php will terminate due to the lock-file not being removed.

/usr/bin/php -q download_emails.php tic@dkd.de mail.dkd.de Error: Another instance of the script is still running for the specified account. If this is not accurate, you may fix it by running this script with '--fix-lock' as the 4th parameter or you may unlock ALL accounts by running this script with '--fix-lock' as the only parameter.

Invocing download_emails.php with --fix-lock removes the lock-file.

A new invocation of download_email.php:

/usr/bin/php -q download_emails.php tic@dkd.de mail.dkd.de Total eMails: 2 Before getEmailInfo

Which means I am getting the first eMail again, so --fix-lock does not help here.

I am using PHP 4.3.10-16 (cli) (built: Aug 24 2005 20:25:01) and Eventum 1.7.0.

Any ideas how to debug this further? Which part of Support::getEmailInfo?

Are you MySQL certified? www.mysql.com/certification