Methods
Constants
| PARSE_TYPE | = | :RECEIVED |
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 508
508: def _for
509: ensure_parsed
510: @_for
511: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 513
513: def _for=( arg )
514: ensure_parsed
515: @_for = arg
516: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 473
473: def by
474: ensure_parsed
475: @by
476: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 478
478: def by=( arg )
479: ensure_parsed
480: @by = arg
481: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 518
518: def date
519: ensure_parsed
520: @date
521: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 523
523: def date=( arg )
524: ensure_parsed
525: @date = arg
526: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 463
463: def from
464: ensure_parsed
465: @from
466: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 468
468: def from=( arg )
469: ensure_parsed
470: @from = arg
471: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 498
498: def id
499: ensure_parsed
500: @id
501: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 503
503: def id=( arg )
504: ensure_parsed
505: @id = arg
506: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 483
483: def via
484: ensure_parsed
485: @via
486: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 488
488: def via=( arg )
489: ensure_parsed
490: @via = arg
491: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 493
493: def with
494: ensure_parsed
495: @with
496: end
Private Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 544
544: def do_accept( strategy )
545: list = []
546: list.push 'from ' + @from if @from
547: list.push 'by ' + @by if @by
548: list.push 'via ' + @via if @via
549: @with.each do |i|
550: list.push 'with ' + i
551: end
552: list.push 'id ' + @id if @id
553: list.push 'for <' + @_for + '>' if @_for
554:
555: first = true
556: list.each do |i|
557: strategy.space unless first
558: strategy.meta i
559: first = false
560: end
561: if @date
562: strategy.meta ';'
563: strategy.space
564: strategy.meta time2str(@date)
565: end
566: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 530
530: def init
531: @from = @by = @via = @with = @id = @_for = nil
532: @with = []
533: @date = nil
534: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 540
540: def isempty?
541: @with.empty? and not (@from or @by or @via or @id or @_for or @date)
542: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 536
536: def set( args )
537: @from, @by, @via, @with, @id, @_for, @date = *args
538: end