From 5a5f435a4279dc05f2195260f3db4569029df9c3 Mon Sep 17 00:00:00 2001
From: Simon Fondrie-Teitler <simonft@riseup.net>
Date: Sat, 7 Jan 2017 16:11:43 -0500
Subject: [PATCH] Don't escape percent signs that are actually required in
 default mua command

I'm not sure why this was done originally, but it's only formatted
once, so the escaped percent signs cause the formatting to simply
replace the escaped ones with unescaped ones.

Closes: #59
---
 monkeysign/ui.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/monkeysign/ui.py b/monkeysign/ui.py
index 393db36..a66bc64 100644
--- a/monkeysign/ui.py
+++ b/monkeysign/ui.py
@@ -157,7 +157,7 @@ class MonkeysignArgumentParser(argparse.ArgumentParser):
                                    'passed on the commandline in the "%%(to)s"'
                                    ' field, or the command must parse the '
                                    '"To:" header (default: %(default)s)'))
-        default_mua = "xdg-email --utf8 --to '%%(to)s' --subject '%%(subject)s' --body '%%(body)s' --attach '%%(attach)s'"
+        default_mua = "xdg-email --utf8 --to '%(to)s' --subject '%(subject)s' --body '%(body)s' --attach '%(attach)s'"
         self.add_argument('--mua', nargs='?', default=None, const=default_mua,
                             help=_('Mail User Agent to use to send mail. all '
                                    'parameters are passed on the commandline,'
-- 
GitLab