Remove references to mailbox module (doesn't let you write to maildir, which is
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Fri, 21 Dec 2007 13:29:17 +0000 (13:29 +0000)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Fri, 21 Dec 2007 13:29:17 +0000 (13:29 +0000)
what we want, until python 2.5)

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"]: