instance method write_status

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18 Private

Available in: v2.2.3 v2.3.18

Signature

write_status( f, tag, flag )

No documentation comment.

Parameters

f req
tag req
flag req
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/port.rb, line 210
    def write_status( f, tag, flag )
      stat = ''
      File.open(@filename) {|r|
        while line = r.gets
          if line.strip.empty?
            break
          elsif m = /\AX-TMail-Status:/i.match(line)
            stat = m.post_match.strip
          else
            f.print line
          end
        end

        s = procinfostr(stat, tag, flag)
        f.puts 'X-TMail-Status: ' + s unless s.empty?
        f.puts

        while s = r.read(2048)
          f.write s
        end
      }
    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/port.rb line 210 · View on GitHub · Improve this page · Find usages on GitHub

Defined in TMail::MhPort

Type at least 2 characters to search.

↑↓ navigate · open · esc close