summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas_weissschuh@lavabit.com>2012-06-08 16:59:06 +0000
committerThomas Weißschuh <thomas_weissschuh@lavabit.com>2012-06-08 16:59:06 +0000
commit21a8b3dbbc2853b8268379bad40b009e4509f3d1 (patch)
treed2b992ba7635bb03dbfacdf099dedcfda550f8b9 /alot
parentbaa6e64547085cdab48b974e0eb18941fdbb77d0 (diff)
introduce setting quote_prefix
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/thread.py6
-rw-r--r--alot/defaults/alot.rc.spec3
2 files changed, 7 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index b649fc19..28e89c42 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -113,8 +113,9 @@ class ReplyCommand(Command):
if quotehook:
mailcontent += quotehook(self.message.accumulate_body())
else:
+ quote_prefix = settings.get('quote_prefix')
for line in self.message.accumulate_body().splitlines():
- mailcontent += '> ' + line + '\n'
+ mailcontent += quote_prefix + line + '\n'
envelope = Envelope(bodytext=mailcontent)
@@ -222,8 +223,9 @@ class ForwardCommand(Command):
if quotehook:
mailcontent += quotehook(self.message.accumulate_body())
else:
+ quote_prefix = settings.get('quote_prefix')
for line in self.message.accumulate_body().splitlines():
- mailcontent += '> ' + line + '\n'
+ mailcontent += quote_prefix + line + '\n'
envelope.body = mailcontent
diff --git a/alot/defaults/alot.rc.spec b/alot/defaults/alot.rc.spec
index 49bb95de..09dd51ad 100644
--- a/alot/defaults/alot.rc.spec
+++ b/alot/defaults/alot.rc.spec
@@ -116,6 +116,9 @@ user_agent = string(default='alot/{version}')
# Suffix of the prompt used when waiting for user input
prompt_suffix = string(default=':')
+# String prepended to line when quoting
+quote_prefix = string(default='> ')
+
# Key bindings
[bindings]
__many__ = string(default=None)