File: KeyedMailbox.html

package info (click to toggle)
rubyfilter 0.12-2.1
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 688 kB
  • sloc: ruby: 3,228; makefile: 64
file content (229 lines) | stat: -rw-r--r-- 6,886 bytes parent folder | download | duplicates (3)
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: RFilter::KeyedMailbox</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel=StyleSheet href="../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript" language="JavaScript">
  <!--
  function popCode(url) {
    window.open(url, "Code", 
          "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }
  //-->
  </script>
</head>

<body bgcolor="white">

<table summary="Information on class" width="100%" border="0" cellspacing="0">
 <tr class="title-row">
 <td class="big-title-font">
   <sup><font color="aqua">Class</font></sup> RFilter::KeyedMailbox
 </td>
 <td align="right">
   <table summary="layout" cellspacing="0" cellpadding="2">
     <tr valign="top">
      <td class="small-title-font">In:</td>
      <td class="small-title-font">
        <a href="../../files/lib/rfilter/keyed_mailbox_rb.html" class="aqua">
lib/rfilter/keyed_mailbox.rb
         </a>
<br />
      </td>
     </tr>
     <tr>
      <td class="small-title-font">Parent:</td>
      <td class="small-title-font">
Object
      </td>
     </tr>
   </table>
  </td>
  </tr>
</table>
  <!-- banner header -->



<div class="description"><p>
A <a href="KeyedMailbox.html">KeyedMailbox</a> object implements a message
mailbox indexed by a unique key string for each message. When a message is
saved into the store, the message&#8217;s key is returned. Later, the key
is used to retrieve file name the message is stored in.
</p>
<p>
The message store has the following characteristics:
</p>
<ol>
<li>It is a Maildir, so various mail programs can read the messages directly
and without adversely affecting the mailbox.

</li>
<li>The key is very hard to guess.

</li>
<li>The key is short and can be included in a message subject or in the
extension of a return address (suitable for mailing list style
confirmations).

</li>
</ol>
</div>


<table summary="Methods" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Methods</td></tr>
</table>
<div class="name-list">
<a href="#M000024">delete</a>&nbsp; &nbsp;
<a href="#M000026">each_key</a>&nbsp; &nbsp;
<a href="#M000025">expire</a>&nbsp; &nbsp;
<a href="#M000027">key_mtime</a>&nbsp; &nbsp;
<a href="#M000021">new</a>&nbsp; &nbsp;
<a href="#M000028">path</a>&nbsp; &nbsp;
<a href="#M000023">retrieve</a>&nbsp; &nbsp;
<a href="#M000022">save</a>&nbsp; &nbsp;
</div>




<table summary="Included modules" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Included modules</td></tr>
</table>
<div class="name-list">
    <span class="method-name"><a href="Deliver.html">RFilter::Deliver</a></span>
</div>

<table summary="Method list" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Public Class methods</td></tr>
</table>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000021"></a>
<a href="KeyedMailbox.src/M000021.html" target="Code" class="methodtitle"
 onClick="popCode('KeyedMailbox.src/M000021.html');return false;">
<b>new</b>(path)
</a>
</td></tr>
</table>
<div class="description">
<p>
Creates a confirmation queue object that manages a confirmation queue in
directory <tt>path</tt>.
</p>
</div>
<table summary="Method list" cellpadding="5" width="100%">
<tr><td class="tablesubtitle">Public Instance methods</td></tr>
</table>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000022"></a>
<a href="KeyedMailbox.src/M000022.html" target="Code" class="methodtitle"
 onClick="popCode('KeyedMailbox.src/M000022.html');return false;">
<b>save</b>(message)
</a>
</td></tr>
</table>
<div class="description">
<p>
Saves a message into a confirmation queue and returns a string key that can
be used to retrieve it later. They key is a string of hex digits and
dashes, suitable for inclusion in a message subject or &quot;VERP&quot;
return address.
</p>
</div>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000023"></a>
<a href="KeyedMailbox.src/M000023.html" target="Code" class="methodtitle"
 onClick="popCode('KeyedMailbox.src/M000023.html');return false;">
<b>retrieve</b>(key)
</a>
</td></tr>
</table>
<div class="description">
<p>
Get the file name holding the message associated with <tt>key</tt>, or
returns nil if the message is missing.
</p>
</div>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000024"></a>
<a href="KeyedMailbox.src/M000024.html" target="Code" class="methodtitle"
 onClick="popCode('KeyedMailbox.src/M000024.html');return false;">
<b>delete</b>(key)
</a>
</td></tr>
</table>
<div class="description">
<p>
Given a key, delete the message associated with it.
</p>
</div>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000025"></a>
<a href="KeyedMailbox.src/M000025.html" target="Code" class="methodtitle"
 onClick="popCode('KeyedMailbox.src/M000025.html');return false;">
<b>expire</b>(age)
</a>
</td></tr>
</table>
<div class="description">
<p>
Expire messages in the confirmation queue older than <tt>age</tt> days old.
</p>
</div>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000026"></a>
<a href="KeyedMailbox.src/M000026.html" target="Code" class="methodtitle"
 onClick="popCode('KeyedMailbox.src/M000026.html');return false;">
<b>each_key</b>() {|key| ...}
</a>
</td></tr>
</table>
<div class="description">
<p>
Yield each key in the mailbox along with its most recent modification time.
</p>
</div>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000027"></a>
<a href="KeyedMailbox.src/M000027.html" target="Code" class="methodtitle"
 onClick="popCode('KeyedMailbox.src/M000027.html');return false;">
<b>key_mtime</b>(key)
</a>
</td></tr>
</table>
<div class="description">
<p>
Yield the time a given key was last modified as a Time object or nil if the
key doesn&#8217;t exist.
</p>
</div>
<table summary="method"  width="100%" cellspacing="0" cellpadding="5" border="0">
<tr><td class="methodtitle">
<a name="M000028"></a>
<a href="KeyedMailbox.src/M000028.html" target="Code" class="methodtitle"
 onClick="popCode('KeyedMailbox.src/M000028.html');return false;">
<b>path</b>()
</a>
</td></tr>
</table>
<div class="description">
<p>
Return the path of this keyed mailbox (same value passed in <a
href="AddressTagger.html#M000050">#new</a>).
</p>
</div>

</body>
</html>