Commit a79fa4a8 authored by Jérome Perrin's avatar Jérome Perrin

remove duplicated methods


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32353 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 535e7f28
......@@ -72,27 +72,6 @@ class MailMessage(Event):
, PropertySheet.MailMessage
)
def getReplyBody(self):
"""
This is used in order to respond to a mail,
this put a '> ' before each line of the body
"""
reply_body = ''
body = self.getBody()
if type(body) is type('a'):
reply_body = '> ' + body.replace('\n', '\n> ')
return reply_body
def getReplySubject(self):
"""
This is used in order to respond to a mail,
this put a 'Re: ' before the orignal subject
"""
reply_subject = self.getTitle()
if reply_subject.find('Re: ') != 0:
reply_subject = 'Re: ' + reply_subject
return reply_subject
def send(self, from_url=None, to_url=None, msg=None, subject=None):
"""
Sends a reply to this mail message.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment