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"]
|
|
|
|
|
2021-05-20 21:43:47 -04:00
|
|
|
# These prefixes will be removed from the beginning of topic titles. You can use regular expressions.
|
2020-03-07 19:20:02 -05: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: "
|
2022-04-29 12:24:29 -04:00
|
|
|
- "Fwd?: "
|
|
|
|
|
|
|
|
# For emails processed by mailman with this type of bogus header:
|
|
|
|
# From: Jane Smith via ListName <ListName@lists.example.com>
|
|
|
|
# attempt to get the actual sender's address from other available headers like Reply-To or the /^From / line
|
|
|
|
fix_mailman_via_addresses: false
|
|
|
|
|
|
|
|
# Elide up to last occurence of = in addresses (BATV, etc)
|
|
|
|
# ie. normalize these:
|
|
|
|
# prvs=00377ab9a2=someone@somewhere.com
|
|
|
|
# bounces+840901-dbd9-flang-dev=someone@somewhere.com
|
|
|
|
# blah=blih=bluh=someone@somewhere.com
|
|
|
|
# into:
|
|
|
|
# someone@somewhere.com
|
|
|
|
elide_equals_in_addresses: false
|