mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-03 12:27:35 -05:00
e29f4a3496
- Add support classes and settings to enable reply by email - Split out Email builder to be more OO, add many specs
19 lines
No EOL
281 B
Ruby
19 lines
No EOL
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 |