2020-03-13 18:59:14 -04:00
|
|
|
# Directory where all emails and mbox files are stored.
|
2017-11-18 07:53:21 -05:00
|
|
|
data_dir: /shared/import/data
|
2018-01-17 06:03:57 -05:00
|
|
|
|
2020-03-13 18:59:14 -04:00
|
|
|
# Regular expression for splitting emails in mbox files.
|
|
|
|
# Choose one of the following examples that works for you or add your own regular expression.
|
2018-08-23 03:46:25 -04:00
|
|
|
split_regex: "^From .+@.+"
|
2018-01-17 06:03:57 -05:00
|
|
|
#split_regex: "^From .+@example.com.+"
|
|
|
|
|
|
|
|
# Listserv files
|
|
|
|
#split_regex: "^========================================================================="
|
2017-05-26 16:26:18 -04:00
|
|
|
|
2020-03-13 18:59:14 -04:00
|
|
|
# When each file contains only one email
|
|
|
|
#split_regex: ""
|
|
|
|
|
|
|
|
# Prefer the HTML part of emails instead of the plain text part.
|
2018-08-23 03:46:25 -04:00
|
|
|
prefer_html: true
|
2020-03-13 18:59:14 -04:00
|
|
|
|
|
|
|
# The trust level of users created by the import script.
|
|
|
|
default_trust_level: 1
|
|
|
|
|
|
|
|
# Create staged users instead of regular users.
|
2018-01-04 03:17:35 -05:00
|
|
|
staged: true
|
2020-03-13 18:59:14 -04:00
|
|
|
|
|
|
|
# You can enable this option if the script should stop after indexing all emails
|
|
|
|
# instead of executing the import right away. That's useful if you need to make some changes
|
|
|
|
# to the indexed data in the `index.db` created during the indexing step.
|
2018-01-17 06:03:57 -05:00
|
|
|
index_only: false
|
|
|
|
|
2020-03-13 18:59:14 -04:00
|
|
|
# Only enable this option when the import script fails to group messages with
|
|
|
|
# with the `In-Reply-To` and `References` headers.
|
2018-01-17 06:03:57 -05:00
|
|
|
group_messages_by_subject: false
|
2020-03-07 19:20:02 -05:00
|
|
|
|
2020-03-13 18:59:14 -04:00
|
|
|
# Always show trimmed part of emails. WARNING: This might reveal email addresses.
|
|
|
|
show_trimmed_content: false
|
|
|
|
|
2020-03-07 19:20:02 -05:00
|
|
|
# Remove prefixes like [FOO] or (BAR) from topic titles and replace them with tags.
|
|
|
|
# You can map one or more case-insensitive prefixes to the same tag in Discourse.
|
|
|
|
# "Tag name in Discourse": "foo"
|
|
|
|
# "Tag name in Discourse": ["foo", "bar"]
|
|
|
|
# You can use an empty tag name to remove prefixes without creating a tag in Discourse.
|
|
|
|
tags:
|
|
|
|
# "off-topic": "ot"
|
|
|
|
# announcement: ["ann", "announce", "announcement"]
|
|
|
|
# "": ["foo", "bar"]
|
|
|
|
|
|
|
|
# These prefixes will be removed from the beginning of topic titles. You can use regular expessions.
|
|
|
|
# Prefixes are case-insensitive. You can add additional prefixes (e.g. localized prefixes from
|
|
|
|
# https://en.wikipedia.org/wiki/List_of_email_subject_abbreviations#Abbreviations_in_other_languages).
|
|
|
|
remove_subject_prefixes:
|
|
|
|
- "Re: "
|
|
|
|
- "Fwd?: "
|