mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Make decodeQ() actually use the "fixed up" string. Will fix Q-encoded subjects where space is encoded as "_".
Fixes issue 2926
This commit is contained in:
parent
dfda1b60a3
commit
bec094326a
@ -84,7 +84,7 @@ public class DecoderUtil
|
||||
byte[] bytes;
|
||||
try
|
||||
{
|
||||
bytes = encodedWord.getBytes("US-ASCII");
|
||||
bytes = sb.toString().getBytes("US-ASCII");
|
||||
}
|
||||
catch (UnsupportedEncodingException e)
|
||||
{
|
||||
@ -213,7 +213,7 @@ public class DecoderUtil
|
||||
|
||||
if (encoding.equalsIgnoreCase("Q"))
|
||||
{
|
||||
return DecoderUtil.decodeQ(encodedText, charset);
|
||||
return decodeQ(encodedText, charset);
|
||||
}
|
||||
else if (encoding.equalsIgnoreCase("B"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user