8000 GitHub - peterkappus/ration: Email a photo (or any file) from a "queue" folder to a specified email address and move the sent item to the "Sent" folder. Great for publishing to tumblr or delivering regular doses of goodness to special people.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Email a photo (or any file) from a "queue" folder to a specified email address and move the sent item to the "Sent" folder. Great for publishing to tumblr or delivering regular doses of goodness to special people.

Notifications You must be signed in to change notification settings

peterkappus/ration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ration

Email a photo (or any file) from a "queue" folder to a specified email address and move the sent item to the "sent" folder. Great for publishing to tumblr/facebook via email or delivering regular doses of goodness to special people.

##Usage & Installation

  1. Put the files on your server somewhere (maybe via SCP)

    %> scp -r * remote_user@remote_box:/home/user_name/path/to/files

  2. Rename config.sample.yaml to config.yaml and update your config variables as needed

  3. Install the Pony Gem %> gem install pony Or use Bundler %> bundle install

  4. Fill up the queue directory with goodies (maybe via SCP)

    %> scp queue/* remote_user@remote_box.com:/home/user_name/path/to/queue

  5. Make sure both directories are writeable by the script (probably wont have to do this if cron runs as yourself)

  6. Setup your Cron Job to call this script whenever you wish

    %> crontab -e

###example cron: 55 */3 * * * /usr/local/rvm/bin/ruby-1.9.2-p318 /home/user_name/directory/go.rb #Run at 55 minutes past the hour every three hours using a custom RVM managed ruby version.

##To Do

  • Write some tests?
  • Make low queue volume notification threshold configurable

##Done

  • Put options in a config.yaml file.
  • Include server name (FQDN) in notification email
  • Include script path in notification email

##Credits Ration uses Pony to send mail The rest is hacked together by Peter Kappus http://www.peterkappus.com

About

Email a photo (or any file) from a "queue" folder to a specified email address and move the sent item to the "Sent" folder. Great for publishing to tumblr or delivering regular doses of goodness to special people.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0