From df0563ce89e7dc1408e560f4ff87bb6beaa4ea39 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 23 Jan 2013 17:54:34 -0500 Subject: [PATCH] config: Rename use_8bit to use-8bit for uniformity We use hyphens in all the other config settings. Signed-off-by: W. Trevor King --- rss2email/config.py | 2 +- rss2email/email.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rss2email/config.py b/rss2email/config.py index 4dfce42..775fcd7 100644 --- a/rss2email/config.py +++ b/rss2email/config.py @@ -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)), diff --git a/rss2email/email.py b/rss2email/email.py index 6f33379..0eb48ff 100644 --- a/rss2email/email.py +++ b/rss2email/email.py @@ -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: -- 2.26.2