Skip to content

This Python script automates searching for .epub files in a directory and its subdirectories, emailing them to a specified recipient, and ensuring each file is sent only once using a log file. It introduces a 1-minute delay between emails to avoid server overload. Set email credentials as environment variables before running.

Notifications You must be signed in to change notification settings

KennethDenson/send-epubs-to-kindle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Send EPUBs to Kindle

This Python script automates the process of searching for .epub files in a specified directory and its subdirectories, then emailing them to a designated Kindle email address. The script ensures that each file is only sent once and introduces a delay between emails to avoid overwhelming the email server.

Features

  • Recursive Search: Searches through a specified directory and all its subdirectories for .epub files.
  • Email Sending: Sends each .epub file as an email attachment.
  • Avoid Duplicate Sends: Keeps track of sent files using a log file to prevent resending.
  • Rate Limiting: Introduces a delay (1 minute) between sending each email to avoid server overload.

Requirements

  • Python 3.x

You'll download the send-epubs-to-kindle.py (or copy and paste into a new python file) on your linux machine. Edit the areas of the script that are marked. I recomend setting environment variables for the sending email address and it's password by doing the following:

export EMAIL_LOGIN='[email protected]'
export EMAIL_PASSWORD='your_password'

About

This Python script automates searching for .epub files in a directory and its subdirectories, emailing them to a specified recipient, and ensuring each file is sent only once using a log file. It introduces a 1-minute delay between emails to avoid server overload. Set email credentials as environment variables before running.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages