[Remail] [PATCH v2 2/5] config: pass the incorrect mail address instead of the config path

Andreas Rammhold andi at notmuch.email
Mon Mar 2 17:11:36 CET 2020


From: Andreas Rammhold <andreas at rammhold.de>

Previously remail just logged the path of the attribute (e.g.
base.lists.demo.listaccount.addr) instead of the actually mail address
that wasn't valid.

Signed-off-by: Andreas Rammhold <andreas at rammhold.de>
---
 remail/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/remail/config.py b/remail/config.py
index 9832f56..d3ce5d5 100644
--- a/remail/config.py
+++ b/remail/config.py
@@ -51,7 +51,7 @@ class account_config(object):
         base = base + '.addr'
         # Do at least minimal checks for a valid email address
         if not email_addr_valid(addr):
-            txt = 'Invalid email address: %s' % base
+            txt = 'Invalid email address: %s' % addr
             raise RemailListConfigException(txt)
 
         self.addr = addr
-- 
2.25.1




More information about the Remail mailing list