Changing queue names

Hey all,

this could actually be answered in either of two ways:

  1. We have some queue names that have spaces in them. Is there a way to
    get email to actually work with those queues? the address is purchasing@,
    and I have this in /etc/aliases:

Purchasing rt alias
purchasing: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” correspond”
purchasing-comment: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” comment”
purchasing-action: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” action”

The only difference between this entry and the 8 other queues involved is
that there is are spaces in the queue name. When someone sends mail to
this queue they get this back:

 There has been an error:
 There has been an error with your request:
 You don't have permission to create requests in this queue. Either 
 you're not a queue member or non-members aren't allowed to create 
 requests in this queue.

Though the queue is set up to allow non-members to open new tickets.

  1. If spaces are not going to work, then can I change the queue name to a
    single word with no spaces using MySQL directly, or is there some
    recommended utility for this?

Thanks for the help,

–tag

| Timothy A. Gregory http://www.tarjema.com |
| *NIX SysAdmin tgregory@tarjema.com |
| Arabic > English Translator IBM AIX CATE |
Habit is habit and not to be flung out of the window by any man, but
coaxed downstairs a step at a time.
–Mark Twain

I can’t speak to whether stripmime is space-safe for queue names, but
using single quotes should work. when you use double quotes within
a double quoted string, most parsers get confused.

purchasing: |"/usr/local/rt/bin/stripmime ‘BusOffice - Purchasing’ correspond"On Tue, Feb 20, 2001 at 09:17:35AM -0800, Timothy A. Gregory wrote:

Hey all,

this could actually be answered in either of two ways:

  1. We have some queue names that have spaces in them. Is there a way to
    get email to actually work with those queues? the address is purchasing@,
    and I have this in /etc/aliases:

Purchasing rt alias
purchasing: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” correspond”
purchasing-comment: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” comment”
purchasing-action: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” action”

The only difference between this entry and the 8 other queues involved is
that there is are spaces in the queue name. When someone sends mail to
this queue they get this back:

 There has been an error:
 There has been an error with your request:
 You don't have permission to create requests in this queue. Either 
 you're not a queue member or non-members aren't allowed to create 
 requests in this queue.

Though the queue is set up to allow non-members to open new tickets.

  1. If spaces are not going to work, then can I change the queue name to a
    single word with no spaces using MySQL directly, or is there some
    recommended utility for this?

Thanks for the help,

–tag

±-------------------------------------------------+
| Timothy A. Gregory http://www.tarjema.com |
| *NIX SysAdmin tgregory@tarjema.com |
| Arabic > English Translator IBM AIX CATE |
±-------------------------------------------------+
Habit is habit and not to be flung out of the window by any man, but
coaxed downstairs a step at a time.
–Mark Twain


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

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

T'waS br|ll1G 4|||> 7#e sl1T#Y T0v3s D1|> gYR3 4nd Gimb@1 1|| 7#E //A83
all |/|1|/|53Y W3R3 d4 60r0GR0V3s @|||> |>4 M0MES wr47H oUTGR4b3.

Thanks Jesse -

when I take stripmime out of the mix your suggestion worked. I’ll take a
look at the stripmime script and see if I can figure out the queue name
parsing - probably it just needs to be adjusted to re-quote the queue_id

–tag

On Tue, 20 Feb 2001, the heavens parted and Jesse said:

I can’t speak to whether stripmime is space-safe for queue names, but
using single quotes should work. when you use double quotes within
a double quoted string, most parsers get confused.

purchasing: |“/usr/local/rt/bin/stripmime ‘BusOffice - Purchasing’ correspond”

Hey all,

this could actually be answered in either of two ways:

  1. We have some queue names that have spaces in them. Is there a way to
    get email to actually work with those queues? the address is purchasing@,
    and I have this in /etc/aliases:

Purchasing rt alias
purchasing: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” correspond”
purchasing-comment: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” comment”
purchasing-action: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” action”

The only difference between this entry and the 8 other queues involved is
that there is are spaces in the queue name. When someone sends mail to
this queue they get this back:

 There has been an error:
 There has been an error with your request:
 You don't have permission to create requests in this queue. Either 
 you're not a queue member or non-members aren't allowed to create 
 requests in this queue.

Though the queue is set up to allow non-members to open new tickets.

  1. If spaces are not going to work, then can I change the queue name to a
    single word with no spaces using MySQL directly, or is there some
    recommended utility for this?

Thanks for the help,

–tag

±-------------------------------------------------+
| Timothy A. Gregory http://www.tarjema.com |
| *NIX SysAdmin tgregory@tarjema.com |
| Arabic > English Translator IBM AIX CATE |
±-------------------------------------------------+
Habit is habit and not to be flung out of the window by any man, but
coaxed downstairs a step at a time.
–Mark Twain


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


jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

T'waS br|ll1G 4|||> 7#e sl1T#Y T0v3s D1|> gYR3 4nd Gimb@1 1|| 7#E //A83
all |/|1|/|53Y W3R3 d4 60r0GR0V3s @|||> |>4 M0MES wr47H oUTGR4b3.


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

| Timothy A. Gregory http://www.tarjema.com |
| *NIX SysAdmin tgregory@tarjema.com |
| Arabic > English Translator IBM AIX CATE |
Habit is habit and not to be flung out of the window by any man, but
coaxed downstairs a step at a time.
–Mark Twain

sendmail, as well as most other applications, will barf completely on a line
like that. You have the right idea about quoting the queue name because
there are spaces, but, take a look at the whole line… you start the line
with the alias, a colon, the pipe, a QUOTE, the command, another quote… and
that is where it falls apart. It sees the second quote as the one that
CLOSES the start of the first quote.

