Junk link within email [Solved]

English! place to talk about development, programming and coding
Post Reply
n0manarmy
Znuny newbie
Posts: 14
Joined: 08 Jun 2010, 21:53
Znuny Version: 2.47
Location: Baltimore, MD
Contact:

Junk link within email [Solved]

Post by n0manarmy »

Anyone have any suggestions or existing code on how to include a link within the OTRS new ticket notification to move it to the junk queue?
Last edited by n0manarmy on 19 Aug 2010, 20:56, edited 1 time in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Junk link within email

Post by crythias »

You could use a Postmaster Filter for this purpose.

If I may ask, what's the purpose of manually _creating_ a junk queue ticket?
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
n0manarmy
Znuny newbie
Posts: 14
Joined: 08 Jun 2010, 21:53
Znuny Version: 2.47
Location: Baltimore, MD
Contact:

Re: Junk link within email

Post by n0manarmy »

crythias wrote:You could use a Postmaster Filter for this purpose.

If I may ask, what's the purpose of manually _creating_ a junk queue ticket?
I might not be using the postmaster filter correctly then. At this time I've got 9 filters in for common spam that we're aware. 3 to 4 times a day though we will get random spam that is honest to goodness spam, asian male enhancers, russian discovery channel episodes (gotta love google chrome translator.)

If I were to attempt to create a postmaster filter for each one of these changed emails I would probably be sitting in the 100's. We've given up on creating filters and now just throw them to the junk queue. Often times though I will check emails from my phone and see the help desk requests. As of now, I follow the link in the email, log in, zoom in, select the junk queue, and then hit move. If there was a link within the email that could move it to a certain queue (defined by the administrator) this could be utilized by people who have mobile devices to either junk items, or quickly transfer tickets to respective queues.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Junk link within email

Post by crythias »

I'd strongly consider a spam filter (spamassassin, assp, postini) or forwarding to a GMail account (because it has good spam filter) but, barring that...

Consider this: Assign aliases to your fetching email box, such as junkq@yourdomain.com

When fetched, use a postmasterfilter that will
Match
Header 1: To: junkq@...
Set
Header 1: X-OTRS-FollowUp-Queue Junk

Or don't assign alias, but simply reply with #junk
Match
Header 1: Body: #junk
Set
Header 1: X-OTRS-FollowUp-Queue Junk

There's a possibility you might be able to use a RegEx:
Match
Header 1: Body: #queue ([a-zA-Z0-9_\-\.]+)
Set
Header 1: X-OTRS-FollowUp-Queue [***]

Hope this can help a bit. Note that if you use the RegEx, you may not necessarily have quality assurance of verified queuename being used, which could break a ticket (?) or not get re-assigned if the queue is misspelled.
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
n0manarmy
Znuny newbie
Posts: 14
Joined: 08 Jun 2010, 21:53
Znuny Version: 2.47
Location: Baltimore, MD
Contact:

Re: Junk link within email

Post by n0manarmy »

I like the idea of using the response back to then catch the response and then auto assign. Also, we've got spam blocking on our campus (apparently) but we're a huge campus and often times we'll have a rash of spam that beats the filters for a week or two before they get snuffed. In that time, our support mailbox gets slammed.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Junk link within email

Post by crythias »

I thought about this after posting:
Match
Header 1: Body: #queue ([Junk|Raw|Misc|Queuename::Subqueue])
Set
Header 1: X-OTRS-FollowUp-Queue [***]

This allows exact choice of queue but misspellings and wrong case are possibly ignored.
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
jackhues+
Znuny newbie
Posts: 1
Joined: 19 Jul 2010, 06:42
Znuny Version: 1

Re: Junk link within email

Post by jackhues+ »

Post Reply