class TMail::ReceivedHeader
Constants
- PARSE_TYPE
Public Instance Methods
_for()
click to toggle source
# File lib/tmail/header.rb, line 546 def _for ensure_parsed @_for end
_for=( arg )
click to toggle source
# File lib/tmail/header.rb, line 551 def _for=( arg ) ensure_parsed @_for = arg end
by()
click to toggle source
# File lib/tmail/header.rb, line 511 def by ensure_parsed @by end
by=( arg )
click to toggle source
# File lib/tmail/header.rb, line 516 def by=( arg ) ensure_parsed @by = arg end
date()
click to toggle source
# File lib/tmail/header.rb, line 556 def date ensure_parsed @date end
date=( arg )
click to toggle source
# File lib/tmail/header.rb, line 561 def date=( arg ) ensure_parsed @date = arg end
from()
click to toggle source
# File lib/tmail/header.rb, line 501 def from ensure_parsed @from end
from=( arg )
click to toggle source
# File lib/tmail/header.rb, line 506 def from=( arg ) ensure_parsed @from = arg end
id()
click to toggle source
# File lib/tmail/header.rb, line 536 def id ensure_parsed @id end
id=( arg )
click to toggle source
# File lib/tmail/header.rb, line 541 def id=( arg ) ensure_parsed @id = arg end
via()
click to toggle source
# File lib/tmail/header.rb, line 521 def via ensure_parsed @via end
via=( arg )
click to toggle source
# File lib/tmail/header.rb, line 526 def via=( arg ) ensure_parsed @via = arg end
with()
click to toggle source
# File lib/tmail/header.rb, line 531 def with ensure_parsed @with end
Private Instance Methods
do_accept( strategy )
click to toggle source
# File lib/tmail/header.rb, line 582 def do_accept( strategy ) list = [] list.push 'from ' + @from if @from list.push 'by ' + @by if @by list.push 'via ' + @via if @via @with.each do |i| list.push 'with ' + i end list.push 'id ' + @id if @id list.push 'for <' + @_for + '>' if @_for first = true list.each do |i| strategy.space unless first strategy.meta i first = false end if @date strategy.meta ';' strategy.space strategy.meta time2str(@date) end end
init()
click to toggle source
# File lib/tmail/header.rb, line 568 def init @from = @by = @via = @with = @id = @_for = nil @with = [] @date = nil end
isempty?()
click to toggle source
# File lib/tmail/header.rb, line 578 def isempty? @with.empty? and not (@from or @by or @via or @id or @_for or @date) end
set( args )
click to toggle source
# File lib/tmail/header.rb, line 574 def set( args ) @from, @by, @via, @with, @id, @_for, @date = *args end