Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-10-2021, 04:41 PM   #1
clisboa
Junior Member
clisboa doesn't litterclisboa doesn't litter
 
Posts: 9
Karma: 150
Join Date: Oct 2021
Device: Kobo Clara HD
Lightbulb [WIP] KoboMail - send ebooks by email to kobo devices

Hi folks,

Inspired by the send to kindle functionality I've taken this small endeavour to create something similar for kobo devices.
It's built in Go (my first program actually) and used bits and pieces of other solutions like KoboCloud, kobo-rclone and wallabako.
The way it works is by using Gmail trick that allows to send an email to user+kobo@gmail.com and the email is received on the user@gmail.com account.
This greatly simplifies any attempt to detect which emails are to be processed by the kobo device.

It's available here https://github.com/clisboa/KoboMail

Would appreciate if anyone takes a look at it and let me know of improvements .
I already have in mind using fbink to give more user feedback on what's happening behind the scenes, limiting the attachment types (it blindly saves any attachment) and allowing other email account types.

Have fun

Kind regards,
clisboa
clisboa is offline   Reply With Quote
Old 10-11-2021, 12:02 PM   #2
ccadi
Alive'n'Reading
ccadi is on a distinguished road
 
Posts: 43
Karma: 70
Join Date: Dec 2008
Location: uk
Device: Kobo Libra H20, Kobo Libra 2, Paperwhite 5 SE
deleted

Last edited by ccadi; 10-11-2021 at 07:05 PM. Reason: found a better solution, don't wish to engage
ccadi is offline   Reply With Quote
Old 10-13-2021, 08:15 PM   #3
clisboa
Junior Member
clisboa doesn't litterclisboa doesn't litter
 
Posts: 9
Karma: 150
Join Date: Oct 2021
Device: Kobo Clara HD
New version which now uses optionally NickelDbus to trigger the library rescan without human intervention and also presents dialogs to inform the user how many ebooks were processed.
clisboa is offline   Reply With Quote
Old 11-20-2021, 12:02 PM   #4
clisboa
Junior Member
clisboa doesn't litterclisboa doesn't litter
 
Posts: 9
Karma: 150
Join Date: Oct 2021
Device: Kobo Clara HD
New version available:
* added hability to configure email search criteria by subject tag
* added hability to limit which filetypes we get from the emails found
* users can choose to run KoboMail automatically via UDEV rules (whenever Kobo device gets wifi) or manually via NickelMenu
* NickelDbus usage now requires new version 0.2.0 for dialog (if not present only logs will be written)
clisboa is offline   Reply With Quote
Old 11-22-2021, 01:58 AM   #5
LuQQ
Member
LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.LuQQ is an enigma wrapped up in a mystery.
 
Posts: 17
Karma: 41372
Join Date: Jan 2013
Device: Kindle Paperwhite
This is so cool,I'll try it later.
LuQQ is offline   Reply With Quote
Old 01-06-2022, 05:34 PM   #6
karnonlm
Junior Member
karnonlm began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2022
Device: kindle paperwhite 5
This is incredibly useful to me. One thing I really miss on Kobo is the ability to automatically download email attatchments. With help of KoboMail, one can automatically parse RSS News and push to Kobo for offline reading. The automatic fetching is so important to me, as I am not always connectted to Wifi on the way.
karnonlm is offline   Reply With Quote
Old 04-27-2025, 10:45 AM   #7
FranciscoRocha
Junior Member
FranciscoRocha began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2025
Device: Kobo
Hi,
About this
email_flag_type = "subject"
email_flag = "[MyKobo]"
Is there any way to configure the script to load the attachment regardless of what is written in the subject?
FranciscoRocha is offline   Reply With Quote
Old 04-27-2025, 12:42 PM   #8
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,514
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by FranciscoRocha View Post
Hi,
About this
email_flag_type = "subject"
email_flag = "[MyKobo]"
Is there any way to configure the script to load the attachment regardless of what is written in the subject?
I believe the author is long time MIA; additionally his GitHub accoubt shows no activity since April 2022, and this project nothing since November 2021.

