Archive Plugin failed and all mails lost!

View: New views
9 Messages — Rating Filter:   Alert me  

Archive Plugin failed and all mails lost!

by xin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

We have a problem here regarding Archive Plugin for SquirrelMail.

Squirrel Mail Version: squirrelmail-1.4.10a-1.fc6
Archive Plugin version: Latest one - (well. 2004).
System: Fedora 6
PHP 5.1.6  Zend v2.1.0

Problems: When try to archive a lot of messages, the page goes blank  
and nothing is returned while the messages are gone. However, it works  
when only archiving a small amount of messages.

Any suggestions are appreciated!


Thanks,
xin

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: Archive Plugin failed and all mails lost!

by Laurent Henry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 I experience the same issue when using things like suhosin apache plugin,
limiting some php behavior (like size of files, etc).

  Don't you see anything in the Apache logs ?



Le Dim 17 mai 2009 06:09, Xin CHEN a écrit :

> Hi All,
>
> We have a problem here regarding Archive Plugin for SquirrelMail.
>
> Squirrel Mail Version: squirrelmail-1.4.10a-1.fc6
> Archive Plugin version: Latest one - (well. 2004).
> System: Fedora 6
> PHP 5.1.6  Zend v2.1.0
>
> Problems: When try to archive a lot of messages, the page goes blank
> and nothing is returned while the messages are gone. However, it works
> when only archiving a small amount of messages.
>
> Any suggestions are appreciated!
>
>
> Thanks,
> xin
>
> --------------------------------------------------------------------------




------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: Archive Plugin failed and all mails lost!

by Paul Lesniewski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No need to cross-post

On Sat, May 16, 2009 at 9:09 PM, Xin CHEN <xcheney@...> wrote:

> Hi All,
>
> We have a problem here regarding Archive Plugin for SquirrelMail.
>
> Squirrel Mail Version: squirrelmail-1.4.10a-1.fc6
> Archive Plugin version: Latest one - (well. 2004).
> System: Fedora 6
> PHP 5.1.6  Zend v2.1.0
>
> Problems: When try to archive a lot of messages, the page goes blank
> and nothing is returned while the messages are gone. However, it works
> when only archiving a small amount of messages.
>
> Any suggestions are appreciated!

http://squirrelmail.org/docs/admin/admin-11.html#blankpage
--
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: Archive Plugin failed and all mails lost!

by xin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks!

On 17/05/2009, at 6:26 PM, Paul Lesniewski wrote:

> No need to cross-post
>
> On Sat, May 16, 2009 at 9:09 PM, Xin CHEN <xcheney@...>  
> wrote:
>> Hi All,
>>
>> We have a problem here regarding Archive Plugin for SquirrelMail.
>>
>> Squirrel Mail Version: squirrelmail-1.4.10a-1.fc6
>> Archive Plugin version: Latest one - (well. 2004).
>> System: Fedora 6
>> PHP 5.1.6  Zend v2.1.0
>>
>> Problems: When try to archive a lot of messages, the page goes blank
>> and nothing is returned while the messages are gone. However, it  
>> works
>> when only archiving a small amount of messages.
>>
>> Any suggestions are appreciated!
>
> http://squirrelmail.org/docs/admin/admin-11.html#blankpage

Thanks a lot!


>
> --
> Paul Lesniewski
> SquirrelMail Team
> Please support Open Source Software by donating to SquirrelMail!
> http://squirrelmail.org/donate_paul_lesniewski.php
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> -----
> squirrelmail-plugins mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: squirrelmail-plugins@...
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
> List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: Archive Plugin failed and all mails lost!

by xin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the reply.

I checked the log and I found something:
[Mon May 11 09:29:32 2009] [error] [client 192.168.200.52] File does  
not exist:
/var/www/html/favicon.ico
Allowed memory size of 16777216 bytes exhausted (tried to allocate 136  
bytes)
Allowed memory size of 16777216 bytes exhausted (tried to allocate 136  
bytes)
Allowed memory size of 16777216 bytes exhausted (tried to allocate 44  
bytes)
Allowed memory size of 16777216 bytes exhausted (tried to allocate 128  
bytes)

So I guess I will need to increase the memory size for PHP.

Thanks,
xin

On 17/05/2009, at 6:24 PM, Laurent HENRY (EHESS/CRI) wrote:

> Hi,
> I experience the same issue when using things like suhosin apache  
> plugin,
> limiting some php behavior (like size of files, etc).
>
>  Don't you see anything in the Apache logs ?
>
>
>
> Le Dim 17 mai 2009 06:09, Xin CHEN a écrit :
>> Hi All,
>>
>> We have a problem here regarding Archive Plugin for SquirrelMail.
>>
>> Squirrel Mail Version: squirrelmail-1.4.10a-1.fc6
>> Archive Plugin version: Latest one - (well. 2004).
>> System: Fedora 6
>> PHP 5.1.6  Zend v2.1.0
>>
>> Problems: When try to archive a lot of messages, the page goes blank
>> and nothing is returned while the messages are gone. However, it  
>> works
>> when only archiving a small amount of messages.
>>
>> Any suggestions are appreciated!
>>
>>
>> Thanks,
>> xin
>>
>> --------------------------------------------------------------------------
>
>
>


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: Archive Plugin failed and all mails lost!

by Michael A. Puls II :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 18 May 2009 07:47:01 -0400, Xin CHEN <xcheney@...> wrote:

> I checked the log and I found something:
> [Mon May 11 09:29:32 2009] [error] [client 192.168.200.52] File does
> not exist:
> /var/www/html/favicon.ico
> Allowed memory size of 16777216 bytes exhausted (tried to allocate 136
> bytes)
> Allowed memory size of 16777216 bytes exhausted (tried to allocate 136
> bytes)
> Allowed memory size of 16777216 bytes exhausted (tried to allocate 44
> bytes)
> Allowed memory size of 16777216 bytes exhausted (tried to allocate 128
> bytes)
> So I guess I will need to increase the memory size for PHP.

Yeh, the plug-in always craps out for me unless I'm only archiving a few messages.

When you can control php's allowed memory, it helps to throw more memory at it, but that's not always possible. Even then, it'll only take you so far. I just quit using the plug-in because of this a while ago as it was useless for me.

It'd be cool if the plugin was more robust and could encode everything in lower memory situations. Not sure if this is the plugin's fault though or just the encoding libs or both.

--
Michael

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: Archive Plugin failed and all mails lost!

by Yan Seiner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael A. Puls II wrote:

> On Mon, 18 May 2009 07:47:01 -0400, Xin CHEN <xcheney@...> wrote:
>
>  
>> I checked the log and I found something:
>> [Mon May 11 09:29:32 2009] [error] [client 192.168.200.52] File does
>> not exist:
>> /var/www/html/favicon.ico
>> Allowed memory size of 16777216 bytes exhausted (tried to allocate 136
>> bytes)
>> Allowed memory size of 16777216 bytes exhausted (tried to allocate 136
>> bytes)
>> Allowed memory size of 16777216 bytes exhausted (tried to allocate 44
>> bytes)
>> Allowed memory size of 16777216 bytes exhausted (tried to allocate 128
>> bytes)
>> So I guess I will need to increase the memory size for PHP.
>>    
>
> Yeh, the plug-in always craps out for me unless I'm only archiving a few messages.
>
> When you can control php's allowed memory, it helps to throw more memory at it, but that's not always possible. Even then, it'll only take you so far. I just quit using the plug-in because of this a while ago as it was useless for me.
>
> It'd be cool if the plugin was more robust and could encode everything in lower memory situations. Not sure if this is the plugin's fault though or just the encoding libs or both.
>
>  
You can also configure your imap server to do all the hard work.  There
is a setting somewhere to have the serverside do all the heavy lifting.  
Once you set that, you can view big archives.  I have an archive with
65K messages; no problem.

--Yan

--
Yan Seiner

Support my bid for the 4J School Board.
Visit http://www.seiner.com/schoolboard



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: Archive Plugin failed and all mails lost!

by xin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 18/05/2009, at 10:07 PM, Michael A. Puls II wrote:

> On Mon, 18 May 2009 07:47:01 -0400, Xin CHEN  
> <xcheney@...> wrote:
>
>> I checked the log and I found something:
>> [Mon May 11 09:29:32 2009] [error] [client 192.168.200.52] File does
>> not exist:
>> /var/www/html/favicon.ico
>> Allowed memory size of 16777216 bytes exhausted (tried to allocate  
>> 136
>> bytes)
>> Allowed memory size of 16777216 bytes exhausted (tried to allocate  
>> 136
>> bytes)
>> Allowed memory size of 16777216 bytes exhausted (tried to allocate 44
>> bytes)
>> Allowed memory size of 16777216 bytes exhausted (tried to allocate  
>> 128
>> bytes)
>> So I guess I will need to increase the memory size for PHP.
>
> Yeh, the plug-in always craps out for me unless I'm only archiving a  
> few messages.
>
> When you can control php's allowed memory, it helps to throw more  
> memory at it, but that's not always possible. Even then, it'll only  
> take you so far. I just quit using the plug-in because of this a  
> while ago as it was useless for me.
>
> It'd be cool if the plugin was more robust and could encode  
> everything in lower memory situations. Not sure if this is the  
> plugin's fault though or just the encoding libs or both.
>
> --
> Michael
>
I have just increased the PHP memory from 16M to 256M, and hopefully  
this will do the trick.
One thing is that even the archiving failed, the messages should be  
kept. Not sure why all the messages are gone when the archiving failed.

-xin


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

Re: Archive Plugin failed and all mails lost!

by Michael A. Puls II :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 18 May 2009 08:26:23 -0400, Yan Seiner <yan@...> wrote:

>> It'd be cool if the plugin was more robust and could encode everything  
>> in lower memory situations. Not sure if this is the plugin's fault  
>> though or just the encoding libs or both.
>>
>>
> You can also configure your imap server to do all the hard work.  There
> is a setting somewhere to have the serverside do all the heavy lifting.
> Once you set that, you can view big archives.  I have an archive with
> 65K messages; no problem.

Well, I have 67 messages (some with attachments) in one folder. But, when I try to archive them all, I get:

Fatal error: Out of memory (allocated 30670848) (tried to allocate 35 bytes) in /htdocs/webmail/functions/imap_general.php on line 241

PHP mem usage is limited to 20MB.

But, in another folder, I have 15794 messages. To even be able to invoke an archive on them, I would have to "Show all" for the message list of the folder, which can't be done because it requires way over 20MB to do it (I have to turn on server-side sorting just to view the message list at all (in paginated form). Then, not even sure how much mem the server would need to actually initiate encode/compress into the zip archive.

So, the plug-in (for me) is basically useless as the more data you have, the more memory it needs to build the archive. That doesn't scale well. Of course, I'm not sure if that's the plug-in's fault or just SM. (Now, if it was my own server, I'd just throw some memory at it to at least handle a lot of messages or run apache, php and sm locally.)

It'd be cool if there was a way to use maybe more disk i/o and cpu instead of so much memory. They are of course limited too, but it seems like there could be a happy medium.

Instead, I just use Opera's built-in mail client M2 (via IMAP) to fetch all the messages in the folder and export them to an .mbox file, which works fine (but takes a bit).

What's the IMAP server setting you're referring to?

--
Michael

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins