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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>new (RMail::Mailbox::MBoxReader)</title>
<link rel=StyleSheet href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body bgcolor="white">
<pre><span class="cmt"># File lib/rmail/mailbox/mboxreader.rb, line 61</span>
<span class="kw">def</span> initialize(input, line_separator = $/)
<span class="kw">super</span>(input)
@end_of_message = <span class="kw">false</span>
@chunk_minsize = 0
@sep = line_separator
@tail = <span class="kw">nil</span>
<span class="cmt"># This regexp will match a From_ header, or some prefix.</span>
re_string = RMail::Parser::PushbackReader.
maybe_contains_re("#{@sep}From ")
@partial_from_re = Regexp.new(re_string)
<span class="cmt"># This regexp will match an entire From_ header.</span>
@entire_from_re = /\A#{@sep}From .*?#{@sep}/
<span class="kw">end</span></pre>
</body>
</html>
|