Improved App.Utils.signatureIdentify(), take messages with more then 300 chars.

This commit is contained in:
Martin Edenhofer 2016-02-11 16:57:54 +01:00
parent 1f063db808
commit ed811af795

View file

@ -250,9 +250,10 @@ class App.Utils
@signatureIdentify: (message, test = false) -> @signatureIdentify: (message, test = false) ->
textToSearch = @html2text(message) textToSearch = @html2text(message)
# count lines, if we do have lower the 10, ignore this # count lines, if we do have lower the 8 or more then 300 chars ignore this
textToSearchInLines = textToSearch.split("\n") textToSearchInLines = textToSearch.split("\n")
if !test if !test
return message if textToSearch.length < 300
return message if textToSearchInLines.length < 8 return message if textToSearchInLines.length < 8
quote = (str) -> quote = (str) ->