File: M000002.html

package info (click to toggle)
ruby-rubymail 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,056 kB
  • sloc: ruby: 6,061; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download | duplicates (5)
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(&quot;#{@sep}From &quot;)
        @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>