2017-12-09 20:17:15 +08:00
|
|
|
|
<?php
|
|
|
|
|
if (!isset($_SESSION['mailcow_cc_role'])) {
|
|
|
|
|
header('Location: /');
|
|
|
|
|
exit();
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<div class="modal fade" id="qidDetailModal" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog modal-lg">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
|
2018-02-09 03:13:36 +08:00
|
|
|
|
<h3 class="modal-title"><span class="glyphicon glyphicon-info"></span> <?=$lang['quarantine']['qitem'];?></h3>
|
2017-12-09 20:17:15 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div id="qid_error" style="display:none" class="alert alert-danger"></div>
|
2019-10-10 04:07:26 +08:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="qid_detail_symbols"><h4><?=$lang['quarantine']['rspamd_result'];?>:</h4></label>
|
|
|
|
|
<p><?=$lang['quarantine']['spam_score'];?>: <span id="qid_detail_score"></span></p>
|
|
|
|
|
<p id="qid_detail_symbols"></p>
|
|
|
|
|
</div>
|
2017-12-09 20:17:15 +08:00
|
|
|
|
<div class="form-group">
|
2018-02-09 03:13:36 +08:00
|
|
|
|
<label for="qid_detail_subj"><h4><?=$lang['quarantine']['subj'];?>:</h4></label>
|
2017-12-09 20:17:15 +08:00
|
|
|
|
<p id="qid_detail_subj"></p>
|
|
|
|
|
</div>
|
2019-05-01 06:56:12 +08:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="qid_detail_recipients"><h4><?=$lang['quarantine']['recipients'];?>:</h4></label>
|
|
|
|
|
<p id="qid_detail_recipients"></p>
|
|
|
|
|
</div>
|
2020-10-24 22:27:31 +08:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="qid_detail_fuzzy"><h4>Fuzzy Hashes:</h4></label>
|
|
|
|
|
<p id="qid_detail_fuzzy"></p>
|
|
|
|
|
</div>
|
2020-06-06 19:25:32 +08:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="qid_detail_hfrom"><h4><?=$lang['quarantine']['sender_header'];?>:</h4></label>
|
|
|
|
|
<p><span class="mail-address-item" id="qid_detail_hfrom"></span></p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="qid_detail_efrom"><h4><?=$lang['quarantine']['sender'];?>:</h4></label>
|
|
|
|
|
<p><span class="mail-address-item" id="qid_detail_efrom"></span></p>
|
|
|
|
|
</div>
|
2017-12-09 20:17:15 +08:00
|
|
|
|
<div class="form-group">
|
2018-02-09 03:13:36 +08:00
|
|
|
|
<label for="qid_detail_text"><h4><?=$lang['quarantine']['text_plain_content'];?>:</h4></label>
|
2017-12-09 20:17:15 +08:00
|
|
|
|
<pre id="qid_detail_text"></pre>
|
|
|
|
|
</div>
|
2018-01-18 17:09:30 +08:00
|
|
|
|
<div class="form-group">
|
2018-02-09 03:13:36 +08:00
|
|
|
|
<label for="qid_detail_text_from_html"><h4><?=$lang['quarantine']['text_from_html_content'];?>:</h4></label>
|
2018-01-18 17:09:30 +08:00
|
|
|
|
<pre id="qid_detail_text_from_html"></pre>
|
|
|
|
|
</div>
|
2019-01-29 07:20:39 +08:00
|
|
|
|
<?php
|
|
|
|
|
if ($_SESSION['acl']['quarantine_attachments'] == 1):
|
|
|
|
|
?>
|
2017-12-09 20:17:15 +08:00
|
|
|
|
<div class="form-group">
|
2018-02-09 03:13:36 +08:00
|
|
|
|
<label for="qid_detail_atts"><h4><?=$lang['quarantine']['atts'];?>:</h4></label>
|
2017-12-09 20:17:15 +08:00
|
|
|
|
<div id="qid_detail_atts">-</div>
|
|
|
|
|
</div>
|
2019-01-29 07:20:39 +08:00
|
|
|
|
<?php
|
|
|
|
|
endif;
|
|
|
|
|
?>
|
|
|
|
|
<div class="btn-group dropup" data-acl="<?=$_SESSION['acl']['quarantine'];?>">
|
2018-11-27 17:20:42 +08:00
|
|
|
|
<a class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" href="#"><?=$lang['quarantine']['quick_actions'];?> <span class="caret"></span></a>
|
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
|
<li><a data-action="edit_selected" data-id="qitems_single" data-item="" data-api-url='edit/qitem' data-api-attr='{"action":"release"}' href="#"><?=$lang['quarantine']['release'];?></a></li>
|
|
|
|
|
<li role="separator" class="divider"></li>
|
|
|
|
|
<li><a data-action="edit_selected" data-id="qitems_single" data-item="" data-api-url='edit/qitem' data-api-attr='{"action":"learnspam"}' href="#"><?=$lang['quarantine']['learn_spam_delete'];?></a></li>
|
|
|
|
|
<li role="separator" class="divider"></li>
|
2019-10-10 02:18:21 +08:00
|
|
|
|
<li><a data-id="qitems_single" data-item="" onclick="window.open('/inc/ajax/qitem_details.php?id=' + $(this).data('item') + '&eml', '_blank')" href="#"><?=$lang['quarantine']['download_eml'];?></a></li>
|
|
|
|
|
<li role="separator" class="divider"></li>
|
2020-06-06 19:25:32 +08:00
|
|
|
|
<li><a data-id="qitems_single" data-item="" onclick="window.open('/inc/ajax/qitem_details.php?id=' + $(this).data('item') + '&quick_release', '_blank')" href="#"><?=$lang['quarantine']['quick_release_link'];?></a></li>
|
|
|
|
|
<li><a data-id="qitems_single" data-item="" onclick="window.open('/inc/ajax/qitem_details.php?id=' + $(this).data('item') + '&quick_delete', '_blank')" href="#"><?=$lang['quarantine']['quick_delete_link'];?></a></li>
|
|
|
|
|
<li role="separator" class="divider"></li>
|
2018-11-27 17:20:42 +08:00
|
|
|
|
<li><a data-action="delete_selected" data-id="qitems_single" data-item="" data-api-url='delete/qitem' href="#"><?=$lang['quarantine']['remove'];?></a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2017-12-09 20:17:15 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|