rockdove 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardoc/checksums +9 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/CHANGELOG.md +4 -0
- data/doc/Rockdove/CollectMail.html +1302 -0
- data/doc/Rockdove/Config.html +1125 -0
- data/doc/Rockdove/Dovetie.html +123 -0
- data/doc/Rockdove/EmailParser.html +377 -0
- data/doc/Rockdove/ExchangeMail.html +1054 -0
- data/doc/Rockdove/Generators/InstallGenerator.html +192 -0
- data/doc/Rockdove/Generators.html +115 -0
- data/doc/Rockdove/RockdoveCollection.html +123 -0
- data/doc/Rockdove.html +215 -0
- data/doc/RockdoveServer.html +404 -0
- data/doc/_index.html +214 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.CHANGELOG.html +93 -0
- data/doc/file.README.html +164 -0
- data/doc/file_list.html +58 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +164 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +492 -0
- data/doc/top-level-namespace.html +126 -0
- data/lib/rockdove/exchange_mail.rb +14 -2
- data/lib/rockdove/version.rb +1 -1
- metadata +48 -19
@@ -0,0 +1,1302 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Rockdove::CollectMail
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.2.1
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (C)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Rockdove.html" title="Rockdove (module)">Rockdove</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">CollectMail</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Rockdove::CollectMail
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Rockdove::CollectMail</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/rockdove/collect_mail.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
|
103
|
+
<h2>Constant Summary</h2>
|
104
|
+
|
105
|
+
<dl class="constants">
|
106
|
+
|
107
|
+
<dt id="UNDELIVERABLE-constant" class="">UNDELIVERABLE =
|
108
|
+
|
109
|
+
</dt>
|
110
|
+
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>Undeliverable</span><span class='regexp_end'>/i</span></span></pre></dd>
|
111
|
+
|
112
|
+
<dt id="AUTO_REPLY-constant" class="">AUTO_REPLY =
|
113
|
+
|
114
|
+
</dt>
|
115
|
+
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>Automatic reply</span><span class='regexp_end'>/i</span></span></pre></dd>
|
116
|
+
|
117
|
+
<dt id="SPAM-constant" class="">SPAM =
|
118
|
+
|
119
|
+
</dt>
|
120
|
+
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>SPAM</span><span class='regexp_end'>/i</span></span></pre></dd>
|
121
|
+
|
122
|
+
<dt id="FAILURE-constant" class="">FAILURE =
|
123
|
+
|
124
|
+
</dt>
|
125
|
+
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>Delivery(.+)Failure</span><span class='regexp_end'>/i</span></span></pre></dd>
|
126
|
+
|
127
|
+
</dl>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
134
|
+
<ul class="summary">
|
135
|
+
|
136
|
+
<li class="public ">
|
137
|
+
<span class="summary_signature">
|
138
|
+
|
139
|
+
<a href="#inbox_connection-class_method" title="inbox_connection (class method)">+ (Object) <strong>inbox_connection</strong> </a>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
</span>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<span class="summary_desc"><div class='inline'><p>
|
157
|
+
Returns the value of attribute inbox_connection.
|
158
|
+
</p>
|
159
|
+
</div></span>
|
160
|
+
|
161
|
+
</li>
|
162
|
+
|
163
|
+
|
164
|
+
<li class="public ">
|
165
|
+
<span class="summary_signature">
|
166
|
+
|
167
|
+
<a href="#mail_stack-class_method" title="mail_stack (class method)">+ (Object) <strong>mail_stack</strong> </a>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
</span>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
<span class="summary_desc"><div class='inline'><p>
|
185
|
+
Returns the value of attribute mail_stack.
|
186
|
+
</p>
|
187
|
+
</div></span>
|
188
|
+
|
189
|
+
</li>
|
190
|
+
|
191
|
+
|
192
|
+
</ul>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
<h2>
|
199
|
+
Class Method Summary
|
200
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
201
|
+
</h2>
|
202
|
+
|
203
|
+
<ul class="summary">
|
204
|
+
|
205
|
+
<li class="public ">
|
206
|
+
<span class="summary_signature">
|
207
|
+
|
208
|
+
<a href="#watch-class_method" title="watch (class method)">+ (Object) <strong>watch</strong>(&block) </a>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
</span>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
223
|
+
|
224
|
+
</li>
|
225
|
+
|
226
|
+
|
227
|
+
</ul>
|
228
|
+
|
229
|
+
<h2>
|
230
|
+
Instance Method Summary
|
231
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
232
|
+
</h2>
|
233
|
+
|
234
|
+
<ul class="summary">
|
235
|
+
|
236
|
+
<li class="public ">
|
237
|
+
<span class="summary_signature">
|
238
|
+
|
239
|
+
<a href="#archive-instance_method" title="#archive (instance method)">- (Object) <strong>archive</strong>(item) </a>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
</span>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
254
|
+
|
255
|
+
</li>
|
256
|
+
|
257
|
+
|
258
|
+
<li class="public ">
|
259
|
+
<span class="summary_signature">
|
260
|
+
|
261
|
+
<a href="#bounce_type_mail%3F-instance_method" title="#bounce_type_mail? (instance method)">- (Boolean) <strong>bounce_type_mail?</strong>(item) </a>
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
</span>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
276
|
+
|
277
|
+
</li>
|
278
|
+
|
279
|
+
|
280
|
+
<li class="public ">
|
281
|
+
<span class="summary_signature">
|
282
|
+
|
283
|
+
<a href="#destination-instance_method" title="#destination (instance method)">- (Object) <strong>destination</strong>(to_folder) </a>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
</span>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
298
|
+
|
299
|
+
</li>
|
300
|
+
|
301
|
+
|
302
|
+
<li class="public ">
|
303
|
+
<span class="summary_signature">
|
304
|
+
|
305
|
+
<a href="#fetch_from_box-instance_method" title="#fetch_from_box (instance method)">- (Object) <strong>fetch_from_box</strong> </a>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
</span>
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
320
|
+
|
321
|
+
</li>
|
322
|
+
|
323
|
+
|
324
|
+
<li class="public ">
|
325
|
+
<span class="summary_signature">
|
326
|
+
|
327
|
+
<a href="#group_of_mails-instance_method" title="#group_of_mails (instance method)">- (Object) <strong>group_of_mails</strong> </a>
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
</span>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
342
|
+
|
343
|
+
</li>
|
344
|
+
|
345
|
+
|
346
|
+
<li class="public ">
|
347
|
+
<span class="summary_signature">
|
348
|
+
|
349
|
+
<a href="#ignore_mail%3F-instance_method" title="#ignore_mail? (instance method)">- (Boolean) <strong>ignore_mail?</strong>(item) </a>
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
</span>
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
364
|
+
|
365
|
+
</li>
|
366
|
+
|
367
|
+
|
368
|
+
<li class="public ">
|
369
|
+
<span class="summary_signature">
|
370
|
+
|
371
|
+
<a href="#inbox-instance_method" title="#inbox (instance method)">- (Object) <strong>inbox</strong> </a>
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
</span>
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
386
|
+
|
387
|
+
</li>
|
388
|
+
|
389
|
+
|
390
|
+
<li class="public ">
|
391
|
+
<span class="summary_signature">
|
392
|
+
|
393
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (CollectMail) <strong>initialize</strong>(mail_stack = nil, inbox = nil) </a>
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
</span>
|
398
|
+
|
399
|
+
|
400
|
+
<span class="note title constructor">constructor</span>
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
<span class="summary_desc"><div class='inline'><p>
|
410
|
+
A new instance of CollectMail.
|
411
|
+
</p>
|
412
|
+
</div></span>
|
413
|
+
|
414
|
+
</li>
|
415
|
+
|
416
|
+
|
417
|
+
<li class="public ">
|
418
|
+
<span class="summary_signature">
|
419
|
+
|
420
|
+
<a href="#no_mail_alert-instance_method" title="#no_mail_alert (instance method)">- (Object) <strong>no_mail_alert</strong> </a>
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
</span>
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
435
|
+
|
436
|
+
</li>
|
437
|
+
|
438
|
+
|
439
|
+
<li class="public ">
|
440
|
+
<span class="summary_signature">
|
441
|
+
|
442
|
+
<a href="#process-instance_method" title="#process (instance method)">- (Object) <strong>process</strong> </a>
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
</span>
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
457
|
+
|
458
|
+
</li>
|
459
|
+
|
460
|
+
|
461
|
+
<li class="public ">
|
462
|
+
<span class="summary_signature">
|
463
|
+
|
464
|
+
<a href="#reconnect_and_raise_error-instance_method" title="#reconnect_and_raise_error (instance method)">- (Object) <strong>reconnect_and_raise_error</strong> </a>
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
</span>
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
479
|
+
|
480
|
+
</li>
|
481
|
+
|
482
|
+
|
483
|
+
<li class="public ">
|
484
|
+
<span class="summary_signature">
|
485
|
+
|
486
|
+
<a href="#retrieve_mail-instance_method" title="#retrieve_mail (instance method)">- (Object) <strong>retrieve_mail</strong>(fetched_mail) </a>
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
</span>
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
501
|
+
|
502
|
+
</li>
|
503
|
+
|
504
|
+
|
505
|
+
<li class="public ">
|
506
|
+
<span class="summary_signature">
|
507
|
+
|
508
|
+
<a href="#send_connection_failed_message-instance_method" title="#send_connection_failed_message (instance method)">- (Object) <strong>send_connection_failed_message</strong> </a>
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
</span>
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
523
|
+
|
524
|
+
</li>
|
525
|
+
|
526
|
+
|
527
|
+
<li class="public ">
|
528
|
+
<span class="summary_signature">
|
529
|
+
|
530
|
+
<a href="#send_rockdove_to_watch_mail-instance_method" title="#send_rockdove_to_watch_mail (instance method)">- (Object) <strong>send_rockdove_to_watch_mail</strong>(&block) </a>
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
</span>
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
545
|
+
|
546
|
+
</li>
|
547
|
+
|
548
|
+
|
549
|
+
</ul>
|
550
|
+
|
551
|
+
|
552
|
+
<div id="constructor_details" class="method_details_list">
|
553
|
+
<h2>Constructor Details</h2>
|
554
|
+
|
555
|
+
<div class="method_details first">
|
556
|
+
<h3 class="signature first" id="initialize-instance_method">
|
557
|
+
|
558
|
+
- (<tt><span class='object_link'><a href="" title="Rockdove::CollectMail (class)">CollectMail</a></span></tt>) <strong>initialize</strong>(mail_stack = nil, inbox = nil)
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
</h3><div class="docstring">
|
565
|
+
<div class="discussion">
|
566
|
+
<p>
|
567
|
+
A new instance of CollectMail
|
568
|
+
</p>
|
569
|
+
|
570
|
+
|
571
|
+
</div>
|
572
|
+
</div>
|
573
|
+
<div class="tags">
|
574
|
+
|
575
|
+
|
576
|
+
</div><table class="source_code">
|
577
|
+
<tr>
|
578
|
+
<td>
|
579
|
+
<pre class="lines">
|
580
|
+
|
581
|
+
|
582
|
+
12
|
583
|
+
13
|
584
|
+
14
|
585
|
+
15</pre>
|
586
|
+
</td>
|
587
|
+
<td>
|
588
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 12</span>
|
589
|
+
|
590
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_mail_stack'>mail_stack</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_inbox'>inbox</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
591
|
+
<span class='ivar'>@mail_stack</span> <span class='op'>=</span> <span class='id identifier rubyid_mail_stack'>mail_stack</span>
|
592
|
+
<span class='ivar'>@inbox_connection</span> <span class='op'>=</span> <span class='id identifier rubyid_inbox'>inbox</span>
|
593
|
+
<span class='kw'>end</span></pre>
|
594
|
+
</td>
|
595
|
+
</tr>
|
596
|
+
</table>
|
597
|
+
</div>
|
598
|
+
|
599
|
+
</div>
|
600
|
+
|
601
|
+
<div id="class_attr_details" class="attr_details">
|
602
|
+
<h2>Class Attribute Details</h2>
|
603
|
+
|
604
|
+
|
605
|
+
<span id="inbox_connection=-class_method"></span>
|
606
|
+
<div class="method_details first">
|
607
|
+
<h3 class="signature first" id="inbox_connection-class_method">
|
608
|
+
|
609
|
+
+ (<tt>Object</tt>) <strong>inbox_connection</strong>
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
</h3><div class="docstring">
|
616
|
+
<div class="discussion">
|
617
|
+
<p>
|
618
|
+
Returns the value of attribute inbox_connection
|
619
|
+
</p>
|
620
|
+
|
621
|
+
|
622
|
+
</div>
|
623
|
+
</div>
|
624
|
+
<div class="tags">
|
625
|
+
|
626
|
+
|
627
|
+
</div><table class="source_code">
|
628
|
+
<tr>
|
629
|
+
<td>
|
630
|
+
<pre class="lines">
|
631
|
+
|
632
|
+
|
633
|
+
9
|
634
|
+
10
|
635
|
+
11</pre>
|
636
|
+
</td>
|
637
|
+
<td>
|
638
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 9</span>
|
639
|
+
|
640
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_inbox_connection'>inbox_connection</span>
|
641
|
+
<span class='ivar'>@inbox_connection</span>
|
642
|
+
<span class='kw'>end</span></pre>
|
643
|
+
</td>
|
644
|
+
</tr>
|
645
|
+
</table>
|
646
|
+
</div>
|
647
|
+
|
648
|
+
|
649
|
+
<span id="mail_stack=-class_method"></span>
|
650
|
+
<div class="method_details ">
|
651
|
+
<h3 class="signature " id="mail_stack-class_method">
|
652
|
+
|
653
|
+
+ (<tt>Object</tt>) <strong>mail_stack</strong>
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
</h3><div class="docstring">
|
660
|
+
<div class="discussion">
|
661
|
+
<p>
|
662
|
+
Returns the value of attribute mail_stack
|
663
|
+
</p>
|
664
|
+
|
665
|
+
|
666
|
+
</div>
|
667
|
+
</div>
|
668
|
+
<div class="tags">
|
669
|
+
|
670
|
+
|
671
|
+
</div><table class="source_code">
|
672
|
+
<tr>
|
673
|
+
<td>
|
674
|
+
<pre class="lines">
|
675
|
+
|
676
|
+
|
677
|
+
9
|
678
|
+
10
|
679
|
+
11</pre>
|
680
|
+
</td>
|
681
|
+
<td>
|
682
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 9</span>
|
683
|
+
|
684
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_mail_stack'>mail_stack</span>
|
685
|
+
<span class='ivar'>@mail_stack</span>
|
686
|
+
<span class='kw'>end</span></pre>
|
687
|
+
</td>
|
688
|
+
</tr>
|
689
|
+
</table>
|
690
|
+
</div>
|
691
|
+
|
692
|
+
</div>
|
693
|
+
|
694
|
+
|
695
|
+
<div id="class_method_details" class="method_details_list">
|
696
|
+
<h2>Class Method Details</h2>
|
697
|
+
|
698
|
+
|
699
|
+
<div class="method_details first">
|
700
|
+
<h3 class="signature first" id="watch-class_method">
|
701
|
+
|
702
|
+
+ (<tt>Object</tt>) <strong>watch</strong>(&block)
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
</h3><table class="source_code">
|
709
|
+
<tr>
|
710
|
+
<td>
|
711
|
+
<pre class="lines">
|
712
|
+
|
713
|
+
|
714
|
+
17
|
715
|
+
18
|
716
|
+
19
|
717
|
+
20
|
718
|
+
21
|
719
|
+
22
|
720
|
+
23
|
721
|
+
24
|
722
|
+
25
|
723
|
+
26
|
724
|
+
27</pre>
|
725
|
+
</td>
|
726
|
+
<td>
|
727
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 17</span>
|
728
|
+
|
729
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_watch'>watch</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
730
|
+
<span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
|
731
|
+
<span class='kw'>begin</span>
|
732
|
+
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_send_rockdove_to_watch_mail'>send_rockdove_to_watch_mail</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
733
|
+
<span class='kw'>rescue</span> <span class='const'>Exception</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
734
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_error'>error</span> <span class='lbracket'>[</span><span class='id identifier rubyid_e'>e</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
735
|
+
<span class='kw'>ensure</span>
|
736
|
+
<span class='id identifier rubyid_sleep'>sleep</span><span class='lparen'>(</span><span class='const'>Rockdove</span><span class='op'>::</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_watch_interval'>watch_interval</span><span class='rparen'>)</span>
|
737
|
+
<span class='kw'>end</span>
|
738
|
+
<span class='kw'>end</span>
|
739
|
+
<span class='kw'>end</span></pre>
|
740
|
+
</td>
|
741
|
+
</tr>
|
742
|
+
</table>
|
743
|
+
</div>
|
744
|
+
|
745
|
+
</div>
|
746
|
+
|
747
|
+
<div id="instance_method_details" class="method_details_list">
|
748
|
+
<h2>Instance Method Details</h2>
|
749
|
+
|
750
|
+
|
751
|
+
<div class="method_details first">
|
752
|
+
<h3 class="signature first" id="archive-instance_method">
|
753
|
+
|
754
|
+
- (<tt>Object</tt>) <strong>archive</strong>(item)
|
755
|
+
|
756
|
+
|
757
|
+
|
758
|
+
|
759
|
+
|
760
|
+
</h3><table class="source_code">
|
761
|
+
<tr>
|
762
|
+
<td>
|
763
|
+
<pre class="lines">
|
764
|
+
|
765
|
+
|
766
|
+
120
|
767
|
+
121
|
768
|
+
122
|
769
|
+
123
|
770
|
+
124
|
771
|
+
125
|
772
|
+
126
|
773
|
+
127
|
774
|
+
128</pre>
|
775
|
+
</td>
|
776
|
+
<td>
|
777
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 120</span>
|
778
|
+
|
779
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_archive'>archive</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
|
780
|
+
<span class='kw'>if</span> <span class='ivar'>@to_folder</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
|
781
|
+
<span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_delete!'>delete!</span>
|
782
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rockdove delivered & deleted the mail.</span><span class='tstring_end'>"</span></span>
|
783
|
+
<span class='kw'>else</span>
|
784
|
+
<span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_move!'>move!</span><span class='lparen'>(</span><span class='id identifier rubyid_destination'>destination</span><span class='lparen'>(</span><span class='ivar'>@to_folder</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
785
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rockdove delivered & archived the mail.</span><span class='tstring_end'>"</span></span>
|
786
|
+
<span class='kw'>end</span>
|
787
|
+
<span class='kw'>end</span></pre>
|
788
|
+
</td>
|
789
|
+
</tr>
|
790
|
+
</table>
|
791
|
+
</div>
|
792
|
+
|
793
|
+
<div class="method_details ">
|
794
|
+
<h3 class="signature " id="bounce_type_mail?-instance_method">
|
795
|
+
|
796
|
+
- (<tt>Boolean</tt>) <strong>bounce_type_mail?</strong>(item)
|
797
|
+
|
798
|
+
|
799
|
+
|
800
|
+
|
801
|
+
|
802
|
+
</h3><div class="docstring">
|
803
|
+
<div class="discussion">
|
804
|
+
|
805
|
+
|
806
|
+
</div>
|
807
|
+
</div>
|
808
|
+
<div class="tags">
|
809
|
+
|
810
|
+
<p class="tag_title">Returns:</p>
|
811
|
+
<ul class="return">
|
812
|
+
|
813
|
+
<li>
|
814
|
+
|
815
|
+
|
816
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
817
|
+
|
818
|
+
|
819
|
+
|
820
|
+
</li>
|
821
|
+
|
822
|
+
</ul>
|
823
|
+
|
824
|
+
</div><table class="source_code">
|
825
|
+
<tr>
|
826
|
+
<td>
|
827
|
+
<pre class="lines">
|
828
|
+
|
829
|
+
|
830
|
+
66
|
831
|
+
67
|
832
|
+
68
|
833
|
+
69
|
834
|
+
70
|
835
|
+
71
|
836
|
+
72
|
837
|
+
73
|
838
|
+
74</pre>
|
839
|
+
</td>
|
840
|
+
<td>
|
841
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 66</span>
|
842
|
+
|
843
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_bounce_type_mail?'>bounce_type_mail?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
|
844
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_subject'>subject</span>
|
845
|
+
<span class='kw'>when</span> <span class='const'>UNDELIVERABLE</span><span class='comma'>,</span> <span class='const'>AUTO_REPLY</span><span class='comma'>,</span> <span class='const'>SPAM</span><span class='comma'>,</span> <span class='const'>FAILURE</span>
|
846
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rockdove deleting this mail: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_subject'>subject</span><span class='rbrace'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span>
|
847
|
+
<span class='kw'>true</span>
|
848
|
+
<span class='kw'>else</span>
|
849
|
+
<span class='kw'>false</span>
|
850
|
+
<span class='kw'>end</span>
|
851
|
+
<span class='kw'>end</span></pre>
|
852
|
+
</td>
|
853
|
+
</tr>
|
854
|
+
</table>
|
855
|
+
</div>
|
856
|
+
|
857
|
+
<div class="method_details ">
|
858
|
+
<h3 class="signature " id="destination-instance_method">
|
859
|
+
|
860
|
+
- (<tt>Object</tt>) <strong>destination</strong>(to_folder)
|
861
|
+
|
862
|
+
|
863
|
+
|
864
|
+
|
865
|
+
|
866
|
+
</h3><table class="source_code">
|
867
|
+
<tr>
|
868
|
+
<td>
|
869
|
+
<pre class="lines">
|
870
|
+
|
871
|
+
|
872
|
+
130
|
873
|
+
131
|
874
|
+
132</pre>
|
875
|
+
</td>
|
876
|
+
<td>
|
877
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 130</span>
|
878
|
+
|
879
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_destination'>destination</span><span class='lparen'>(</span><span class='id identifier rubyid_to_folder'>to_folder</span><span class='rparen'>)</span>
|
880
|
+
<span class='const'>Viewpoint</span><span class='op'>::</span><span class='const'>EWS</span><span class='op'>::</span><span class='const'>Folder</span><span class='period'>.</span><span class='id identifier rubyid_get_folder_by_name'>get_folder_by_name</span><span class='lparen'>(</span><span class='id identifier rubyid_to_folder'>to_folder</span><span class='rparen'>)</span>
|
881
|
+
<span class='kw'>end</span></pre>
|
882
|
+
</td>
|
883
|
+
</tr>
|
884
|
+
</table>
|
885
|
+
</div>
|
886
|
+
|
887
|
+
<div class="method_details ">
|
888
|
+
<h3 class="signature " id="fetch_from_box-instance_method">
|
889
|
+
|
890
|
+
- (<tt>Object</tt>) <strong>fetch_from_box</strong>
|
891
|
+
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
|
896
|
+
</h3><table class="source_code">
|
897
|
+
<tr>
|
898
|
+
<td>
|
899
|
+
<pre class="lines">
|
900
|
+
|
901
|
+
|
902
|
+
86
|
903
|
+
87
|
904
|
+
88
|
905
|
+
89
|
906
|
+
90
|
907
|
+
91
|
908
|
+
92</pre>
|
909
|
+
</td>
|
910
|
+
<td>
|
911
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 86</span>
|
912
|
+
|
913
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_fetch_from_box'>fetch_from_box</span>
|
914
|
+
<span class='ivar'>@inbox_connection</span> <span class='op'>=</span> <span class='id identifier rubyid_inbox'>inbox</span>
|
915
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='ivar'>@inbox_connection</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='ivar'>@inbox_connection</span> <span class='op'>==</span> <span class='kw'>true</span>
|
916
|
+
<span class='ivar'>@mail_stack</span> <span class='op'>=</span> <span class='ivar'>@inbox_connection</span><span class='period'>.</span><span class='id identifier rubyid_find_items'>find_items</span>
|
917
|
+
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='ivar'>@mail_stack</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
918
|
+
<span class='ivar'>@mail_stack</span>
|
919
|
+
<span class='kw'>end</span></pre>
|
920
|
+
</td>
|
921
|
+
</tr>
|
922
|
+
</table>
|
923
|
+
</div>
|
924
|
+
|
925
|
+
<div class="method_details ">
|
926
|
+
<h3 class="signature " id="group_of_mails-instance_method">
|
927
|
+
|
928
|
+
- (<tt>Object</tt>) <strong>group_of_mails</strong>
|
929
|
+
|
930
|
+
|
931
|
+
|
932
|
+
|
933
|
+
|
934
|
+
</h3><table class="source_code">
|
935
|
+
<tr>
|
936
|
+
<td>
|
937
|
+
<pre class="lines">
|
938
|
+
|
939
|
+
|
940
|
+
39
|
941
|
+
40
|
942
|
+
41
|
943
|
+
42
|
944
|
+
43
|
945
|
+
44
|
946
|
+
45
|
947
|
+
46
|
948
|
+
47
|
949
|
+
48
|
950
|
+
49
|
951
|
+
50
|
952
|
+
51
|
953
|
+
52</pre>
|
954
|
+
</td>
|
955
|
+
<td>
|
956
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 39</span>
|
957
|
+
|
958
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_group_of_mails'>group_of_mails</span>
|
959
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_no_mail_alert'>no_mail_alert</span> <span class='kw'>unless</span> <span class='id identifier rubyid_fetch_from_box'>fetch_from_box</span>
|
960
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rockdove collected </span><span class='embexpr_beg'>#{</span><span class='ivar'>@mail_stack</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span><span class='rbrace'>}</span><span class='tstring_content'> mail(s).</span><span class='tstring_end'>"</span></span>
|
961
|
+
<span class='id identifier rubyid_letters'>letters</span> <span class='op'>=</span> <span class='const'>RockdoveCollection</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
962
|
+
<span class='ivar'>@mail_stack</span><span class='period'>.</span><span class='id identifier rubyid_reverse'>reverse</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_item'>item</span><span class='op'>|</span>
|
963
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_ignore_mail?'>ignore_mail?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_bounce_type_mail?'>bounce_type_mail?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
|
964
|
+
<span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_delete!'>delete!</span>
|
965
|
+
<span class='ivar'>@mail_stack</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
|
966
|
+
<span class='kw'>else</span>
|
967
|
+
<span class='id identifier rubyid_letters'>letters</span> <span class='op'><<</span> <span class='id identifier rubyid_retrieve_mail'>retrieve_mail</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
|
968
|
+
<span class='kw'>end</span>
|
969
|
+
<span class='kw'>end</span>
|
970
|
+
<span class='id identifier rubyid_letters'>letters</span>
|
971
|
+
<span class='kw'>end</span></pre>
|
972
|
+
</td>
|
973
|
+
</tr>
|
974
|
+
</table>
|
975
|
+
</div>
|
976
|
+
|
977
|
+
<div class="method_details ">
|
978
|
+
<h3 class="signature " id="ignore_mail?-instance_method">
|
979
|
+
|
980
|
+
- (<tt>Boolean</tt>) <strong>ignore_mail?</strong>(item)
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
</h3><div class="docstring">
|
987
|
+
<div class="discussion">
|
988
|
+
|
989
|
+
|
990
|
+
</div>
|
991
|
+
</div>
|
992
|
+
<div class="tags">
|
993
|
+
|
994
|
+
<p class="tag_title">Returns:</p>
|
995
|
+
<ul class="return">
|
996
|
+
|
997
|
+
<li>
|
998
|
+
|
999
|
+
|
1000
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1001
|
+
|
1002
|
+
|
1003
|
+
|
1004
|
+
</li>
|
1005
|
+
|
1006
|
+
</ul>
|
1007
|
+
|
1008
|
+
</div><table class="source_code">
|
1009
|
+
<tr>
|
1010
|
+
<td>
|
1011
|
+
<pre class="lines">
|
1012
|
+
|
1013
|
+
|
1014
|
+
54
|
1015
|
+
55
|
1016
|
+
56
|
1017
|
+
57
|
1018
|
+
58
|
1019
|
+
59
|
1020
|
+
60
|
1021
|
+
61
|
1022
|
+
62
|
1023
|
+
63
|
1024
|
+
64</pre>
|
1025
|
+
</td>
|
1026
|
+
<td>
|
1027
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 54</span>
|
1028
|
+
|
1029
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ignore_mail?'>ignore_mail?</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span>
|
1030
|
+
<span class='id identifier rubyid_email'>email</span> <span class='op'>=</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_from'>from</span><span class='period'>.</span><span class='id identifier rubyid_email_address'>email_address</span>
|
1031
|
+
<span class='id identifier rubyid_ignore_list'>ignore_list</span> <span class='op'>=</span> <span class='const'>Rockdove</span><span class='op'>::</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_ignore_mails'>ignore_mails</span>
|
1032
|
+
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_ignore_list'>ignore_list</span> <span class='op'>&&</span> <span class='op'>!</span><span class='lparen'>(</span><span class='id identifier rubyid_ignore_list'>ignore_list</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span><span class='rparen'>)</span>
|
1033
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_ignore_list'>ignore_list</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_email'>email</span><span class='rparen'>)</span>
|
1034
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rockdove detected </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_email'>email</span><span class='rbrace'>}</span><span class='tstring_content'> under ignore mail list.</span><span class='tstring_end'>"</span></span>
|
1035
|
+
<span class='kw'>true</span>
|
1036
|
+
<span class='kw'>else</span>
|
1037
|
+
<span class='kw'>false</span>
|
1038
|
+
<span class='kw'>end</span>
|
1039
|
+
<span class='kw'>end</span></pre>
|
1040
|
+
</td>
|
1041
|
+
</tr>
|
1042
|
+
</table>
|
1043
|
+
</div>
|
1044
|
+
|
1045
|
+
<div class="method_details ">
|
1046
|
+
<h3 class="signature " id="inbox-instance_method">
|
1047
|
+
|
1048
|
+
- (<tt>Object</tt>) <strong>inbox</strong>
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1053
|
+
|
1054
|
+
</h3><table class="source_code">
|
1055
|
+
<tr>
|
1056
|
+
<td>
|
1057
|
+
<pre class="lines">
|
1058
|
+
|
1059
|
+
|
1060
|
+
94
|
1061
|
+
95
|
1062
|
+
96
|
1063
|
+
97
|
1064
|
+
98
|
1065
|
+
99</pre>
|
1066
|
+
</td>
|
1067
|
+
<td>
|
1068
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 94</span>
|
1069
|
+
|
1070
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_inbox'>inbox</span>
|
1071
|
+
<span class='ivar'>@incoming_folder</span> <span class='op'>=</span> <span class='const'>Rockdove</span><span class='op'>::</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_incoming_folder'>incoming_folder</span>
|
1072
|
+
<span class='const'>Viewpoint</span><span class='op'>::</span><span class='const'>EWS</span><span class='op'>::</span><span class='const'>Folder</span><span class='period'>.</span><span class='id identifier rubyid_get_folder_by_name'>get_folder_by_name</span><span class='lparen'>(</span><span class='ivar'>@incoming_folder</span><span class='rparen'>)</span>
|
1073
|
+
<span class='kw'>rescue</span>
|
1074
|
+
<span class='id identifier rubyid_reconnect_and_raise_error'>reconnect_and_raise_error</span>
|
1075
|
+
<span class='kw'>end</span></pre>
|
1076
|
+
</td>
|
1077
|
+
</tr>
|
1078
|
+
</table>
|
1079
|
+
</div>
|
1080
|
+
|
1081
|
+
<div class="method_details ">
|
1082
|
+
<h3 class="signature " id="no_mail_alert-instance_method">
|
1083
|
+
|
1084
|
+
- (<tt>Object</tt>) <strong>no_mail_alert</strong>
|
1085
|
+
|
1086
|
+
|
1087
|
+
|
1088
|
+
|
1089
|
+
|
1090
|
+
</h3><table class="source_code">
|
1091
|
+
<tr>
|
1092
|
+
<td>
|
1093
|
+
<pre class="lines">
|
1094
|
+
|
1095
|
+
|
1096
|
+
81
|
1097
|
+
82
|
1098
|
+
83
|
1099
|
+
84</pre>
|
1100
|
+
</td>
|
1101
|
+
<td>
|
1102
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 81</span>
|
1103
|
+
|
1104
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_no_mail_alert'>no_mail_alert</span>
|
1105
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rockdove observed no mail yet.</span><span class='tstring_end'>"</span></span>
|
1106
|
+
<span class='kw'>nil</span>
|
1107
|
+
<span class='kw'>end</span></pre>
|
1108
|
+
</td>
|
1109
|
+
</tr>
|
1110
|
+
</table>
|
1111
|
+
</div>
|
1112
|
+
|
1113
|
+
<div class="method_details ">
|
1114
|
+
<h3 class="signature " id="process-instance_method">
|
1115
|
+
|
1116
|
+
- (<tt>Object</tt>) <strong>process</strong>
|
1117
|
+
|
1118
|
+
|
1119
|
+
|
1120
|
+
|
1121
|
+
|
1122
|
+
</h3><table class="source_code">
|
1123
|
+
<tr>
|
1124
|
+
<td>
|
1125
|
+
<pre class="lines">
|
1126
|
+
|
1127
|
+
|
1128
|
+
114
|
1129
|
+
115
|
1130
|
+
116
|
1131
|
+
117
|
1132
|
+
118</pre>
|
1133
|
+
</td>
|
1134
|
+
<td>
|
1135
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 114</span>
|
1136
|
+
|
1137
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_process'>process</span>
|
1138
|
+
<span class='ivar'>@to_folder</span> <span class='op'>=</span> <span class='const'>Rockdove</span><span class='op'>::</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_archive_folder'>archive_folder</span>
|
1139
|
+
<span class='ivar'>@mail_stack</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_item'>item</span><span class='op'>|</span> <span class='id identifier rubyid_archive'>archive</span><span class='lparen'>(</span><span class='id identifier rubyid_item'>item</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1140
|
+
<span class='ivar'>@mail_stack</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1141
|
+
<span class='kw'>end</span></pre>
|
1142
|
+
</td>
|
1143
|
+
</tr>
|
1144
|
+
</table>
|
1145
|
+
</div>
|
1146
|
+
|
1147
|
+
<div class="method_details ">
|
1148
|
+
<h3 class="signature " id="reconnect_and_raise_error-instance_method">
|
1149
|
+
|
1150
|
+
- (<tt>Object</tt>) <strong>reconnect_and_raise_error</strong>
|
1151
|
+
|
1152
|
+
|
1153
|
+
|
1154
|
+
|
1155
|
+
|
1156
|
+
</h3><table class="source_code">
|
1157
|
+
<tr>
|
1158
|
+
<td>
|
1159
|
+
<pre class="lines">
|
1160
|
+
|
1161
|
+
|
1162
|
+
101
|
1163
|
+
102
|
1164
|
+
103
|
1165
|
+
104
|
1166
|
+
105
|
1167
|
+
106
|
1168
|
+
107</pre>
|
1169
|
+
</td>
|
1170
|
+
<td>
|
1171
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 101</span>
|
1172
|
+
|
1173
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_reconnect_and_raise_error'>reconnect_and_raise_error</span>
|
1174
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Reconnecting to the Exchange Server & Fetching the mail now.</span><span class='tstring_end'>"</span></span>
|
1175
|
+
<span class='const'>Rockdove</span><span class='op'>::</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_connect'>connect</span>
|
1176
|
+
<span class='const'>Viewpoint</span><span class='op'>::</span><span class='const'>EWS</span><span class='op'>::</span><span class='const'>Folder</span><span class='period'>.</span><span class='id identifier rubyid_get_folder_by_name'>get_folder_by_name</span><span class='lparen'>(</span><span class='ivar'>@incoming_folder</span><span class='rparen'>)</span>
|
1177
|
+
<span class='kw'>rescue</span> <span class='const'>Viewpoint</span><span class='op'>::</span><span class='const'>EWS</span><span class='op'>::</span><span class='const'>EwsError</span>
|
1178
|
+
<span class='id identifier rubyid_send_connection_failed_message'>send_connection_failed_message</span>
|
1179
|
+
<span class='kw'>end</span></pre>
|
1180
|
+
</td>
|
1181
|
+
</tr>
|
1182
|
+
</table>
|
1183
|
+
</div>
|
1184
|
+
|
1185
|
+
<div class="method_details ">
|
1186
|
+
<h3 class="signature " id="retrieve_mail-instance_method">
|
1187
|
+
|
1188
|
+
- (<tt>Object</tt>) <strong>retrieve_mail</strong>(fetched_mail)
|
1189
|
+
|
1190
|
+
|
1191
|
+
|
1192
|
+
|
1193
|
+
|
1194
|
+
</h3><table class="source_code">
|
1195
|
+
<tr>
|
1196
|
+
<td>
|
1197
|
+
<pre class="lines">
|
1198
|
+
|
1199
|
+
|
1200
|
+
76
|
1201
|
+
77
|
1202
|
+
78
|
1203
|
+
79</pre>
|
1204
|
+
</td>
|
1205
|
+
<td>
|
1206
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 76</span>
|
1207
|
+
|
1208
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_retrieve_mail'>retrieve_mail</span><span class='lparen'>(</span><span class='id identifier rubyid_fetched_mail'>fetched_mail</span><span class='rparen'>)</span>
|
1209
|
+
<span class='ivar'>@inbox_connection</span> <span class='op'>||=</span> <span class='id identifier rubyid_inbox'>inbox</span>
|
1210
|
+
<span class='const'>Rockdove</span><span class='op'>::</span><span class='const'>ExchangeMail</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_fetched_mail'>fetched_mail</span><span class='comma'>,</span> <span class='ivar'>@inbox_connection</span><span class='rparen'>)</span>
|
1211
|
+
<span class='kw'>end</span></pre>
|
1212
|
+
</td>
|
1213
|
+
</tr>
|
1214
|
+
</table>
|
1215
|
+
</div>
|
1216
|
+
|
1217
|
+
<div class="method_details ">
|
1218
|
+
<h3 class="signature " id="send_connection_failed_message-instance_method">
|
1219
|
+
|
1220
|
+
- (<tt>Object</tt>) <strong>send_connection_failed_message</strong>
|
1221
|
+
|
1222
|
+
|
1223
|
+
|
1224
|
+
|
1225
|
+
|
1226
|
+
</h3><table class="source_code">
|
1227
|
+
<tr>
|
1228
|
+
<td>
|
1229
|
+
<pre class="lines">
|
1230
|
+
|
1231
|
+
|
1232
|
+
109
|
1233
|
+
110
|
1234
|
+
111
|
1235
|
+
112</pre>
|
1236
|
+
</td>
|
1237
|
+
<td>
|
1238
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 109</span>
|
1239
|
+
|
1240
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_send_connection_failed_message'>send_connection_failed_message</span>
|
1241
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rockdove unable to connect to the Exchange Server</span><span class='tstring_end'>"</span></span>
|
1242
|
+
<span class='kw'>return</span> <span class='kw'>nil</span>
|
1243
|
+
<span class='kw'>end</span></pre>
|
1244
|
+
</td>
|
1245
|
+
</tr>
|
1246
|
+
</table>
|
1247
|
+
</div>
|
1248
|
+
|
1249
|
+
<div class="method_details ">
|
1250
|
+
<h3 class="signature " id="send_rockdove_to_watch_mail-instance_method">
|
1251
|
+
|
1252
|
+
- (<tt>Object</tt>) <strong>send_rockdove_to_watch_mail</strong>(&block)
|
1253
|
+
|
1254
|
+
|
1255
|
+
|
1256
|
+
|
1257
|
+
|
1258
|
+
</h3><table class="source_code">
|
1259
|
+
<tr>
|
1260
|
+
<td>
|
1261
|
+
<pre class="lines">
|
1262
|
+
|
1263
|
+
|
1264
|
+
29
|
1265
|
+
30
|
1266
|
+
31
|
1267
|
+
32
|
1268
|
+
33
|
1269
|
+
34
|
1270
|
+
35
|
1271
|
+
36
|
1272
|
+
37</pre>
|
1273
|
+
</td>
|
1274
|
+
<td>
|
1275
|
+
<pre class="code"><span class="info file"># File 'lib/rockdove/collect_mail.rb', line 29</span>
|
1276
|
+
|
1277
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_send_rockdove_to_watch_mail'>send_rockdove_to_watch_mail</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1278
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rockdove on watch for new mail...</span><span class='tstring_end'>"</span></span>
|
1279
|
+
<span class='id identifier rubyid_parsed_mails'>parsed_mails</span> <span class='op'>=</span> <span class='id identifier rubyid_group_of_mails'>group_of_mails</span>
|
1280
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_parsed_mails'>parsed_mails</span>
|
1281
|
+
<span class='const'>Rockdove</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rockdove calling App block</span><span class='tstring_end'>"</span></span>
|
1282
|
+
<span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_parsed_mails'>parsed_mails</span><span class='rparen'>)</span>
|
1283
|
+
<span class='id identifier rubyid_process'>process</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
1284
|
+
<span class='kw'>end</span>
|
1285
|
+
<span class='kw'>end</span></pre>
|
1286
|
+
</td>
|
1287
|
+
</tr>
|
1288
|
+
</table>
|
1289
|
+
</div>
|
1290
|
+
|
1291
|
+
</div>
|
1292
|
+
|
1293
|
+
</div>
|
1294
|
+
|
1295
|
+
<div id="footer">
|
1296
|
+
Generated on Wed Jul 11 11:40:25 2012 by
|
1297
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1298
|
+
0.8.2.1 (ruby-1.9.2).
|
1299
|
+
</div>
|
1300
|
+
|
1301
|
+
</body>
|
1302
|
+
</html>
|