]> git.sommitrealweird.co.uk Git - rss2maildir.git/blobdiff - rss2maildir.py
Remove references to mailbox module (doesn't let you write to maildir, which is
[rss2maildir.git] / rss2maildir.py
index 2d26217f9fb9d0df73f760926aea8946c10d421a..02bd392c5132e74af522dabf2937c8ffcc2a6d73 100755 (executable)
@@ -17,7 +17,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-import mailbox
 import sys
 import os
 import stat
@@ -179,7 +178,6 @@ class HTML2Text(HTMLParser):
         return data
 
 def parse_and_deliver(maildir, url, statedir):
-    md = mailbox.Maildir(maildir)
     fp = feedparser.parse(url)
     db = dbm.open(os.path.join(statedir, "seen"), "c")
     for item in fp["items"]: