diff options
author | Antoine Amarilli <a3nm@a3nm.net> | 2012-10-23 19:43:11 +0200 |
---|---|---|
committer | Antoine Amarilli <a3nm@a3nm.net> | 2012-10-23 19:53:24 +0200 |
commit | 423536fec98cc3140bd2f161ed808d38ddb6c08a (patch) | |
tree | f72bd01b89cb9d06b6eaf859e4aa0d04f8d09ecd /alot/db/message.py | |
parent | 5ed59825ffaeaacea90ea10be4b932c60428ed8e (diff) |
Add body_mimetype to tweak extract_body's defaults
Add a body_mimetype global configuration option to choose the default message
part to return as body in extract_body when types is None. Parts of the
preferred type will be returned if present, all text/* parts will be returned if
none parts of the preferred type exist. The default is "text/html", which should
result in the same behavior as before.
Diffstat (limited to 'alot/db/message.py')
-rw-r--r-- | alot/db/message.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/alot/db/message.py b/alot/db/message.py index 35a36aa1..65ef2dc8 100644 --- a/alot/db/message.py +++ b/alot/db/message.py @@ -243,9 +243,7 @@ class Message(object): """ returns bodystring extracted from this mail """ - #TODO: don't hardcode which part is considered body but allow toggle - # commands and a config default setting - + #TODO: allow toggle commands to decide which part is considered body return extract_body(self.get_email()) def get_text_content(self): |