Setup generic Agent to delete tickets with big attachments

Hi , I've looked at the Generic Agent web interface , but couldn't find a way to run a job that removes tickets with big attachments. Is there a way to add this to the Config.pm , or maybe somewhere else? TIA Daniel

Hi Danie, Danie schrieb:
Hi ,
I've looked at the Generic Agent web interface , but couldn't find a way to run a job that removes tickets with big attachments. Is there a way to add this to the Config.pm , or maybe somewhere else?
I've written a GenericAgent module to extend the features of the GenericAgent => see attachments within http://lists.otrs.org/pipermail/otrs-de/2006-May/006138.html You could edit my module. Instead of examine the ticket-history (as I do), you can examine the attachment-sizes within the ticket-articles. See http://dev.otrs.org/ Kernel::System::Ticket::Article with all the attachment-functions for some guidance.
TIA Daniel
Bye, Alex

Hi Alex , Where do I implement these changes? , not much of a programmer so not sure where to begin. Do I insert my own module? Alexander Scholler wrote:
Hi Danie,
Danie schrieb:
Hi ,
I've looked at the Generic Agent web interface , but couldn't find a way to run a job that removes tickets with big attachments. Is there a way to add this to the Config.pm , or maybe somewhere else?
I've written a GenericAgent module to extend the features of the GenericAgent => see attachments within http://lists.otrs.org/pipermail/otrs-de/2006-May/006138.html
You could edit my module. Instead of examine the ticket-history (as I do), you can examine the attachment-sizes within the ticket-articles. See http://dev.otrs.org/ Kernel::System::Ticket::Article with all the attachment-functions for some guidance.
TIA Daniel
Bye, Alex _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/

Hi Danie,
Where do I implement these changes? , not much of a programmer so not sure where to begin. Do I insert my own module?
I think you will have big problems in writting your own GenericAgent-module without programmer's experience. I know C/PHP quite good, but Perl is really a hard workout... I developed my module out of the AutoPriorityIncrease.pm modul. You should make a copy of * AutoPriorityIncrease.pm or * DeleteOldClosedTickets.pm (take the one that seems to be closer to your final needs) within the directory ~/Kernel/System/GenericAgent Have a very close at the mentioned
See http://dev.otrs.org/ Kernel::System::Ticket::Article with all the attachment-functions for some guidance. to know how to change that new module. Activate this module though GenericAgent.pl out of your console or through WebGUI-GenericAgent.
Use some debug-output within your module and watch your debug-location (syslogd e.g. /var/log/messages or ~/var/log/otrs.log) to see what is your module actually doing. Bye, Alex
participants (2)
-
Alexander Scholler
-
Danie