email: Stub out send_imap()
authorW. Trevor King <wking@tremily.us>
Thu, 28 Mar 2013 10:51:31 +0000 (06:51 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 5 Apr 2013 20:21:24 +0000 (16:21 -0400)
commit0927345d3b4ed0b06af335a2e4d1a857580d7ae7
tree4c78099886c34ea1e6a9df785534aec0a5441f0d
parentbd7b7ca96289e4148a6fdc278dcd68e5013f49e3
email: Stub out send_imap()

Arun Persaud suggested IMAP as an additional email delivery mechanism.
The benefit of using IMAP over SMTP is that you can set the target
mailbox directly (instead of filtering the incoming mail with procmail
or a similar external tool).  This commit restructures the 'send'
configuration to support IMAP output with a configurable mailbox.
That means you can do something like:

  [DEFAULT]
  email-protocol: imap
  imap-auth: True
  imap-username: myname
  imap-password: mypass
  imap-server: imap.yourisp.net
  imap-port: 993
  imap-ssl: True

  [feed.rss2email]
  url = http://www.allthingsrss.com/rss2email/feed/
  imap-mailbox = rss2email

  [feed.xkcd]
  url = http://xkcd.com/atom.xml
  imap-mailbox = xkcd

For non-IMAP users, note that the boolean `use-smtp` configuration
variable is gone, replaced by the more flexible `email-protocol`.
You'll want to replace:

  use-smtp = False

with:

  email-protocol = sendmail

and replace:

  use-smtp = True

with:

  email-protocol = smtp

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