[rt-users] Mailing to multiple queues in RT2.0.14...

Smylers smylers at gbdirect.co.uk
Fri Aug 16 06:09:53 EDT 2002


Patrick Harlin wrote:

> I wonder if there is some way to configure rt-mailgate to send to
> multiple queues at the same time.

That doesn't really make sense -- a particular ticket is only going to
be in a single queue (that's the way 'RT' does things), and a particular
message is only going to pertain to one ticket.

> But I would like to have the feature where the mail goes both to
> "tekqueue" and "sysqueue", by mailing double at mydomain.com

If you wanted a single mail to create two new tickets then you could
easily achieve that.  But once the tickets exist they are entirely
independent entities which just happened to have been seeded from the
same e-mail.

Just do the doubling in your MTA rather than 'RT'.  Something like this
in /etc/aliases should do it:

  double: tek-q, sys-q
  tek-q:  "|/var/rt2_14/bin/rt-mailgate --queue tekqueue --action correspond"
  sys-q:  "|/var/rt2_14/bin/rt-mailgate --queue sysqueue --action correspond"

rt-mailgate doesn't even realize it's doubling things -- so far as it's
concerned it's been invoked twice with new mails.

However I'd expect the above to become irritating with correspondence on
existing tickets.  I believe that if the mail piped into rt-mailgate has
a ticket number in the subject then 'RT' operates on that ticket in
whichever queue it happens to be, ignoring the --queue argument.

So correspondence on ticket #123 in tekqueue would get added to that
ticket twice, once by each of the above lines.  There's probably some
way of stopping that (or you could have an address just for creating new
tickets) but it isn't really something I want to think about ...

Smylers
-- 
GBdirect
http://www.gbdirect.co.uk/





More information about the rt-users mailing list