[rt-users] REST interface and long file names?
Thierry Thelliez
thierry.thelliez.tech at gmail.com
Fri Oct 29 12:13:50 EDT 2010
I fixed the issue on the client side (rt-client in ruby). It should
be fixed on the server side but I am not intimate enough for the RT
code to propose a fix.
In rt-client / client.rb / get_attachment, I replaced
headers = TMail::Mail.parse(resp)
with
resp.gsub!(/(id:\s.*\n)\n/,'\1') #Extra line after id:
resp.gsub!(/\n(\nCreator:\s)/,'\1') #Extra line before Creator:
resp.gsub!(/(Subject:\s.*)\n\s+(.*\n)/,'\1 \2') #Subject wrapping
headers = TMail::Mail.parse(resp)
Thierry
More information about the rt-users
mailing list