Improved App.Utils.signatureIdentify(), take messages with more then 300 chars.
This commit is contained in:
parent
1f063db808
commit
ed811af795
1 changed files with 2 additions and 1 deletions
|
@ -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) ->
|
||||||
|
|
Loading…
Reference in a new issue