Use email sender's default queue on ticket create

Hello, I’m running RT 3.8.7 and would like to be able to set a ticket’s
queue on create to be the default queue of the user creating the ticket,
where they are creating by email (i.e. From: is their RT email) and have
a default queue set. In my case I can’t set per-queue email addresses,
and so all emails flow through to a single correspond email address and
into the system default queue. It’s becoming a chore changing the queue
on new email tickets from the default queue to the user’s queue :slight_smile:

I expect I need to use a scrip to do this, and have looked through the
contributions on the wiki and can find a few examples that are close.
Before I start to write my first custom scrip action, I thought I’d ask
if anyone else has done this?

Or am I missing something else that will achieve the desired result? I
thought the default queue as set on a user might have made this happen
automatically, but it seems like that’s not the case.

Thanks,

lh.

Hello, I’m running RT 3.8.7 and would like to be able to set a ticket’s
queue on create to be the default queue of the user creating the ticket,
where they are creating by email (i.e. From: is their RT email) and have
a default queue set. In my case I can’t set per-queue email addresses,
and so all emails flow through to a single correspond email address and
into the system default queue. It’s becoming a chore changing the queue
on new email tickets from the default queue to the user’s queue :slight_smile:

I expect I need to use a scrip to do this, and have looked through the
contributions on the wiki and can find a few examples that are close.
Before I start to write my first custom scrip action, I thought I’d ask
if anyone else has done this?

Or am I missing something else that will achieve the desired result? I
thought the default queue as set on a user might have made this happen
automatically, but it seems like that’s not the case.

I suggest you search the mailing list, this comes up pretty often,
with people suggesting procmail solutions and scrip solutions.

In fact, it was discussed within the last week.

The default queue preference has nothing to do with inbound email.

-kevin

Hi Kevin,

Thanks for your reply.

I suggest you search the mailing list, this comes up pretty often,
with people suggesting procmail solutions and scrip solutions.

I have searched the list, and couldn’t find anything along the lines of
what I’m looking to do. It’s always possible I’ve missed something
pertinent, and apologies if that’s the case, but I think perhaps I
didn’t make clear enough exactly what I want to achieve. It’s certainly
similar to Jason’s recent question:

The default queue preference has nothing to do with inbound email.

Sure, I understand that. AFAICT it just affects which queue is selected
in the quick new ticket creation drop-down. To my way of thinking
though, it would have made sense if this also allowed overriding the
queue for any new tickets sent via email by the user that would
otherwise have gone to the default queue.

The procmail solution would work calling rt-mailgate with the right
–queue based on sender address, but that would require maintaining the
mapping of email addresses to queues in a procmail config which I’d like
to avoid. Since we already set the user’s default queue (for a different
reason), this mapping of email address to the right queue already exists
within RT, hence why I was hoping to achieve it with a scrip only.

So I’m looking for some help with a scrip that on create, checks if the
requestor email is a user with a default queue set, and if so changes
the queue from the system default.

Anyone have anything similar?