projects
/
rss2maildir.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove references to mailbox module (doesn't let you write to maildir, which is
[rss2maildir.git]
/
rss2maildir.py
diff --git
a/rss2maildir.py
b/rss2maildir.py
index 2d26217f9fb9d0df73f760926aea8946c10d421a..02bd392c5132e74af522dabf2937c8ffcc2a6d73 100755
(executable)
--- a/
rss2maildir.py
+++ b/
rss2maildir.py
@@
-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/>.
# 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
import sys
import os
import stat
@@
-179,7
+178,6
@@
class HTML2Text(HTMLParser):
return data
def parse_and_deliver(maildir, url, statedir):
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"]:
fp = feedparser.parse(url)
db = dbm.open(os.path.join(statedir, "seen"), "c")
for item in fp["items"]: