View Single Post
Old 03-06-2021, 04:33 AM   #10
TalesFromEarth
Junior Member
TalesFromEarth began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2021
Device: Kindle
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.
Thanks Nik. Worked perfectly.
TalesFromEarth is offline   Reply With Quote