Author |
|
udgd66 Valued Community Member


Joined: 06 December 2010 Location: Italy
Online Status: Offline Posts: 98
|
Posted: 16 December 2010 at 2:44am | IP Logged
|
|
|
I'm seeing that DIR /data/temp contains a lot of temporary files, also if these files are already deleted from long time.
It's necessary to make purge manually sometime?
Bye and again thanks
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 16 December 2010 at 5:24am | IP Logged
|
|
|
WebMail attempts to purge that directory, however, due the nature of WebMail architecture, it's not possible to tell when the session has actually expired; particularly since multiple users might access the same account.
For those who'd like to purge the directory periodically and make sure that files currently used are intact, there's a simple script. You can either run it from web browser or put it in crontab to be run, say, once a day. The script is designed to be located in root directory of WebMail Pro. In addition, the script remembers when it was run previously, that reduces the amount of extra job.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
udgd66 Valued Community Member


Joined: 06 December 2010 Location: Italy
Online Status: Offline Posts: 98
|
Posted: 16 December 2010 at 6:41am | IP Logged
|
|
|
Great!!!
I put this line in my crond is correct?
@daily /usr/bin/php /home/mario/cron_clear_temp.php
Tnx
|
Back to Top |
|
|
udgd66 Valued Community Member


Joined: 06 December 2010 Location: Italy
Online Status: Offline Posts: 98
|
Posted: 08 February 2011 at 2:59am | IP Logged
|
|
|
cron_clear_temp.php no longer works with 6.0 version.
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 10 February 2011 at 7:07am | IP Logged
|
|
|
In WebMail Pro 6.0.1 we've just released, there's a number of API methods available, you can find sample
scripts in examples directory. One of those is clear-tmp.php which should do the trick.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
udgd66 Valued Community Member


Joined: 06 December 2010 Location: Italy
Online Status: Offline Posts: 98
|
Posted: 11 February 2011 at 12:30am | IP Logged
|
|
|
Work porfectly. Tanx.
|
Back to Top |
|
|
udgd66 Valued Community Member


Joined: 06 December 2010 Location: Italy
Online Status: Offline Posts: 98
|
Posted: 22 February 2011 at 12:19am | IP Logged
|
|
|
I don't know why, but clear-tmp.php function, doesn't work since one week.
It return this error:
Code:
PHP Fatal error: Call to a member function ClearTempFiles() on a non-object in /var/www/webmail/examples/clear-tmp.php on line 22
|
|
|
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 22 February 2011 at 2:41am | IP Logged
|
|
|
Did you make any changes to api.php file?
In clear-tmp.php file, replace include_once with require_once.
Does it show any different error after that?
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
udgd66 Valued Community Member


Joined: 06 December 2010 Location: Italy
Online Status: Offline Posts: 98
|
Posted: 22 February 2011 at 6:07am | IP Logged
|
|
|
No, i didn't make any change to api.php file. It's original of 9/02/2011 17:52
With "require_once" i have the same error!!
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 22 February 2011 at 6:40am | IP Logged
|
|
|
Absolutely no idea then, particularly since, according to your own statement, the script worked fine
for some time and then it stopped working all of a sudden.
We'd like to take a look into this, FTP access would be helpful. Please send the details via
our HelpDesk and include the URL of this thread.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
udgd66 Valued Community Member


Joined: 06 December 2010 Location: Italy
Online Status: Offline Posts: 98
|
Posted: 09 March 2011 at 11:56pm | IP Logged
|
|
|
Hi at all,
in version 6.0.2, the clear-tmp.php function return: "WebMail API not allowed".
Why?
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 10 March 2011 at 1:47am | IP Logged
|
|
|
Do you run the script placed to examples directory? If you put it elsewhere, make sure you have
assigned WM_ROOTPATH correctly, it should contain filesystem path to main directory of WebMail Pro.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
udgd66 Valued Community Member


Joined: 06 December 2010 Location: Italy
Online Status: Offline Posts: 98
|
Posted: 10 March 2011 at 3:02am | IP Logged
|
|
|
Sorry Igor i was wrong: i'm trying to run php not as root (i'm using linux)
I think that the 6.0.2 version, is quite stable.
I almost finished my tests, after i think to use webmail in my company.
Bye bye
|
Back to Top |
|
|