List Info

Thread: Messages left on server




Messages left on server
user name
2006-07-05 10:07:13
Hi!

We are using the POP3 protocol with Eventum 1.6.1 to fetch
messages from 
the server. Works fine except that fetched messages remain
on the server 
causing the message box to grow and the fetching to get
slower and slower.

The "Leave Copy of Messages On Server" option is
*not* checked.

Anyone seen this before?

Harri.


-- 
Eventum Users Mailing List
For list archives: http://lists.mys
ql.com/eventum-users
To unsubscribe:    http:
//lists.mysql.com/eventum-users?unsub=bondyahoo.com

Messages left on server
user name
2006-07-07 04:57:20
Hi Harri,

Harri Porten wrote:
> Hi!
> 
> We are using the POP3 protocol with Eventum 1.6.1 to
fetch messages from 
> the server. Works fine except that fetched messages
remain on the server 
> causing the message box to grow and the fetching to get
slower and slower.
> 
> The "Leave Copy of Messages On Server"
option is *not* checked.

Is the script ending cleanly? Or are there errors being
generated? You 
might want to open up include/class.support.php, and go to
about line 
707. It should look like this:

             if ($res > 0) {
                 // need to delete the message from the
server?
                 if (!$info['ema_leave_copy']) {
                     imap_delete($mbox, $num);
                 } else {
                     // mark the message as already read
                     imap_setflag_full($mbox, $num,
"\\Seen");
                 }
             }

I would add some debug information here to see if
imap_delete is being 
called. I would also try adding imap_expunge($mbox);
directly after the 
call to imap_delete.

Please note, even though you are using POP3, the imap_*
functions still 
work.

Best Regards,
-- 
Bryan Alsdorf, Eventum Software Development Manager
MySQL AB, www.mysql.com

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

-- 
Eventum Users Mailing List
For list archives: http://lists.mys
ql.com/eventum-users
To unsubscribe:    http:
//lists.mysql.com/eventum-users?unsub=bondyahoo.com

Messages left on server
user name
2006-07-07 18:43:41
On Thu, 6 Jul 2006, Bryan Alsdorf wrote:

>> We are using the POP3 protocol with Eventum 1.6.1
to fetch messages from 
>> the server. Works fine except that fetched messages
remain on the server 
>> causing the message box to grow and the fetching to
get slower and slower.
>> 
>> The "Leave Copy of Messages On Server"
option is *not* checked.
>
> Is the script ending cleanly?

Yes. The lock file is removed for example.

> Or are there errors being generated?

Not unless there is a real error with the POP3 server.

> You might 
> want to open up include/class.support.php, and go to
about line 707. It 
> should look like this:
>
>            if ($res > 0) {
>                // need to delete the message from the
server?
>                if (!$info['ema_leave_copy']) {
>                    imap_delete($mbox, $num);
>                } else {
>                    // mark the message as already read
>                    imap_setflag_full($mbox,
$num, "\\Seen");
>                }
>            }
>
> I would add some debug information here to see if
imap_delete is being 
> called.

It is.

> I would also try adding imap_expunge($mbox); directly
after the call 
> to imap_delete.

Doesn't the pose the risk of wrecking the list of indices?
That's what I 
got from some posting on the Net regarding imap_expunge()
problems.

Anyway, from the debug output I added the control flow seems
okay. It's 
just that expunging does not work. No matter whether I use
imap_expunge() 
or the expunge flag for the (missing) imap_close() call.

Starts to look like an incompatiblity between my version of
PHP and the 
POP server. Will have to reproduce this with a standalone
script.

Harri.

-- 
Eventum Users Mailing List
For list archives: http://lists.mys
ql.com/eventum-users
To unsubscribe:    http:
//lists.mysql.com/eventum-users?unsub=bondyahoo.com

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )