« Return to Thread: Archive Plugin failed and all mails lost!

Re: Archive Plugin failed and all mails lost!

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

Reply to Author | View in Thread

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

 « Return to Thread: Archive Plugin failed and all mails lost!