fix accented queue name (en)coding if not utf8 #171
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this little fix corrects queue name (en)coding if it contains accented but not necessary utf8 character(s).
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.