Skip to content

Commit 805317a

Browse files
committed
HYPERKITTY_MBOX_EXPORT env variable. Set to False.
1 parent a32be78 commit 805317a

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ __mailman3_django_config_default:
292292
# default_http_protocol: https
293293
default_from_email: "postorius@{{ inventory_hostname }}"
294294
server_email: "{{ mailman3_site_owner }}"
295+
# You may set this back to True in host_vars:
296+
hyperkitty_mbox_export: false
295297
# compress_offline: true
296298
# socialaccount_providers: {}
297299
# haystack_engine: xapian_backend.XapianEngine" # or, for example, haystack_engine: haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine

templates/settings.py.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,5 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
213213
TEMPLATES[0]['DIRS'] = [
214214
os.path.join(BASE_DIR, 'templates')
215215
]
216+
217+
HYPERKITTY_MBOX_EXPORT = env.bool("HYPERKITTY_MBOX_EXPORT", None)

templates/web_env.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ COMPRESS_OFFLINE='{{ __mailman3_django_config_merged.compress_offline is defined
113113
{% if __mailman3_django_config_merged.hyperkitty_attachment_folder is defined %}
114114
HYPERKITTY_ATTACHMENT_FOLDER='{{ __mailman3_django_config_merged.hyperkitty_attachment_folder }}'
115115
{% endif %}
116+
{% if __mailman3_django_config_merged.hyperkitty_mbox_export is defined %}
117+
HYPERKITTY_MBOX_EXPORT='{{ __mailman3_django_config_merged.hyperkitty_mbox_export }}'
118+
{% endif %}
116119
{% if mailman3_wsgi_socket.startswith("/") %}
117120
ADD_REMOTE_ADDR_MIDDLEWARE='{{ mailman3_django_middleware_module_name }}.SetRemoteAddrFromForwardedFor'
118121
{% endif %}

0 commit comments

Comments
 (0)