FIX: handle charset=windows-1252 in mbox import script (#12832)

Co-authored-by: Loïc Dachary <loic@dachary.org>
This commit is contained in:
Pilou 2021-04-27 15:43:31 +02:00 committed by GitHub
parent 1fd8f6df5f
commit e7892df10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -160,9 +160,7 @@ module ImportScripts::Mbox
last_line_number = 0
each_line(filename) do |line|
line = line.scrub
if line =~ @split_regex
if line.scrub =~ @split_regex
if last_line_number > 0
yield raw_message, first_line_number, last_line_number
raw_message = +''