Improvements to the experimental mbox importer

* Disable journaling to improve performance in Docker
* Use the email cooking method
* Store IncomingEmail in order find related posts by Message-ID
* Escape HTML in imported messages
This commit is contained in:
Gerhard Schlager
2017-10-19 14:27:40 +02:00
parent 22ba70fb01
commit c41880ab19
2 changed files with 19 additions and 4 deletions

View File

@ -163,7 +163,7 @@ module ImportScripts::Mbox
private
def configure_database
@db.execute 'PRAGMA journal_mode = TRUNCATE'
@db.execute 'PRAGMA journal_mode = OFF'
end
def upgrade_schema_version