Skip to content

Pull rss/atom feeds to your imap folders with clojure on jvm.

Notifications You must be signed in to change notification settings

astanin/clojure-feeds2imap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feeds2imap.clj

RSS/Atom reader implemented in Clojure. It stores new items in the mail folders using IMAP APPEND command (java.mail framework).

Configuration

By default configuration dir is $HOME/.config/feeds2imap.clj.

The only file required to run the code is imap.clj. Take a look at imap.clj.example for details.

Feeds and folders can be added using the add command (see below), or you can write them directly in the urls.clj file (inside the configuration directory). The format of this file is as follows:

{:folder1 ["url1" "url2" ...]
 :folder2 [...]
 ...}

Usage

You can use lein run to run programm or you can generate jar with lein uberjar and run programm with java -jar <path-to-jar>.

  • LAUNCH-COMMAND - pull new items.
  • LAUNCH-COMMAND pull - pull new items.
  • LAUNCH-COMMAND auto - pull new items every 1 hour in the loop.
  • LAUNCH-COMMAND show - show feeds list (url.clj file content).
  • LAUNCH-COMMAND add folder-name feed-url - add url to feeds file to the folder folder-name.
  • LAUNCH-COMMAND opml2clj filename.xml [path/to/urls.clj] - convert OPML file to urls.clj format

where LAUNCH-COMMAND = lein run / lein trampoline run / java -jar jarfile.jar.

License

Copyright © 2013 Max Gonzih gonzih at gmail.com

Distributed under the Eclipse Public License, the same as Clojure.

Thanks

Thanks to Greg Hendershott for original idea implemented in Racket http://www.greghendershott.com/2013/05/feeds2gmail.html

Similar projects

About

Pull rss/atom feeds to your imap folders with clojure on jvm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%