instance method set_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

set_status( tag, flag )

No documentation comment.

Parameters

tag req
flag req
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/port.rb, line 272
    def set_status( tag, flag )
      if m = MAIL_FILE.match(File.basename(@filename))
        s, uniq, type, info, = m.to_a
        return if type and type != '2'  # do not change anything
        newname = File.dirname(@filename) + '/' +
                  uniq + ':2,' + procinfostr(info.to_s, tag, flag)
      else
        newname = @filename + ':2,' + tag
      end

      File.link @filename, newname
      File.unlink @filename
      @filename = newname
    end

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

Defined in TMail::MaildirPort

Type at least 2 characters to search.

↑↓ navigate · open · esc close