summaryrefslogtreecommitdiff
blob: 13a8cf4027c25b7538d571e6d5828debfdb3ce24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<h1 class="first-header">Report Message</h1>

<p>
  Please confirm that you want to report the message below:
</p>

<table class="table table-condensed ag-header-table">
  <tr>
    <th>Mailing List:</th>
    <td><%= h list %></td>
  </tr>
  <tr>
    <th class="ag-header-name-col">From:</th>
    <td><%= h strip_email_headers(message['_source']['from']).first %></td>
  </tr>
  <tr>
    <th>To:</th>
    <td><%= h strip_email_headers(message['_source']['to']).join ', ' %></td>
  </tr>
  <tr>
    <th>Cc:</th>
    <td><%= h strip_email_headers(message['_source']['cc']).join ', ' %></td>
  </tr>
  <tr>
    <th>Subject:</th>
    <td><strong><%= h message['_source']['subject'] %></strong></td>
  </tr>
  <tr>
    <th>Date:</th>
    <td><%= date_format message['_source']['date'] %></td>
  </tr>
</table>

<div class="alert alert-danger" role="alert">
  <strong>When not to report a message</strong>
  <p>
    Please do <strong>not</strong> report a message just because you disagree with its contents or can't stand the sender, that's what your personal killfile is for.<br>
    Valid reasons for reporting a message include (obvious) spam; anything from Nigerian princes, duchesses, and the whole lot of them; improperly rendered messages or messages whose contents are missing completely.
  </p>
</div>

<hr>

<form action="/report" method="POST">
  <input type="hidden" name="list" value="<%= list %>">
  <input type="hidden" name="msgid" value="<%= message['_id'] %>">
  <div class="form-group">
    <label for="captcha">El cheapo CAPTCHA</label>
    <p class="help-block"><%= h $config['report_captcha_q'] %></p>
    <input type="text" name="captcha" class="form-control" id="captcha" placeholder="<%= h $config['report_captcha_hint'] %>">
  </div>
  <div class="form-group">
    <label for="reason">Reason</label>
    <select class="form-control" name="reason" id="reason">
      <option selected disabled>(Select one)</option>
      <option name="spam">Spam</option>
      <option name="nigeria_calling">I HAVE PRIVILEGE TO TRANSFER OF SUM OF $65,000,000,000.00 TO YOU</option>
      <option name="rendering_b0rked">Contents not correctly rendered</option>
      <option name="content_missing">Contents not displayed at all</option>
      <option name="other">(other, described below)</option>
    </select>
  </div>
  <div class="form-group">
    <label for="comments">Additional comments</label>
    <textarea class="form-control" id="comments" name="comments" rows="3"></textarea>
  </div>
  <button type="submit" class="btn btn-danger">Send Report</button>
</form>

<hr>

<p class="text-muted">
  <small><strong>Privacy Notice:</strong>
  Your IP address will be saved to prevent abuse, but not shared with third parties.</small>
</p>