Rt-mailgate problem with accented letter(s) in queue name - RT 4.4.0 rc3 possibly affected too

Hello Everyone!

We run into a problem with rt-mailgate with our rt 4.2 installation.
I just copy-paste the dateils from a pull request I just made:

The queue name is ‘UKK üzemeltetés’.
The line in the (utf8 encoded) aliases file is
ukkuzemeltetes: “|/usr/bin/rt-mailgate --ca-file
/etc/ssl/certs/mithrandir.ca.crt --queue ‘UKK üzemeltetés’ --action
correspond --url https://rt.mithrandir.hu/

Without the fix, we got the below error in syslog, and the mail waits in
the mail queue with a temporary error.

Jan 12 10:44:23 mail RT: [23963] Could not record email: RT couldn’t
find the queue: UKK üzemeltetés
Jan 12 10:44:23 mail postfix/local[25018]: 0BF9B1060:
to=ukkuzemeltetes@mithrandir.hu, relay=local, delay=0.35,
delays=0.01/0.01/0/0.33, dsn=4
.3.0, status=deferred (temporary failure. Command output: RT server
error. The RT server which handled your email did not behave as expected. I
t said: temporary failure - RT couldn’t find the queue: UKK __zemeltet__s )

The fix should apply to the upcoming 4.4 too, as the file appears to be
the same.

Best regards,
Attila Kádár