View Single Post
Old 05-11-2020, 03:26 PM   #7
jt3
Junior Member
jt3 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2020
Device: Kindle Paperwhite
Quote:
Originally Posted by nik_0_0 View Post
Bumping this - this is exactly the feature I was curious about. The "send to email" function works perfectly and the "automatically watch folder" works perfectly, and the "automatically convert to mobi" works perfectly too.

If there could be a connection between step 2 (auto convert to mobi) and step 3 (send to email) - as ConsumatePro mentions, the entire process from ingestion to device would be completely hands off. It would be beautiful!

The default 5 minute timeout on emails would hopefully protect against any large import. (It would generate a large, slowly draining queue, which would be awesome!)

Personally I only do small imports of one or two documents at a time, but having it be completely hands off would be so great.

Completely understand your reasoning Kovid.

--

This was fairly easy to hack into Calibre. What a beautifully designed application. And great getting started documentation.

I subverted convert.py::auto_convert_auto_add which is called for all auto_add files, and forced it to call book_auto_converted_mail instead of book_converted.

I had to grab email_config(), and currently have it hardcoded to expect there to be a default email setup.

Will try and clean it up a little so it doesn't barf if there is no default email, and gracefully falls back. Attaching patch file in case anyone is interested.
Nik, do you mind giving me a run through of how you implemented the patch? I'm new to the software but would really love to be able to implement this.
jt3 is offline   Reply With Quote