1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-16 06:25:06 -05:00

Only strip : lines containing word characters. This should improve the

preview when someone sends mail starting with a time. (12:01)
This commit is contained in:
Jesse Vincent 2010-06-06 21:32:57 +00:00
parent 84d5e7216d
commit 18cf923072

View File

@ -2262,7 +2262,7 @@ public class LocalStore extends Store implements Serializable
return null; return null;
} }
text = text.replaceAll("^.*:",""); text = text.replaceAll("^.*\w.*:","");
text = text.replaceAll("(?m)^>.*$",""); text = text.replaceAll("(?m)^>.*$","");
text = text.replaceAll("^On .*wrote.?$",""); text = text.replaceAll("^On .*wrote.?$","");
text = text.replaceAll("(\\r|\\n)+"," "); text = text.replaceAll("(\\r|\\n)+"," ");