Methods
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 177
177: def comments
178: ensure_parsed
179: @comments
180: end
Private Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 209
209: def do_parse
210: obj = Parser.parse(self.class::PARSE_TYPE, @body, @comments)
211: set obj if obj
212: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 184
184: def parse
185: save = nil
186:
187: begin
188: parse_init
189: do_parse
190: rescue SyntaxError
191: if not save and mime_encoded? @body
192: save = @body
193: @body = Decoder.decode(save)
194: retry
195: elsif save
196: @body = save
197: end
198:
199: @illegal = true
200: raise if @config.strict_parse?
201: end
202: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 204
204: def parse_init
205: @comments = []
206: init
207: end