You might check out this fork off his project which does seem a bit more active --> https://github.com/bjw-s-labs/KoboMail
PeterT is offline   Reply With Quote
Old 04-27-2025, 01:50 PM   #9
FranciscoRocha
Junior Member
FranciscoRocha began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2025
Device: Kobo
Thanks
FranciscoRocha is offline   Reply With Quote
Old 07-14-2025, 03:33 AM   #10
DaRon
Enthusiast
DaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheese
 
DaRon's Avatar
 
Posts: 41
Karma: 1158
Join Date: Nov 2014
Location: Austria
Device: Libra Colour, Mini, Aura One, Pyrus mini
Hi,
I am wondering if someone can help me here...
My setup:
Kobo Libra Colour (most recent firmware)
https://github.com/bjw-s-labs/KoboMail
When i look at the config file for KoboMail one can see this:
Code:
    # email account
   imap_user = "user@domain.tld"
    # for gmail you should use the following instructions
    # gmail app password. you will need to generate a password specifically for KoboMail
    # this can be done here: https://support.google.com/mail/answer/185833?hl=en-GB
    # other email services please review their configuration options
    imap_pwd = "password"

    # IMAP folder to process
    imap_folder = "INBOX"

    # there's two methods KoboMail can identify emails destined to be imported into you're Kobo device:
    #  - plus:      where the email server allows sending emails to user+flag@server.com (like gmail)
    #email_flag_type = "plus"
    #email_flag = "kobo"

    #  - subject:   where KoboMail will search for emails with a subject like [flag] or $flag$ .
    #               We recommend using something unique so there's no false positives, for example
    #               if you just put Kobo you might be allowing KoboMail to detect regular emails from Rakuten Kobo
    email_flag_type = "subject"
    email_flag = "[MyKobo]"
[bold green text above]
How do i specify a subfolder?
in my setup, any mail addressed to localpart+flag@.... will be put in INBOX.flag
eg. a mail sent to user+kobo@... will be saved in INBOX.kobo
but, no matter wich format i use for the imap_folder (INBOX.kobo; INBOX\kobo; INBOX/kobo; .INBOX.kobo.; etc.) - Kobomail ony checks INBOX as folder (according to the logfile Kobomail provides)

any idea would be apreciated!
thx

Last edited by DaRon; 07-14-2025 at 04:59 AM.
DaRon is offline   Reply With Quote
Old 07-14-2025, 05:57 PM   #11
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,514
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I've not tried this on the Kobo but I've been experimenting with an imap client under linux.

The trick seems to be that the Kobo inbox folder is actually referred to as [Mailbox]/Kobo
PeterT is offline   Reply With Quote
Old 07-15-2025, 03:19 AM   #12
DaRon
Enthusiast
DaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheeseDaRon can extract oil from cheese
 
DaRon's Avatar
 
Posts: 41
Karma: 1158
Join Date: Nov 2014
Location: Austria
Device: Libra Colour, Mini, Aura One, Pyrus mini
thanks but i dont get it.
when i configure my mailserver, that the "+" mails are in INBOX only and specify
Code:
imap_folder = "INBOX"
everything works just fine. There is no "/Kobo" involved anywhere...
So, i dont know, what you mean by saying:
Quote:
The trick seems to be that the Kobo inbox folder is actually referred to as [Mailbox]/Kobo
Thing is: my whole setup is based on that the "+" mails are delivered in a subfolder of INBOX - and I am not able to figure out, how I specify a subfolder of INBOX in imap_folder = "<howtospecifyasubfolder>"
DaRon is offline   Reply With Quote
Old 07-15-2025, 06:12 AM   #13
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,514
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Sprry; I'd thought you were using gMail as your mail provider.
PeterT is offline   Reply With Quote
Reply

Tags
email, golang, kobo, kobomail, send2kobo


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Metadata not updating to Kindle when trying to send ebooks through email sweetypie Library Management 3 07-28-2020 10:36 PM
Adding a shortcut to [Send via email to my Kindle email address]? jteodoro Calibre 7 04-30-2020 10:55 AM
Unable to send via email, manually or send to device Colc Calibre 3 11-16-2019 01:44 AM
Help needed: Send ebooks via email rfog Onyx Boox 3 08-17-2012 03:27 AM
Only send news to some devices or ignore some devices? barium Devices 3 07-23-2011 10:01 PM


All times are GMT -4. The time now is 08:17 PM.


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