mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Improve mbox import script
* Better documentation of settings * Add option to exclude trimmed parts of emails (enabled by default) to not revail email addresses
This commit is contained in:
parent
36062f43c8
commit
0a88232e87
4 changed files with 40 additions and 22 deletions
|
@ -8,11 +8,7 @@ end
|
|||
|
||||
module ImportScripts
|
||||
module Mbox
|
||||
require_relative 'mbox/support/settings'
|
||||
|
||||
@settings = Settings.load(ARGV[0])
|
||||
|
||||
require_relative 'mbox/importer'
|
||||
Importer.new(@settings).perform
|
||||
Importer.new(ARGV[0]).perform
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue