View Single Post
Old 12-07-2011, 08:16 AM   #1
jennie
Member
jennie began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2010
Device: kindle 3
linux nautilus script: send file to kindle

I just wrote an extremely basic script to email books to my kindle from the nautilus file manager, using my gmail account. It would be nice if someone else could improve on it, but in the meantime, for whoever might be interested:
Code:
#!/bin/sh

calibre-smtp -r smtp.gmail.com --port 587 --username myusername@gmail.com --password mypassword -vv --subject convert --attachment $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS myusername@gmail.com myusername@free.kindle.com "email"
Bear in mind that this script leaves your password completely unprotected. Also, it will only work if you select one file at a time. Spaces, non-latin characters, and accented characters are not allowed in the filename.

If you still want to use it, you will need to replace every instance of myusername and mypassword with your coordinates, and save the code to a file named "Send to Kindle" inside /home/user/.gnome2/nautilus-scripts . Then, make sure you make the file executable. Obviously, you must have calibre installed.
jennie is offline   Reply With Quote