Author |
|
wojo Newbie
Joined: 24 May 2013 Location: Sweden
Online Status: Offline Posts: 30
|
Posted: 01 May 2016 at 10:40am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 02 May 2016 at 5:00am | IP Logged
|
|
|
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 |
|
|
gfit Newbie
Joined: 21 September 2014
Online Status: Offline Posts: 17
|
Posted: 09 May 2016 at 11:46pm | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 10 May 2016 at 2:48am | IP Logged
|
|
|
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 |
|
|
gfit Newbie
Joined: 21 September 2014
Online Status: Offline Posts: 17
|
Posted: 10 May 2016 at 5:19am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 11 May 2016 at 5:25am | IP Logged
|
|
|
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 |
|
|
webdbase2 Valued Community Member
Joined: 25 March 2015 Location: Bulgaria
Online Status: Offline Posts: 81
|
Posted: 11 May 2016 at 6:31am | IP Logged
|
|
|
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 |
|
|
gfit Newbie
Joined: 21 September 2014
Online Status: Offline Posts: 17
|
Posted: 11 May 2016 at 8:36am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 12 May 2016 at 3:48am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 12 May 2016 at 4:24am | IP Logged
|
|
|
gfit,
thank you for the point. We've just added 2 new language constants and pushed into the repository.
Regards,
Alex
|
Back to Top |
|
|
webdbase2 Valued Community Member
Joined: 25 March 2015 Location: Bulgaria
Online Status: Offline Posts: 81
|
Posted: 29 May 2016 at 12:57pm | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 30 May 2016 at 2:50am | IP Logged
|
|
|
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 |
|
|