blob: 3650012274adb506b09fa87c03d129d54b5813c7 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001<?php
2if (!isset($_SESSION['mailcow_cc_role'])) {
3 header('Location: /');
4 exit();
5}
6?>
7<div class="modal fade" id="qidDetailModal" tabindex="-1" role="dialog" aria-hidden="true">
8 <div class="modal-dialog modal-lg">
9 <div class="modal-content">
10 <div class="modal-header">
11 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
12 <h3 class="modal-title"><span class="glyphicon glyphicon-info"></span> <?=$lang['quarantine']['qitem'];?></h3>
13 </div>
14 <div class="modal-body">
15 <div id="qid_error" style="display:none" class="alert alert-danger"></div>
16 <div class="form-group">
17 <label for="qid_detail_symbols"><h4><?=$lang['quarantine']['rspamd_result'];?>:</h4></label>
18 <p><?=$lang['quarantine']['spam_score'];?>: <span id="qid_detail_score"></span></p>
19 <hr>
20 <p id="qid_detail_symbols"></p>
21 </div>
22 <div class="form-group">
23 <label for="qid_detail_subj"><h4><?=$lang['quarantine']['subj'];?>:</h4></label>
24 <p id="qid_detail_subj"></p>
25 </div>
26 <div class="form-group">
27 <label for="qid_detail_recipients"><h4><?=$lang['quarantine']['recipients'];?>:</h4></label>
28 <p id="qid_detail_recipients"></p>
29 </div>
30 <div class="form-group">
31 <label for="qid_detail_hfrom"><h4><?=$lang['quarantine']['sender_header'];?>:</h4></label>
32 <p><span class="mail-address-item" id="qid_detail_hfrom"></span></p>
33 </div>
34 <div class="form-group">
35 <label for="qid_detail_efrom"><h4><?=$lang['quarantine']['sender'];?>:</h4></label>
36 <p><span class="mail-address-item" id="qid_detail_efrom"></span></p>
37 </div>
38 <div class="form-group">
39 <label for="qid_detail_fuzzy"><h4>Fuzzy Hashes:</h4></label>
40 <p id="qid_detail_fuzzy"></p>
41 </div>
42 <div class="form-group" id="qTextPlain">
43 <label for="qid_detail_text"><h4><?=$lang['quarantine']['text_plain_content'];?>:</h4></label>
44 <pre id="qid_detail_text"></pre>
45 </div>
46 <div class="form-group" id="qTextHtml">
47 <label for="qid_detail_text_from_html"><h4><?=$lang['quarantine']['text_from_html_content'];?>:</h4></label>
48 <pre id="qid_detail_text_from_html"></pre>
49 </div>
50 <?php
51 if ($_SESSION['acl']['quarantine_attachments'] == 1) {
52 ?>
53 <div class="form-group">
54 <label for="qid_detail_atts"><h4><?=$lang['quarantine']['atts'];?>:</h4></label>
55 <div id="qid_detail_atts">-</div>
56 </div>
57 <?php
58 }
59 ?>
60 <div class="btn-group dropup" data-acl="<?=$_SESSION['acl']['quarantine'];?>">
61 <a class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" href="#"><?=$lang['quarantine']['quick_actions'];?> <span class="caret"></span></a>
62 <ul class="dropdown-menu">
63 <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']['deliver_inbox'];?></a></li>
64 <li role="separator" class="divider"></li>
65 <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>
66 <li role="separator" class="divider"></li>
67 <li><a data-id="qitems_single" data-item="" id="quick_download_link" href="#"><?=$lang['quarantine']['download_eml'];?></a></li>
68 <li role="separator" class="divider"></li>
69 <li><a data-id="qitems_single" data-item="" id="quick_release_link" href="#"><?=$lang['quarantine']['quick_release_link'];?></a></li>
70 <li><a data-id="qitems_single" data-item="" id="quick_delete_link" href="#"><?=$lang['quarantine']['quick_delete_link'];?></a></li>
71 <li role="separator" class="divider"></li>
72 <li><a data-action="delete_selected" data-id="qitems_single" data-item="" data-api-url='delete/qitem' href="#"><?=$lang['quarantine']['remove'];?></a></li>
73 </ul>
74 </div>
75 </div>
76 </div>
77 </div>
78</div>
79