I've made a change to one line of news.bat:
calibredb add %fname%.mobi --duplicates >%fname%-add-log.txt
(adding --duplicates)
as without this change my Calibre library is not updated when a new file is generated, as shown in the log fragment here:
Code:
reply: retcode (221); Msg: 2.3.0 Bye received. Goodbye.
Adding ITimes.mobi to Calibre library ...
The following books were not added as they already exist in the database (see --duplicates option):
The Irish Times (2) *:
C:\Users\Peter\Calibre-Kindle\Recipes\Temp\ITimes.oeb\ITimes.mobi
Recipe processing complete
A further hint which might be useful for users in case of e-mail problems: my first attempt to have the generated file e-mailed failed because I had supplied my "user friendly alias" e-mail address in news-set-vars.bat, but authentication with my mail server through an ISP failed as this should have been the less friendly account name. My second attempt also failed - I had forgotten that the "Approved Personal Document E-mail List" for my Kindle account at Amazon only contained the "user friendly" version, so I needed to add the version using the less friendly account name. Obvious of course in hindsight, but it took me a couple of minutes to realise what the problem was.