Page 1 of 1

Disabling mail imports

PostPosted:Tue Sep 21, 2010 11:45 pm
by ali
How does one disable mail import? If I set schedule.mail.importer=0, I get this exception:

java.lang.IllegalArgumentException: Non-positive period.
at java.util.Timer.schedule(Timer.java:221)


What is the proper way to disable mail imports while retaining the ability to send email notifications to other users?

Thanks

Re: Disabling mail imports

PostPosted:Wed Sep 22, 2010 8:54 pm
by jllort
It can not be disabled, but you can set a extra large time, 0 it'll be a very short schedule period, you need the greatest integer supported by java I think it's 2147483647 ( if are minutes, then the cycle it'll be repeated each 1491308 days, that's every 4085 year - I'll not be here to see it :) )

To ensure if it's the max int value in java you could search in google for "java integer range values"

Re: Disabling mail imports

PostPosted:Wed Sep 22, 2010 9:40 pm
by ali
In many environments, it's a regulatory requirement to disable mail imports, so this would be a good feature to have. As for using "greatest integer supported by java", I think this parameter is in seconds? (I'm still not sure since I'm told the version 4.0 was in minutes but 4.1 is in seconds...) Still, given the environment where this installation is running, we must show the auditors that the mail import can't happen, even in an arbitrarily distant future.

At any rate, using 0 -- and causing that exception I noted -- totally stopped the mail import (since presumably the class never loaded); now, I don't know what other functionality I disabled by doing this, but it seems to work just fine.

Thanks.

Re: Disabling mail imports

PostPosted:Thu Sep 23, 2010 11:42 am
by jllort
Added in our roapmap for version 5.X

Re: Disabling mail imports

PostPosted:Thu Sep 23, 2010 6:24 pm
by pavila
In OpenKM 5 you can disable the mail import process setting to 0, as you proposed.