diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2019-08-10 18:29:43 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-08-15 11:33:04 +0100 |
commit | 7eaaaf6e0f0acfe754aaad4d07cbd83980151665 (patch) | |
tree | 50aa90d5f7dc6d8da24389359c1a95550491f319 /alot/commands/thread.py | |
parent | d41927f23614321ae6f711ebd356808264ecd6c6 (diff) |
retire Message.accumulate_body
... in favour of get_body_text to de-clutter the Message class.
The functionality is implemented in alot.db.utils.extract_body, which
now contains the hard-coding of the html warning.
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r-- | alot/commands/thread.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py index 60c46b93..c69aca8b 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -149,10 +149,10 @@ class ReplyCommand(Command): mailcontent = quotestring quotehook = settings.get_hook('text_quote') if quotehook: - mailcontent += quotehook(self.message.accumulate_body()) + mailcontent += quotehook(self.message.get_body_text()) else: quote_prefix = settings.get('quote_prefix') - for line in self.message.accumulate_body().splitlines(): + for line in self.message.get_body_text().splitlines(): mailcontent += quote_prefix + line + '\n' envelope = Envelope(bodytext=mailcontent, replied=self.message) @@ -327,10 +327,10 @@ class ForwardCommand(Command): mailcontent = quote quotehook = settings.get_hook('text_quote') if quotehook: - mailcontent += quotehook(self.message.accumulate_body()) + mailcontent += quotehook(self.message.get_body_text()) else: quote_prefix = settings.get('quote_prefix') - for line in self.message.accumulate_body().splitlines(): + for line in self.message.get_body_text().splitlines(): mailcontent += quote_prefix + line + '\n' envelope.body = mailcontent @@ -463,7 +463,7 @@ class EditNewCommand(Command): 'signed', 'encrypted', 'unread', 'attachment'}) tags = list(tags) # set body text - mailcontent = self.message.accumulate_body() + mailcontent = self.message.get_body_text() envelope = Envelope(bodytext=mailcontent, tags=tags) # copy selected headers |