class method self.mkfinal

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.mkfinal( mh, mboxfile, writeback_p, cleanup_p )

No documentation comment.

Parameters

mh req
mboxfile req
writeback_p req
cleanup_p req
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/mailbox.rb, line 248
    def UNIXMbox.mkfinal( mh, mboxfile, writeback_p, cleanup_p )
      lambda {
          if writeback_p
            lock(mboxfile) {|f|
                mh.each_port do |port|
                  f.puts create_from_line(port)
                  port.ropen {|r|
                      f.puts r.read
                  }
                end
            }
          end
          if cleanup_p
            Dir.foreach(mh.dirname) do |fname|
              next if /\A\.\.?\z/ === fname
              File.unlink "#{mh.dirname}/#{fname}"
            end
            Dir.rmdir mh.dirname
          end
      }
    end

Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.7/tmail/mailbox.rb line 248 · View on GitHub · Improve this page · Find usages on GitHub

Defined in TMail::MboxLoader

Type at least 2 characters to search.

↑↓ navigate · open · esc close