summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/thread.py6
-rw-r--r--alot/defaults/alot.rc.spec4
2 files changed, 8 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index b6f15be0..b74e8bdc 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -128,8 +128,10 @@ class ReplyCommand(Command):
reply_subject_hook = settings.get_hook('reply_subject')
if reply_subject_hook:
subject = reply_subject_hook(subject)
- elif not subject.startswith('Re:'):
- subject = 'Re: ' + subject
+ else:
+ rsp = settings.get('reply_subject_prefix')
+ if not subject.startwith(('Re:', rsp)):
+ subject = rsp + subject
envelope.add('Subject', subject)
# set From
diff --git a/alot/defaults/alot.rc.spec b/alot/defaults/alot.rc.spec
index 09dd51ad..a3bda162 100644
--- a/alot/defaults/alot.rc.spec
+++ b/alot/defaults/alot.rc.spec
@@ -119,6 +119,10 @@ prompt_suffix = string(default=':')
# String prepended to line when quoting
quote_prefix = string(default='> ')
+# String prepended to subject header on reply
+# only if original subject doesn't start with 'Re:' or this prefix
+reply_subject_prefix = string(default='Re: ')
+
# Key bindings
[bindings]
__many__ = string(default=None)