• Disabling mail imports

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #6509  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
 #6512  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"
 #6513  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.
 #6518  by jllort
 
Added in our roapmap for version 5.X
 #6525  by pavila
 
In OpenKM 5 you can disable the mail import process setting to 0, as you proposed.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.