Skip to content
Snippets Groups Projects
Commit 63933624 authored by Jim Nelson's avatar Jim Nelson
Browse files

Fixes regression introduced in commit:6d1010ab

strip_prefixes() should use decoded string, not original, otherwise
the encoded Subject is returned.
parent 6d1010ab
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,7 @@ public class Geary.RFC822.Subject : Geary.MessageData.StringMessageData,
* Returns an empty string if the Subject: line is empty (or is empty after stripping prefixes).
*/
public string strip_prefixes() {
string subject_base = original;
string subject_base = value;
bool changed = false;
do {
string stripped;
......@@ -233,7 +233,7 @@ public class Geary.RFC822.Subject : Geary.MessageData.StringMessageData,
Regex fwd_regex = new Regex("^(?i:Fwd:\\s*)+");
stripped = fwd_regex.replace(stripped, -1, 0, "");
} catch (RegexError e) {
debug("Failed to clean up subject line \"%s\": %s", original, e.message);
debug("Failed to clean up subject line \"%s\": %s", value, e.message);
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment