if not destination:
src, dest = dest, src
if body and case.user_id.signature:
- body += '\n\n%s' % (case.user_id.signature)
+ if body:
+ body += '\n\n%s' % (case.user_id.signature)
+ else:
+ body = '\n\n%s' % (case.user_id.signature)
body = self.format_body(body)
msg_txt = ''
if message.history:
msg_txt += (message.email_from or '/') + ' wrote on ' + format_date_tz(message.date, tz) + ':\n\t'
- msg_txt += '\n\t'.join(message.description.split('\n')[:3]) + '...'
+ if message.description:
+ msg_txt += '\n\t'.join(message.description.split('\n')[:3]) + '...'
else:
msg_txt = (message.user_id.name or '/') + ' on ' + format_date_tz(message.date, tz) + ':\n\t'
if message.name == 'Opportunity':