2020-03-14 06:59:14 +08:00
|
|
|
# Directory where all emails and mbox files are stored.
|
2017-11-18 20:53:21 +08:00
|
|
|
data_dir: /shared/import/data
|
2018-01-17 19:03:57 +08:00
|
|
|
|
2020-03-14 06:59:14 +08: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 15:46:25 +08:00
|
|
|
split_regex: "^From .+@.+"
|
2018-01-17 19:03:57 +08:00
|
|
|
#split_regex: "^From .+@example.com.+"
|
|
|
|
|
|
|
|
# Listserv files
|
|
|
|
#split_regex: "^========================================================================="
|
2017-05-27 04:26:18 +08:00
|
|
|
|
2020-03-14 06:59:14 +08: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 15:46:25 +08:00
|
|
|
prefer_html: true
|
2020-03-14 06:59:14 +08: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 16:17:35 +08:00
|
|
|
staged: true
|
2020-03-14 06:59:14 +08: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 19:03:57 +08:00
|
|
|
index_only: false
|
|
|
|
|
2020-03-14 06:59:14 +08: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 19:03:57 +08:00
|
|
|
group_messages_by_subject: false
|
2020-03-08 08:20:02 +08:00
|
|
|
|
2020-03-14 06:59:14 +08:00
|
|
|
# Always show trimmed part of emails. WARNING: This might reveal email addresses.
|
|
|
|
show_trimmed_content: false
|
|
|
|
|
2020-03-08 08:20:02 +08: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"]
|
|
|
|
|
2021-05-21 09:43:47 +08:00
|
|
|
# These prefixes will be removed from the beginning of topic titles. You can use regular expressions.
|
2020-03-08 08:20:02 +08:00
|
|
|
# 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?: "
|