Small adjustment, moved back to 10 lines (not 8) until the signature marker is searched.
This commit is contained in:
parent
0201d44c69
commit
2814546627
2 changed files with 3 additions and 3 deletions
|
@ -118,7 +118,7 @@ class ArticleViewItem extends App.Controller
|
|||
|
||||
# prepare html body
|
||||
if @article.content_type is 'text/html'
|
||||
if @article.sender.type is 'Agent'
|
||||
if @article.sender.name is 'Agent'
|
||||
@article['html'] = App.Utils.signatureIdentify(@article.body, false, true)
|
||||
else
|
||||
@article['html'] = App.Utils.signatureIdentify(@article.body)
|
||||
|
|
|
@ -250,9 +250,9 @@ class App.Utils
|
|||
@signatureIdentify: (message, test = false, internal = false) ->
|
||||
textToSearch = @html2text(message)
|
||||
|
||||
# if we do have less then 8 lines and less then 300 chars ignore this
|
||||
# if we do have less then 10 lines and less then 300 chars ignore this
|
||||
textToSearchInLines = textToSearch.split("\n")
|
||||
return message if !test && (textToSearchInLines.length < 8 && textToSearch.length < 300)
|
||||
return message if !test && (textToSearchInLines.length < 10 && textToSearch.length < 300)
|
||||
|
||||
quote = (str) ->
|
||||
(str + '').replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&")
|
||||
|
|
Loading…
Reference in a new issue