You can either escape the second quote with the backslash:
purchasing: |"/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” correspond"
Or, you can use a single quote:
purchasing: |"/usr/local/rt/bin/stripmime ‘BusOffice -
Purchasing’ correspond"

Personally, though, to prevent headaches, you might want to consider removing
the spaces from the queue name all together…

-Rich

That does work fine for stripmime. We have spaces in some queue names and
use the qouting that jesse used below, it works just fine with stripmime.On Tue, 20 Feb 2001, Jesse wrote:

I can’t speak to whether stripmime is space-safe for queue names, but
using single quotes should work. when you use double quotes within
a double quoted string, most parsers get confused.

purchasing: |“/usr/local/rt/bin/stripmime ‘BusOffice - Purchasing’ correspond”

On Tue, Feb 20, 2001 at 09:17:35AM -0800, Timothy A. Gregory wrote:

Hey all,

this could actually be answered in either of two ways:

  1. We have some queue names that have spaces in them. Is there a way to
    get email to actually work with those queues? the address is purchasing@,
    and I have this in /etc/aliases:

Purchasing rt alias
purchasing: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” correspond”
purchasing-comment: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” comment”
purchasing-action: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” action”

The only difference between this entry and the 8 other queues involved is
that there is are spaces in the queue name. When someone sends mail to
this queue they get this back:

 There has been an error:
 There has been an error with your request:
 You don't have permission to create requests in this queue. Either
 you're not a queue member or non-members aren't allowed to create
 requests in this queue.

Though the queue is set up to allow non-members to open new tickets.

  1. If spaces are not going to work, then can I change the queue name to a
    single word with no spaces using MySQL directly, or is there some
    recommended utility for this?

Thanks for the help,

–tag

±-------------------------------------------------+
| Timothy A. Gregory http://www.tarjema.com |
| *NIX SysAdmin tgregory@tarjema.com |
| Arabic > English Translator IBM AIX CATE |
±-------------------------------------------------+
Habit is habit and not to be flung out of the window by any man, but
coaxed downstairs a step at a time.
–Mark Twain


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

OK, so here’s the only part of stripmime that would be related:

$outputprog = “/usr/local/rt/bin/rt-mailgate @ARGV”;

I’m betting that Perl is stripping the quotes, and rendering the value of
$outputprog as

/usr/local/rt/bin/rt-mailgate BusOffice - Purchasing correspond

and rt-mailgate doesn’t know what to do with that mess. Maybe a little
wrapper of some kind, like so:

$action = pop(@ARGV);
$outputprog = “/usr/local/rt/bin/rt-mailgate '@ARGV' $action”;

This works.

–tag

On Tue, 20 Feb 2001, the heavens parted and Timothy A. Gregory said:

Thanks Jesse -

when I take stripmime out of the mix your suggestion worked. I’ll take a
look at the stripmime script and see if I can figure out the queue name
parsing - probably it just needs to be adjusted to re-quote the queue_id

–tag

On Tue, 20 Feb 2001, the heavens parted and Jesse said:

I can’t speak to whether stripmime is space-safe for queue names, but
using single quotes should work. when you use double quotes within
a double quoted string, most parsers get confused.

purchasing: |“/usr/local/rt/bin/stripmime ‘BusOffice - Purchasing’ correspond”

Hey all,

this could actually be answered in either of two ways:

  1. We have some queue names that have spaces in them. Is there a way to
    get email to actually work with those queues? the address is purchasing@,
    and I have this in /etc/aliases:

Purchasing rt alias
purchasing: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” correspond”
purchasing-comment: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” comment”
purchasing-action: |“/usr/local/rt/bin/stripmime “BusOffice -
Purchasing” action”

The only difference between this entry and the 8 other queues involved is
that there is are spaces in the queue name. When someone sends mail to
this queue they get this back:

 There has been an error:
 There has been an error with your request:
 You don't have permission to create requests in this queue. Either 
 you're not a queue member or non-members aren't allowed to create 
 requests in this queue.

Though the queue is set up to allow non-members to open new tickets.

  1. If spaces are not going to work, then can I change the queue name to a
    single word with no spaces using MySQL directly, or is there some
    recommended utility for this?

Thanks for the help,

–tag

±-------------------------------------------------+
| Timothy A. Gregory http://www.tarjema.com |
| *NIX SysAdmin tgregory@tarjema.com |
| Arabic > English Translator IBM AIX CATE |
±-------------------------------------------------+
Habit is habit and not to be flung out of the window by any man, but
coaxed downstairs a step at a time.
–Mark Twain


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


jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

T'waS br|ll1G 4|||> 7#e sl1T#Y T0v3s D1|> gYR3 4nd Gimb@1 1|| 7#E //A83
all |/|1|/|53Y W3R3 d4 60r0GR0V3s @|||> |>4 M0MES wr47H oUTGR4b3.


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

±-------------------------------------------------+
| Timothy A. Gregory http://www.tarjema.com |
| *NIX SysAdmin tgregory@tarjema.com |
| Arabic > English Translator IBM AIX CATE |
±-------------------------------------------------+
Habit is habit and not to be flung out of the window by any man, but
coaxed downstairs a step at a time.
–Mark Twain


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

| Timothy A. Gregory http://www.tarjema.com |
| *NIX SysAdmin tgregory@tarjema.com |
| Arabic > English Translator IBM AIX CATE |
Habit is habit and not to be flung out of the window by any man, but
coaxed downstairs a step at a time.
–Mark Twain