From: W. Trevor King Date: Wed, 23 Jan 2013 22:54:34 +0000 (-0500) Subject: config: Rename use_8bit to use-8bit for uniformity X-Git-Tag: v3.0~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=df0563ce89e7dc1408e560f4ff87bb6beaa4ea39;p=rss2email.git config: Rename use_8bit to use-8bit for uniformity We use hyphens in all the other config settings. Signed-off-by: W. Trevor King --- 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: