Mailer Gateway Patch - Multiple Word Queue Names

I discovered that multiword queue names were not getting processed properly
by the mailer gateway. That is, if you have a queue named “Customer
Service”, you are going to have a hard time getting the mailer gateway to
parse it properly. So I added a little regex to translate ‘_’ to ’ '.

It works well as far as I have been able to test, but our site is not in
production yet, and traffic is low.

*** /usr/src/rt-2-0-11/bin/rt-mailgate Thu Nov 29 00:42:41 2001
— rt-mailgate Thu Mar 14 16:47:07 2002
*** 89,94 ****
— 89,97 ----
}

}}}

  • $Queue =~ tr/_/ /;

    get the current mime entity from stdin

    my ($entity, $head) = ParseMIMEEntityFromSTDIN()

2wordq.diff (291 Bytes)

So I’ve got this queue called “RT Bugs” and I’ve never had a problem
with this. perhaps you’re not properly quoting things in /etc/aliases?On Tue, Mar 19, 2002 at 11:31:05AM -0600, Swayne, Mark A wrote:

I discovered that multiword queue names were not getting processed properly
by the mailer gateway. That is, if you have a queue named “Customer
Service”, you are going to have a hard time getting the mailer gateway to
parse it properly. So I added a little regex to translate ‘_’ to ’ '.

It works well as far as I have been able to test, but our site is not in
production yet, and traffic is low.

*** /usr/src/rt-2-0-11/bin/rt-mailgate Thu Nov 29 00:42:41 2001
— rt-mailgate Thu Mar 14 16:47:07 2002


*** 89,94 ****
— 89,97 ----
}

}}}

  • $Queue =~ tr/_/ /;

    get the current mime entity from stdin

    my ($entity, $head) = ParseMIMEEntityFromSTDIN()

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.

You need double quotes around the queue name if it’s more than one word. We
use a few multiword queues here too and it works just fine…

O- ~ARK

I could swear I tried double quotes. Let me try this out…

With this line in /etc/aliases:
prod-tt: “|/web/rt2/bin/rt-mailgate --queue “Production Trouble Tickets”
–action correspond”

I get to emails in response:Subject: Ticket Creation Failed
Body: No permission to create tickets in the queue ‘’.

  • and -
    Subject: RT Bounce:
    Body: RT couldn’t find the queue: Production.Trouble.Tickets

I’m running Redhat 6.2, sendmail version 8.9.3

From: Ayan R. Kayal [mailto:ayan.kayal@yale.edu]
Sent: Tuesday, March 19, 2002 10:37 AM
To: rt-devel@lists.fsck.com
Subject: RE: [rt-devel] Mailer Gateway Patch - Multiple Word Queue Names

You need double quotes around the queue name if it’s more than one word. We
use a few multiword queues here too and it works just fine…

O- ~ARK

-----Original Message-----
From: rt-devel-admin@lists.fsck.com
[mailto:rt-devel-admin@lists.fsck.com]On Behalf Of Jesse Vincent
Sent: Tuesday, March 19, 2002 1:26 PM

So I’ve got this queue called “RT Bugs” and I’ve never had a problem
with this. perhaps you’re not properly quoting things in /etc/aliases?

I discovered that multiword queue names were not getting
processed properly
by the mailer gateway. That is, if you have a queue named “Customer
Service”, you are going to have a hard time getting the mailer
gateway to
parse it properly. So I added a little regex to translate ‘_’ to ’ '.

It works well as far as I have been able to test, but our site is not in
production yet, and traffic is low.

*** /usr/src/rt-2-0-11/bin/rt-mailgate Thu Nov 29 00:42:41 2001
— rt-mailgate Thu Mar 14 16:47:07 2002


*** 89,94 ****
— 89,97 ----
}

}}}

  • $Queue =~ tr/_/ /;

    get the current mime entity from stdin

    my ($entity, $head) = ParseMIMEEntityFromSTDIN()

rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

You’ll need to escape your queue quotes. Otherwise, the quotes are not
matched together appropriately.

Regards,
Christian

Backslash to the rescue!
I thought the problem was a little obvious to have been missed for so long.

Thanks,

-Mark-----Original Message-----
From: Christian Gilmore [mailto:cgilmore@tivoli.com]
Sent: Tuesday, March 19, 2002 2:04 PM
To: ‘Swayne, Mark A’; rt-devel@lists.fsck.com
Subject: RE: [rt-devel] Mailer Gateway Patch - Multiple Word Queue Names

You’ll need to escape your queue quotes. Otherwise, the quotes are not
matched together appropriately.

Regards,
Christian