config: Rename use_8bit to use-8bit for uniformity
authorW. Trevor King <wking@tremily.us>
Wed, 23 Jan 2013 22:54:34 +0000 (17:54 -0500)
committerW. Trevor King <wking@tremily.us>
Wed, 23 Jan 2013 22:54:34 +0000 (17:54 -0500)
We use hyphens in all the other config settings.

Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/config.py
rss2email/email.py

index 4dfce42d53c76cf3f05d49c3f787597cbf1b05df..775fcd74f06fbcd53dcdd35a79551fa8f6f2f9e4 100644 (file)
@@ -54,7 +54,7 @@ CONFIG['DEFAULT'] = _collections.OrderedDict((
         ('from', 'user@rss2email.invalid'),
         # Transfer-Encoding. For local mailing it is safe and
         # convient to use 8bit.
-        ('use_8bit', str(True)),
+        ('use-8bit', str(False)),
         # True: Only use the 'from' address.
         # False: Use the email address specified by the feed, when possible.
         ('force-from', str(False)),
index 6f333793e3b977c31d13ab060c00e6bae30a7f44..0eb48ff489b56dd469bd3dbf96b9ac0077d6be3f 100644 (file)
@@ -114,7 +114,7 @@ def get_message(sender, recipient, subject, body, content_type,
     message['From'] = _formataddr((sender_name, sender_addr))
     message['To'] = _formataddr((recipient_name, recipient_addr))
     message['Subject'] = _Header(subject, subject_encoding)
-    if config.getboolean(section, 'use_8bit'):
+    if config.getboolean(section, 'use-8bit'):
         message['Content-Transfer-Encoding'] = '8bit'
         message.set_payload(body)
     if extra_headers: