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
Member
uniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it is
 
Posts: 17
Karma: 2270
Join Date: Jul 2013
Device: Boox Max3
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.
  • Store your passphrase to decrypt files in BookByMail/etc/passphrase.

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.


How to encrypt a book?
  • You may use GnuPG to encrypt the file. Just be sure to set the passhphrase in BookByMail/etc/passphrase to decrypt in your kindle.
  • To encrypt a book:

    Code:
    gpg --cipher-algo AES256 --output a.txt.gpg --symmetric a.txt
  • From there, just send filename.mobi.gpg to your mail. The extension '.gpg' is needed to know that the file is encrypted, and the extension '.mobi' (or another extension of supported books) is needed to know that the file is a supported book.

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

Last edited by uniqdom; 10-22-2017 at 08:55 PM. Reason: Version 0.03 (beta). Added GnuPG
uniqdom is offline   Reply With Quote
Old 07-17-2017, 08:10 AM   #2
knc1
Going Viral
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: 17,212
Karma: 18210809
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
Member
uniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it is
 
Posts: 17
Karma: 2270
Join Date: Jul 2013
Device: Boox Max3
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
Going Viral
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: 17,212
Karma: 18210809
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
Member
uniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it is
 
Posts: 17
Karma: 2270
Join Date: Jul 2013
Device: Boox Max3
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
Old 10-22-2017, 08:48 PM   #6
uniqdom
Member
uniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it is
 
Posts: 17
Karma: 2270
Join Date: Jul 2013
Device: Boox Max3
I have updated this extension to version 0.03 (beta). In this update I have added GnuPG, so now you can send encrypted books over your email.

Basically you have to encrypt your book using a passphrase, send it over your email as attachment, and open the BooksByMail extension. More info in the Readme file of the project.
uniqdom is offline   Reply With Quote
Old 10-25-2017, 03:45 PM   #7
THE DBX
Member
THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.THE DBX solves Fermat’s last theorem while doing the crossword.
 
Posts: 23
Karma: 28488
Join Date: Jul 2017
Device: Kindle Oasis Wifi+3g
Thanks for this apps!
...I have try with my Oasis One... nothing running.
But, I'm sure in the futur update, all kindle can have this function.
THE DBX is offline   Reply With Quote
Old 04-05-2020, 07:15 PM   #8
Pisckuy
Junior Member
Pisckuy began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Dec 2018
Device: Pw3
Quote:
Originally Posted by knc1 View Post
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. )
Hello. It work in a pw3? Or I can find any alternative today? Thanx you.
Pisckuy is offline   Reply With Quote
Old 04-10-2020, 10:59 AM   #9
uniqdom
Member
uniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it isuniqdom knows what time it is
 
Posts: 17
Karma: 2270
Join Date: Jul 2013
Device: Boox Max3
Hi Pisckuy, I don't have a pw3 and I also lost my pw1. Probably nobody is using this extension, but you may give it a try.

Requirements in pw1 were:

Quote:
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.
uniqdom is offline   Reply With Quote
Old 04-26-2021, 11:31 AM   #10
G-lo-gi-a
Junior Member
G-lo-gi-a began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2021
Device: PW2
I tried this on a PW2 (5.4.3.2) with KUAL v2.7.

I used NiLuJe's newest python2 snapshot 0.15.

I made a new gmail for simplicity but it's overkill really, I'm hoping to set up a simple mail server in future. If you choose to use gmail you'll need to enable "allow unsafe apps" option.

It worked perfectly first try. I haven't experimented/tested with it much but it downloaded some .mobi without trouble.

The mail to kindle is a really cool feature that I was sad got broken when jailbreaking, despite having the kindle registered correctly. This fixes that, and even better removes dependency on amazon servers.

Thank you uniqdom!
G-lo-gi-a is offline   Reply With Quote
Old 04-28-2021, 11:51 AM   #11
shalym
Wizard
shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.
 
shalym's Avatar
 
Posts: 3,032
Karma: 52740263
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
Quote:
Originally Posted by G-lo-gi-a View Post
I tried this on a PW2 (5.4.3.2) with KUAL v2.7.

I used NiLuJe's newest python2 snapshot 0.15.

I made a new gmail for simplicity but it's overkill really, I'm hoping to set up a simple mail server in future. If you choose to use gmail you'll need to enable "allow unsafe apps" option.

It worked perfectly first try. I haven't experimented/tested with it much but it downloaded some .mobi without trouble.

The mail to kindle is a really cool feature that I was sad got broken when jailbreaking, despite having the kindle registered correctly. This fixes that, and even better removes dependency on amazon servers.

Thank you uniqdom!
Wait--are you saying that send to kindle doesn't work anymore for jailbroken Kindles? Is that something with the newest jailbreak? While my Oasis 3 isn't jailbroken, I have jailbroken a few of my other Kindles and I was able to access books that were sent both via email and the Send to Kindle app.

Shari
shalym is offline   Reply With Quote
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 04:38 AM.


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