Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Download all emails Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
wojo
Newbie
Newbie
Avatar

Joined: 24 May 2013
Location: Sweden
Online Status: Offline
Posts: 30
Posted: 01 May 2016 at 10:40am | IP Logged Quote wojo

Hi,

I need to give my users the ability to download all emails on their account. Is there a way to zip and let them download everything?
Back to Top View wojo's Profile Search for other posts by wojo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 02 May 2016 at 5:00am | IP Logged Quote Igor

Yes, there's a plugin for exporting mails as ZIP and importing those back:

afterlogic/plugin-import-export-mail

It's currently not documented yet, it doesn't need much of a configuration though - just unpack it and rename the plugin directory so it's found at data/plugins/import-export-mail and add the following key to array defined in data/settings/config.php file:

Code:
'plugins.import-export-mail' => true,


Upon enabling the plugin, there should be Import/Export button in Manage Folders screen. Note that each folder is imported/exported separately.

Hope this helps!

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
gfit
Newbie
Newbie


Joined: 21 September 2014
Online Status: Offline
Posts: 17
Posted: 09 May 2016 at 11:46pm | IP Logged Quote gfit

Hello!

I have followed the above instructions, but it seems to stop at the 'creating zip' button. The folder contains only one message, so it seems that there is a problem in the plugin or server setup.

Any pointers would be much appreciated.

Thanks.
Back to Top View gfit's Profile Search for other posts by gfit
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 May 2016 at 2:48am | IP Logged Quote Igor

Try enabling debug logging in AdminPanel, with log verbosity set to Debug, reproduce the problem and see if there are any errors in the logs. Checking web server and PHP logs may be helpful as well.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
gfit
Newbie
Newbie


Joined: 21 September 2014
Online Status: Offline
Posts: 17
Posted: 10 May 2016 at 5:19am | IP Logged Quote gfit

My web server log reads as follows:

PHP Fatal error: Call to private method CImportExportMailPlugin::oApiFileCacheManager() from context '' in /var/www/html/webmail/data/plugins/import-export-mail/index.php on line 261

I have AL Webmail Lite v.7.6.6 installed.
Back to Top View gfit's Profile Search for other posts by gfit
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 11 May 2016 at 5:25am | IP Logged Quote Alex

Hi,
we've checked the reported issue and found out that plugin code was not compatible with PHP 5.3. It was fixed and you can re-download plugin from github and try it again.

We hope this helps!

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
webdbase2
Valued Community Member
Valued Community Member


Joined: 25 March 2015
Location: Bulgaria
Online Status: Offline
Posts: 81
Posted: 11 May 2016 at 6:31am | IP Logged Quote webdbase2

I downloaded the new version and here's what I got:
Code:
PHP Fatal error:  Call to undefined method CApiFilecacheManager::isFileExists() in /var/www/webmail/data/plugins/import-export-mail/index.php on line 164
Back to Top View webdbase2's Profile Search for other posts by webdbase2
 
gfit
Newbie
Newbie


Joined: 21 September 2014
Online Status: Offline
Posts: 17
Posted: 11 May 2016 at 8:36am | IP Logged Quote gfit

Alex & Igor,

It now works here under PHP 5.3.3

Please also note that there is a couple of non-translatable strings ("Later", "Close") in in the /templates directory.

Cheers.
Back to Top View gfit's Profile Search for other posts by gfit
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 12 May 2016 at 3:48am | IP Logged Quote Alex

webdbase2

It works for us, have no idea why this happens. Maybe you copied something in wrong place or older version of the plugin still remains. Try to reinstall everything from scratch.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 12 May 2016 at 4:24am | IP Logged Quote Alex

gfit,

thank you for the point. We've just added 2 new language constants and pushed into the repository.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
webdbase2
Valued Community Member
Valued Community Member


Joined: 25 March 2015
Location: Bulgaria
Online Status: Offline
Posts: 81
Posted: 29 May 2016 at 12:57pm | IP Logged Quote webdbase2

Alex wrote:
Try to reinstall everything from scratch.

I did, same result.
[Sun May 29 22:54:04 2016] [error] [client xx.xx.xx.xx] PHP Fatal error: Call to undefined method CApiFilecacheManager::isFileExists() in /var/www/webmail/data/plugins/import-export-mail/index.php on line 164
I searched the whole source code for isFileExists and there was none. So it doesn't work with 7.5.0.
Back to Top View webdbase2's Profile Search for other posts by webdbase2
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 30 May 2016 at 2:50am | IP Logged Quote Igor

The plugin was only tested with the latest 7.6 version of AfterLogic WebMail. In 7.5, multiple methods of PHP API were called differently, so it probably won't work there indeed.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide