• [solved] Automatic detouch attachments from mail

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #29631  by Fohnbit
 
Hello!

I have a scan mail address. All mails from this account has one ore more attachments.

Is it possible, that any attachment will be copy in a special folder after download?

I´m new in OKM and the search doesn´t bring a result for me.

Thank you!
Last edited by Fohnbit on Mon Aug 25, 2014 5:45 pm, edited 1 time in total.
 #29643  by jllort
 
Yes it's possible the idea should be :
1- Import mail to openkm ( here you got several options, automatic, manual etc.. )
2- Create automation task to process mail creation ( post event ). Into automation you'll receive UUID, with it you can get Mail object OKMMail.getInstance().getProperties() ( http://doxygen.openkm.com/openkm/d3/d19 ... _mail.html) and iterate across the attachments ( http://doxygen.openkm.com/openkm/d9/d79 ... _mail.html ) if you got it ( each attachment is a document ). Then as a document you can move etc... http://doxygen.openkm.com/openkm/de/de7 ... ument.html

The classes you should get under control are under com.openkm.api http://doxygen.openkm.com/openkm/d9/d6d ... _1api.html

You could do it as a scripting but I suggest do your own java class ( you'll be able to debug while you build it etc... ), take a look here http://wiki.openkm.com/index.php/Extend_automation_6.0 and also will be good idea configure development IDE http://wiki.openkm.com/index.php/Developer_Guide
 #29649  by Fohnbit
 
Hello!

Wow, thank you for this details!
But I´m afraid I´m not so familiar with code and Java.

Thank you!
 #29663  by jllort
 
To get 100% power of application is good idea have got some java skills, because building java classes you can easilly extend some features, like automation and get application working on way you need.
 #29670  by Fohnbit
 
Ok, I will learn the next month :-)

Thanks for your help(!)

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.