mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-04 21:01:27 -05:00
19 lines
281 B
Ruby
19 lines
281 B
Ruby
|
module Email
|
||
|
|
||
|
class IncomingMessage
|
||
|
|
||
|
attr_reader :reply_key,
|
||
|
:body_plain
|
||
|
|
||
|
def initialize(reply_key, body)
|
||
|
@reply_key = reply_key
|
||
|
@body = body
|
||
|
end
|
||
|
|
||
|
def reply
|
||
|
@reply ||= EmailReplyParser.read(@body).visible_text
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|