This file is indexed.

/usr/share/doc/python-milter-doc/html/namespacemime.html is in python-milter-doc 1.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>pymilter: mime Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">pymilter
   &#160;<span id="projectnumber">0.9.8</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="namespacemembers.html"><span>Package&#160;Functions</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">mime Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This module provides a "defang" function to replace naughty attachments.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmime_1_1MimeGenerator.html">MimeGenerator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fix multipart handling in email.Generator.  <a href="classmime_1_1MimeGenerator.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmime_1_1MimeMessage.html">MimeMessage</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enhance email.Message.  <a href="classmime_1_1MimeMessage.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmime_1_1__defang.html">_defang</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a57dcea3987d3498f0f7594667f70b70e"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemime.html#a57dcea3987d3498f0f7594667f70b70e">zipnames</a></td></tr>
<tr class="memdesc:a57dcea3987d3498f0f7594667f70b70e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a list of filenames in a zip file.  <a href="#a57dcea3987d3498f0f7594667f70b70e">More...</a><br/></td></tr>
<tr class="separator:a57dcea3987d3498f0f7594667f70b70e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80f065a81a19a22301eee579753aeb8e"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemime.html#a80f065a81a19a22301eee579753aeb8e">unquote</a></td></tr>
<tr class="separator:a80f065a81a19a22301eee579753aeb8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06af1405e8211977136d54a42ef52821"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a06af1405e8211977136d54a42ef52821"></a>
def&#160;</td><td class="memItemRight" valign="bottom"><b>_unquotevalue</b></td></tr>
<tr class="separator:a06af1405e8211977136d54a42ef52821"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4ac8f88ceb657781161542f59c688b7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae4ac8f88ceb657781161542f59c688b7"></a>
def&#160;</td><td class="memItemRight" valign="bottom"><b>message_from_file</b></td></tr>
<tr class="separator:ae4ac8f88ceb657781161542f59c688b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3300c648fedf86af5f68abfd3a2d7fad"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3300c648fedf86af5f68abfd3a2d7fad"></a>
def&#160;</td><td class="memItemRight" valign="bottom"><b>check_ext</b></td></tr>
<tr class="separator:a3300c648fedf86af5f68abfd3a2d7fad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa08e1169a860d8cc414f1735894462f7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa08e1169a860d8cc414f1735894462f7"></a>
def&#160;</td><td class="memItemRight" valign="bottom"><b>check_name</b></td></tr>
<tr class="separator:aa08e1169a860d8cc414f1735894462f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20eb8e9ae34cd249d472ceef511cce5f"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemime.html#a20eb8e9ae34cd249d472ceef511cce5f">check_attachments</a></td></tr>
<tr class="separator:a20eb8e9ae34cd249d472ceef511cce5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a28ea916ef2128b3ff9308cef86a3f120"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28ea916ef2128b3ff9308cef86a3f120"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>extlist</b> = ''</td></tr>
<tr class="separator:a28ea916ef2128b3ff9308cef86a3f120"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af98930bdd55ca491d8757acdac5773b5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af98930bdd55ca491d8757acdac5773b5"></a>
tuple&#160;</td><td class="memItemRight" valign="bottom"><b>bad_extensions</b> = map(lambda x:'.' + x,extlist.split(','))</td></tr>
<tr class="separator:af98930bdd55ca491d8757acdac5773b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6b651706008a7a179b1489ea302b736"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><b>virus_msg</b></td></tr>
<tr class="separator:af6b651706008a7a179b1489ea302b736"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0cd1d63f2f4c8e9f01bfa9131074857"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac0cd1d63f2f4c8e9f01bfa9131074857"></a>
tuple&#160;</td><td class="memItemRight" valign="bottom"><b>defang</b> = <a class="el" href="classmime_1_1__defang.html">_defang</a>()</td></tr>
<tr class="separator:ac0cd1d63f2f4c8e9f01bfa9131074857"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a162776fd11c977293fed79e7b4f7dd5c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a162776fd11c977293fed79e7b4f7dd5c"></a>
tuple&#160;</td><td class="memItemRight" valign="bottom"><b>declname</b> = re.compile(r'[a-zA-Z][-_.a-zA-Z0-9]*\s*')</td></tr>
<tr class="separator:a162776fd11c977293fed79e7b4f7dd5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This module provides a "defang" function to replace naughty attachments. </p>
<p>We also provide workarounds for bugs in the email module that comes with python. The "bugs" fixed mostly come up only with malformed messages - but that is what you have when dealing with spam. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a20eb8e9ae34cd249d472ceef511cce5f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def mime.check_attachments </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>check</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Scan attachments.
msg     MimeMessage
check   function(MimeMessage): int
      Return CONTINUE, REJECT, ACCEPT
</pre> 
<p>Referenced by <a class="el" href="classmime_1_1__defang.html#a5efd78f8fb33451b2ed6821edd27772a">mime._defang.__call__()</a>.</p>

</div>
</div>
<a class="anchor" id="a80f065a81a19a22301eee579753aeb8e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def mime.unquote </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<pre class="fragment">Remove quotes from a string.</pre> 
</div>
</div>
<a class="anchor" id="a57dcea3987d3498f0f7594667f70b70e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def mime.zipnames </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>txt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return a list of filenames in a zip file. </p>
<p>Embedded zip files are recursively expanded. </p>

<p>Referenced by <a class="el" href="classmime_1_1MimeMessage.html#aea358052a331f6c7f8a6584932c666e1">mime.MimeMessage.getnames()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="af6b651706008a7a179b1489ea302b736"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string mime.virus_msg</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespacemime.html">    1</a></span>&#160;= <span class="stringliteral">&quot;&quot;&quot;This message appeared to contain a virus.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="stringliteral">It was originally named &#39;%s&#39;, and has been removed.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="stringliteral">A copy of your original message was saved as &#39;%s:%s&#39;.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="stringliteral">See your administrator.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="stringliteral">&quot;&quot;&quot;</span></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>