blob: a1426fa2cecb5580a243c8f670844fb840978076 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<div role="tabpanel" class="tab-pane fade" id="tab-user-settings" role="tabpanel" aria-labelledby="tab-user-settings">
2 <div class="card mb-4">
3 <div class="card-header d-flex fs-5">
4 <button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-user-settings" data-bs-toggle="collapse" aria-controls="collapse-tab-user-settings">
5 {{ lang.user.mailbox_settings }}
6 </button>
7 <span class="d-none d-md-block">{{ lang.user.mailbox_settings }}
8 </div>
9 <div id="collapse-tab-user-settings" class="card-body collapse" data-bs-parent="#user-content">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010010 {# Show tagging options #}
11 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010012 <div class="col-sm-3 col-12 text-sm-end text-start text-xs-bold mb-4">{{ lang.user.tag_handling }}:</div>
13 <div class="col-sm-9 col-12">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010014 <div class="btn-group" data-acl="{{ acl.delimiter_action }}">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010015 <button type="button" class="btn btn-sm btn-xs-third d-block d-sm-inline btn-secondary{% if get_tagging_options == 'subfolder' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010016 data-action="edit_selected"
17 data-item="{{ mailcow_cc_username }}"
18 data-id="delimiter_action"
19 data-api-url='edit/delimiter_action'
20 data-api-attr='{"tagged_mail_handler":"subfolder"}'>{{ lang.user.tag_in_subfolder }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010021 <button type="button" class="btn btn-sm btn-xs-third d-block d-sm-inline btn-secondary{% if get_tagging_options == 'subject' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010022 data-action="edit_selected"
23 data-item="{{ mailcow_cc_username }}"
24 data-id="delimiter_action"
25 data-api-url='edit/delimiter_action'
26 data-api-attr='{"tagged_mail_handler":"subject"}'>{{ lang.user.tag_in_subject }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010027 <button type="button" class="btn btn-sm btn-xs-third d-block d-sm-inline btn-secondary{% if get_tagging_options == 'none' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010028 data-action="edit_selected"
29 data-item="{{ mailcow_cc_username }}"
30 data-id="delimiter_action"
31 data-api-url='edit/delimiter_action'
32 data-api-attr='{"tagged_mail_handler":"none"}'>{{ lang.user.tag_in_none }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010033 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010034 <p class="text-muted">{{ lang.user.tag_help_explain|raw }}</p>
35 <p class="text-muted">{{ lang.user.tag_help_example|raw }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010036 </div>
37 </div>
38 {# Show TLS policy options #}
39 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010040 <div class="col-sm-3 col-12 text-sm-end text-start text-xs-bold mb-4">{{ lang.user.tls_policy }}:</div>
41 <div class="col-sm-9 col-12">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010042 <div class="btn-group" data-acl="{{ acl.tls_policy }}">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010043 <button type="button" class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary{% if get_tls_policy.tls_enforce_in == '1' %} active"{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010044 data-action="edit_selected"
45 data-item="{{ mailcow_cc_username }}"
46 data-id="tls_policy"
47 data-api-url='edit/tls_policy'
48 data-api-attr='{"tls_enforce_in": {% if get_tls_policy.tls_enforce_in == '1' %}0{% else %}1{% endif %} }'>{{ lang.user.tls_enforce_in }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010049 <button type="button" class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary{% if get_tls_policy.tls_enforce_out == '1' %} active"{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010050 data-action="edit_selected"
51 data-item="{{ mailcow_cc_username }}"
52 data-id="tls_policy"
53 data-api-url='edit/tls_policy'
54 data-api-attr='{"tls_enforce_out": {% if get_tls_policy.tls_enforce_out == '1' %}0{% else %}1{% endif %} }'>{{ lang.user.tls_enforce_out }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010055 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010056 <p class="text-muted">{{ lang.user.tls_policy_warning|raw }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010057 </div>
58 </div>
59 {# Show quarantine_notification options #}
60 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010061 <div class="col-sm-3 col-12 text-sm-end text-start text-xs-bold mb-4">{{ lang.user.quarantine_notification }}:</div>
62 <div class="col-sm-9 col-12">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010063 <div class="btn-group" data-acl="{{ acl.quarantine_notification }}">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010064 <button type="button" class="btn btn-sm btn-xs-quart d-block d-sm-inline btn-secondary{% if quarantine_notification == 'never' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010065 data-action="edit_selected"
66 data-item="{{ mailcow_cc_username }}"
67 data-id="quarantine_notification"
68 data-api-url='edit/quarantine_notification'
69 data-api-attr='{"quarantine_notification":"never"}'>{{ lang.user.never }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010070 <button type="button" class="btn btn-sm btn-xs-quart d-block d-sm-inline btn-secondary{% if quarantine_notification == 'hourly' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010071 data-action="edit_selected"
72 data-item="{{ mailcow_cc_username }}"
73 data-id="quarantine_notification"
74 data-api-url='edit/quarantine_notification'
75 data-api-attr='{"quarantine_notification":"hourly"}'>{{ lang.user.hourly }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010076 <button type="button" class="btn btn-sm btn-xs-quart d-block d-sm-inline btn-secondary{% if quarantine_notification == 'daily' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010077 data-action="edit_selected"
78 data-item="{{ mailcow_cc_username }}"
79 data-id="quarantine_notification"
80 data-api-url='edit/quarantine_notification'
81 data-api-attr='{"quarantine_notification":"daily"}'>{{ lang.user.daily }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010082 <button type="button" class="btn btn-sm btn-xs-quart d-block d-sm-inline btn-secondary{% if quarantine_notification == 'weekly' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010083 data-action="edit_selected"
84 data-item="{{ mailcow_cc_username }}"
85 data-id="quarantine_notification"
86 data-api-url='edit/quarantine_notification'
87 data-api-attr='{"quarantine_notification":"weekly"}'>{{ lang.user.weekly }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010088 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010089 <p class="text-muted">{{ lang.user.quarantine_notification_info }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010090 </div>
91 </div>
92 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010093 <div class="col-sm-3 col-12 text-sm-end text-start text-xs-bold mb-4">{{ lang.user.quarantine_category }}:</div>
94 <div class="col-sm-9 col-12">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010095 <div class="btn-group" data-acl="{{ acl.quarantine_category }}">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010096 <button type="button" class="btn btn-sm btn-xs-third d-block d-sm-inline btn-secondary{% if quarantine_category == 'reject' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010097 data-action="edit_selected"
98 data-item="{{ mailcow_cc_username }}"
99 data-id="quarantine_category"
100 data-api-url='edit/quarantine_category'
101 data-api-attr='{"quarantine_category":"reject"}'>{{ lang.user.q_reject }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100102 <button type="button" class="btn btn-sm btn-xs-third d-block d-sm-inline btn-secondary{% if quarantine_category == 'add_header' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100103 data-action="edit_selected"
104 data-item="{{ mailcow_cc_username }}"
105 data-id="quarantine_category"
106 data-api-url='edit/quarantine_category'
107 data-api-attr='{"quarantine_category":"add_header"}'>{{ lang.user.q_add_header }}</button>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100108 <button type="button" class="btn btn-sm btn-xs-third d-block d-sm-inline btn-secondary{% if quarantine_category == 'all' %} active{% endif %}"
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100109 data-action="edit_selected"
110 data-item="{{ mailcow_cc_username }}"
111 data-id="quarantine_category"
112 data-api-url='edit/quarantine_category'
113 data-api-attr='{"quarantine_category":"all"}'>{{ lang.user.q_all }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100114 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100115 <p class="text-muted">{{ lang.user.quarantine_category_info }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100116 </div>
117 </div>
118 {% if not skip_sogo %}
119 <hr>
120 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100121 <div class="col-sm-3 col-12 text-sm-end text-start text-xs-bold mb-4">{{ lang.user.eas_reset }}:</div>
122 <div class="col-sm-9 col-12">
123 <button class="btn btn-sm d-block d-sm-inline btn-secondary" data-acl="{{ acl.eas_reset }}" data-action="delete_selected" data-text="{{ lang.user.eas_reset }}?" data-item="{{ mailcow_cc_username }}" data-id="eas_cache" data-api-url='delete/eas_cache' href="#">{{ lang.user.eas_reset_now }}</button>
124 <p class="text-muted">{{ lang.user.eas_reset_help|raw }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100125 </div>
126 </div>
127 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100128 <div class="col-sm-3 col-12 text-sm-end text-start text-xs-bold mb-4">{{ lang.user.sogo_profile_reset }}:</div>
129 <div class="col-sm-9 col-12">
130 <button class="btn btn-sm d-block d-sm-inline btn-secondary" data-acl="{{ acl.sogo_profile_reset }}" data-action="delete_selected" data-text="{{ lang.user.sogo_profile_reset }}?" data-item="{{ mailcow_cc_username }}" data-id="sogo_profile" data-api-url='delete/sogo_profile' href="#">{{ lang.user.sogo_profile_reset_now }}</button>
131 <p class="text-muted">{{ lang.user.sogo_profile_reset_help|raw }}</p>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100132 </div>
133 </div>
134 {% endif %}
135 </div>
136 </div>
137</div>