Methods
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 397
397: def each_id
398: self.refs.each do |i|
399: yield i if MESSAGE_ID === i
400: end
401: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 408
408: def each_phrase
409: self.refs.each do |i|
410: yield i unless MESSAGE_ID === i
411: end
412: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 403
403: def ids
404: ensure_parsed
405: @ids
406: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 414
414: def phrases
415: ret = []
416: each_phrase {|i| ret.push i }
417: ret
418: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 392
392: def refs
393: ensure_parsed
394: @refs
395: end
Private Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 444
444: def do_accept( strategy )
445: first = true
446: @ids.each do |i|
447: if first
448: first = false
449: else
450: strategy.space
451: end
452: strategy.meta i
453: end
454: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 431
431: def do_parse
432: str = @body
433: while m = MESSAGE_ID.match(str)
434: pre = m.pre_match.strip
435: @refs.push pre unless pre.empty?
436: @refs.push s = m[0]
437: @ids.push s
438: str = m.post_match
439: end
440: str = str.strip
441: @refs.push str unless str.empty?
442: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 422
422: def init
423: @refs = []
424: @ids = []
425: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 427
427: def isempty?
428: @ids.empty?
429: end