View Single Post
Old 03-29-2020, 08:50 PM   #6
nik_0_0
Junior Member
nik_0_0 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2020
Device: Kindle
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.
Attached Files
File Type: txt hack_in_auto_email.txt (2.0 KB, 432 views)
nik_0_0 is offline   Reply With Quote