Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2017, 12:53 AM   #1
uniqdom
Junior Member
uniqdom began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle Paperwhite
BooksByMail extension - Send ebooks over mail without an Amazon account

Hello, I have been working on a extension that allows you to send books to your device using an email, but without the need of an Amazon account.

Please, consider it as BETA software.

Requirements
  • You need a jailbroken Kindle Paperwhite 1 with v5.3.9 fw (may work with other models and firmwares, but not tested).
  • NiLuJe's Python update installed in the device.
  • KUAL installed.

Installation
  • Copy using a USB cable the folder 'bookbymail' into the folder 'extensions/'. If you want to do it over the network, copy the folder to '/mnt/us/extensions/'

Configuration
  • Edit the file bookbymail/etc/offlineimap.conf. Set your email provider, your account and password. Also change the parameter 'maxage' if you want to download books from mails that are older than two days. Keep in mind that you need enough space to download all those mails (they are removed after the operation is complete).
  • Edit the file bookbymail/etc/ebooksFormats to set the file extensions of the books that you want to download from your email to the device.

How to send books to your device?
  • Use Calibre feature to send books over mail or just send you an email using your email client. There is no need for a subject or a body. Just attach your ebook. The filename of the ebook must be a valid FAT32 filename, so avoid strange symbols.
  • In your Kindle, open KUAL, and tap on BooksByMail.
  • It will take a little time to fetch the emails and unpack the attachments. Afterwards books will end up in your documents folder.

Restrictions
  • Only IMAP servers are supported, so, don't try POP servers.
  • Keep in mind that the max size of the book will be limited by the size of an attachment in your email account.
  • As the storage is in a FAT32 filesystem, don't use strange symbols in the filename of the ebook.

Contribute
  • Report if it works in other Kindle model/firmware
  • Report bugs
  • Send patches

You can find the project here.
https://github.com/mcastillof/BooksByMail
uniqdom is offline   Reply With Quote
Advert
Old 07-17-2017, 08:10 AM   #2
knc1
Analog Forever!
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 14,960
Karma: 16205021
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Thank you.
I haven't tried it myself yet but it looks nicely done.

On devices supported:
  • It is a Python script.
    NiLuJe has posted Python-2.7 builds for all Kindle models, K2 .. Oasis.
  • It is launched by KUAL.
    KUAL works on all Kindle models, K2 .. Oasis.
  • NiLuJe's builds are here:
    NiLuJe's Snapshots
    (Which everyone should be using anyway.)

Notes:
I am not selling Gmail, it is just an easy to access example for these suggestions.
Any decent e-mail account provider will offer the same or similar account controls.
  • As noted in the documentation, Calibre is not required.
    Any e-mail account that supports imap access may be used. (Which isn't much of a restriction.)
  • This is a Python script, it should run on your desktop PC also (but I haven't tried it).
  • There are tools to synchronize imap accounts.
    Isync
    Which would need to be compiled for the Kindles, but scroll to the bottom for a link to a similar tool written in Python.
  • imap on Gmail:
    Google Imap
    Note: The default setting on a new gmail account is pop disabled, imap enabled.
  • Use an account alias, not your base account.
    Available in the "Accounts and Import" section of Gmail settings page.
  • Use an account label for your books.
    Available in the "Labels" section of Gmail settings page.
    Note that you can control imap access by account labels.
  • Setup a suitable (for you) set of filters and perhaps a whitelist of senders.
    Available in the "Filters and Blocked Addresses" section of Gmail settings page.
  • A general purpose e-mail account will not auto-convert things to a Kindle readable format.
  • A general purpose e-mail account will support s/mime and the Kindles have the supporting libraries pre-installed in case anyone wants to extend this to handle s/mime attachments.
    (Nobody can be tracking your reading interests if you encrypt the darn things for transmittal.
    And the attachments are useless (other than as random numbers) to any unintended recipients. )

Last edited by knc1; 07-17-2017 at 08:36 AM.
knc1 is offline   Reply With Quote
Old 07-17-2017, 02:22 PM   #3
uniqdom
Junior Member
uniqdom began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle Paperwhite
Quote:
Originally Posted by knc1 View Post
On devices supported:
  • It is a Python script.
    NiLuJe has posted Python-2.7 builds for all Kindle models, K2 .. Oasis.
  • It is launched by KUAL.
    KUAL works on all Kindle models, K2 .. Oasis.
  • NiLuJe's builds are here:
    NiLuJe's Snapshots
    (Which everyone should be using anyway.)

Thanks knc1.
The Python script that I'm using came from offlineimap, I'm using their latest version available in their repo (v7.1.2). I'm also using a binary file called munpack, taken from mpack project. The binary comes from Debian Stretch armel mpack .deb package. I don't know if this binary file will work in different kindle devices.

I will provide more info in a few hours.
uniqdom is offline   Reply With Quote
Old 07-17-2017, 02:36 PM   #4
knc1
Analog Forever!
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 14,960
Karma: 16205021
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
I misread the requirement for libc - all of our Kindles have a new enough libc to run that binary.

The KT and PW1 are both using the same ARMv6 based system chip and all of the newer models are using an ARMv7 based system chip. But the ARMv7 will run all ARMv6 code (ARM is very good at that).

So there is a good chance it will run on all touch screen models.

- - - - -

That mpack/munpack binary does not do s/mime -
But that was just an observation in my notes, leave it up to someone else to add s/mime support.

= = = =

No, I don't remember all of that just off the top of my head.
I have open in front of me a list of such facts I have been working on for the past several days.

Last edited by knc1; 07-17-2017 at 02:53 PM.
knc1 is offline   Reply With Quote
Old 07-18-2017, 12:54 AM   #5
uniqdom
Junior Member
uniqdom began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle Paperwhite
In a next release I would like to put a busy or loading icon, so the user can know that the extension is still working. Any recommendation to do that?
uniqdom is offline   Reply With Quote
Advert
Reply

Tags
booksbymail, email books, email to kindle, extension, kual

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about emailing ebooks to Amazon account pdurrant Amazon Kindle 45 08-03-2016 04:01 PM
Cloud Reader Amazon Send-to-Kindle E-Mail henryebook Amazon Kindle 9 01-20-2012 03:26 PM
Chrome Browser and send to Kindle extension janrey Amazon Kindle 14 12-08-2011 02:50 PM
Free 30gig e-mail account TadW Lounge 6 11-17-2005 08:04 AM


All times are GMT -4. The time now is 06:40 PM.


MobileRead.com is a privately owned, operated and funded community.