Bulk Delete Spam Tickets

Moderator: crythias

Locked
JonT
Znuny newbie
Posts: 1
Joined: 04 Jun 2013, 00:25
Znuny Version: 3.2.7
Real Name: Jonathan
Company: Conexim

Bulk Delete Spam Tickets

Post by JonT »

Hi All,

I've just upgraded our OTRS 2.1 install to 3.2 and our users are quite happy with it.

On our old 2.1 install, we had a modification made to it years ago where there was a 'Junk' button next to each ticket in the ticket queue which would immediately send a ticket to the Junk queue (with an agent that automatically deletes it).

We get about 20 spam a day (we have spam filtering which filters out substantially more) and the current process in 3.2 involves one of the two:
1. Selecting an individual ticket (checkbox) and then clicking 'Delete' or 'Spam' (they do the same thing). This is done for each ticket and is a two step process.
2. Selecting all the spam tickets in a given queue and then use the Bulk operation to move them to the Spam queue. This is a three step process.

What I'd like to do ideally is:
1. Select all of the spam tickets in a given queue.
2. Have the 'Spam' or 'Delete' button appear so that they can all be deleted at once.

I've attached a screenshot of what I'm hoping to have.

Thoughts anyone?
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Bulk Delete Spam Tickets

Post by reneeb »

You could install http://opar.perl-services.de/bin/index. ... QuickClose . After installation you can create a new "quick close" in the admin area that moves tickets to "Junk" and closes the tickets. Then you get a dropdown in ticket zoom and ticket overviews. You can check the spam mails and select the "quick close" and those tickets are moved and closed...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Bulk Delete Spam Tickets

Post by crythias »

or just move the queue for spam to junk and have generic agent delete them on a schedule.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
pvanos
Znuny newbie
Posts: 23
Joined: 26 Sep 2014, 13:59
Znuny Version: 3.3.10
Company: KSZ-BCSS

Re: Bulk Delete Spam Tickets

Post by pvanos »

Suppose I would like to have the GenericAgent job delete everything in the Junk (or SPAM) queue, only everything which is OLDER THAN A SPECIFIC NUMBER OF DAYS ?
How could one do that ?

The reason for this being that I would like to keep a small history of "Junk" tickets.
Say for a couple of weeks.
This in order to be able to check for a false positive, in case of discussions with a customer who complains having sent a ticket, that has never been found/treated by anyone, as it did end up in the Junk queue...
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Bulk Delete Spam Tickets

Post by reneeb »

Create new GenericAgent, run it periodically. In Ticket filter, select the queues you want to process, configure "Create times" -> Ticket created more than 1 months ago.

In the section "Execute Ticket Commands" enable ticket deletion. You're done...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Locked