Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Send to Kindle" #6186

Closed
tobiasdiez opened this issue Mar 27, 2020 · 10 comments · Fixed by #9995
Closed

Add "Send to Kindle" #6186

tobiasdiez opened this issue Mar 27, 2020 · 10 comments · Fixed by #9995
Assignees

Comments

@tobiasdiez
Copy link
Member

tobiasdiez commented Mar 27, 2020

It would be nice if one could simply right-click a linked file and send it to one's kindle.

Stragegy:


Outdated information

(The procedure for calibre is outlined here: https://www.howtogeek.com/539829/how-to-transfer-any-ebook-to-kindle-using-calibre/)

Strategy:

  • Convert files to supported format (e.g. epub to mobi) (epub is supported now)
  • Send email to amazon kindle with attachment

This needs a bit of preparation on the user's side:

  • Need to download and install KindleGen (amazon's license doesn't allow distribution)
  • Add their kindle e-mail in JabRef's preferences. Moreover, we need a way to send an email. @koppor would it be easy to run a smtp for this? If not the user also needs to specify the smtp data of their email.
  • Update Send an Email using JabRef's feature
@koppor
Copy link
Member

koppor commented Mar 28, 2020

To prevent that our SMPT server is mis-used for spam, I think of following steps:

  1. Setup "JabCloud" ("CloudRef"?) offering this service
  2. Force users to create an account there to have this functionality
  3. Enable accounts in JabRef

Then JabRef connects to JabCloud and allows then conversion to Kindle.

@Siedlerchr
Copy link
Member

I am against running an open smtp server. This is dangerous and invites spamming.
I would simply enable the configuration of an smtp account in the setting where a user can enter his own email details

@tobiasdiez
Copy link
Member Author

The smtp server can be secured by a passwort that will be integrated into JabRef via a Github secret. I think from a user's perspective this is the easiest solution although the other approaches (cloudref account, own smtp server) work too.

@LuVogel
Copy link

LuVogel commented Nov 11, 2020

We got a question about converting files using Calibre. Since Calibre is written in python, we're looking for a possibility to use these python-functions in our java project. Is there any option? The user have to install Calibre and set the directory path in the jabref preferences, so JabRef can use Calibre to convert the files.

@Siedlerchr
Copy link
Member

@LuVogel Calibre seems to have a command line interface. This can be called from JabRef. https://manual.calibre-ebook.com/generated/en/cli-index.html So your approach would work

See for example in the PushToExternalAplpication how JabRef can call other tools on the command line or in the JabRefDesktop implementations

koppor pushed a commit that referenced this issue Sep 15, 2022
201e022 Update trends-journals.csl (#6224)
46e6eed Update nottingham-trent-university-library-harvard.csl (#6220)
684bb48 Update politix.csl (#6199)
c484b0b Update mcgill-fr.csl (#6198)
cbcf2f2 Update mary-ann-liebert-vancouver.csl (#6218)
47174f0 Create journal-of-dairy-research.csl (#6195)
fdd1eac Update harvard-anglia-ruskin-university.csl (#6196)
9e384d6 Create estonian-journal-of-earth-sciences.csl (#6194)
afba9b7 Delete moore-theological-college.csl as per university (#6197)
644549f Create acta-medica-philippina.csl (#6192)
6566114 Update rassegna-degli-archivi-di-stato.csl (#6186)
3509a2f Update universidade-federal-de-sergipe-departamento-de-engenharia-de-… (#6187)
de4845f Update mary-ann-liebert-vancouver.csl (#6213)
16828b6 Update ucl-university-college-apa.csl (#6172)
c08613b Update ucl-university-college-harvard.csl (#6173)
028bad4 Create sociologia-ruralis.csl (#6170)
77d428c Update journal-of-plankton-research.csl (#6169)
92e1022 Update and rename dependent/journal-of-the-national-cancer-institute.… (#6168)
120efb1 Update journal of hearing science
e503477 Create new-harts-rules-the-oxford-style-guide-author-date.csl (#6163)
49ab318 Create the-depositional-record.csl (#6159)
f4f6920 Update and rename laser-and-photonics-reviews.csl to dependent/laser-… (#6165)
d8ca4bc Update united-states-international-trade-commission.csl (#6162)

git-subtree-dir: buildres/csl/csl-styles
git-subtree-split: 201e022
@muzhenying
Copy link

Hi this sounds like an interesting feature and we would like to try to implement it if it is still undergoing development.

@JabRef JabRef deleted a comment from github-actions bot Oct 13, 2022
@ThiloteE
Copy link
Member

Sure, have a go at it. Kindle is a proprietary (closed source?) application, but widely used so it would be nice to have support for it. If you ever get stuck during implementation, you could fallback to provide support for open source alternatives like Calibre, LibreraReader or DocumentViewer instead. Alternatives can be found here: https://alternativeto.net/software/kindle/?license=opensource

As a general advice for newcomers: check out https://github.com/JabRef/jabref/blob/main/CONTRIBUTING.md for a start. Also, https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace is worth having a look at. Feel free to ask if you have any questions here on GitHub or also at JabRef's Gitter chat.

Try to open a (draft) pull request early on, so that people can see you are working on the issue and so that they can see the direction the pull request is heading towards (but tests are better to be done on your local environment). This way, you will likely receive valuable feedback.

@tobiasdiez
Copy link
Member Author

Note that in the meantime amazon improved their "send to kindle by mail" feature and now also accepts epub files there. So the first step "converting to mobi" is no longer necessary, and it really only amounts to sending an email to the correct kindle email. For this, we can also skip the whole smtp business and use the strategy of https://github.com/JabRef/jabref/blob/35cd5d03e106c102b9d2aad3dbd54038ddc2728a/src/main/java/org/jabref/gui/SendAsEMailAction.java to create new email for the user (which then still has to send it, but that should be pretty trivial).

@aqurilla
Copy link
Contributor

aqurilla commented Jun 7, 2023

Hi, I would like to take up this issue

@tobiasdiez
Copy link
Member Author

Thanks @aqurilla. Nice to see this feature finally landed in Jabref.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

7 participants