5 Mastomail is a Python script that fetches replies from your Mastodon
6 account and emails them to you. Each email includes the reply, the
7 time it was posted, a URL to view the reply on Mastodon, and the toot
13 Mastodon.py (A Python wrapper for the Mastodon API)
14 Access to an SMTP server for sending emails
18 1. Clone the Repository:
20 git clone https://jxself.org/git/?p=mastomail.git
23 2. Install Mastodon.py
27 First Run Configuration for Mastodon Credentials:
28 Uncomment the register_app() and authenticate_user() functions
29 on your first run, then comment them out for subsequent runs.
30 This will register a new application on your Mastodon instance
31 to otain your Mastodon access tokens.
34 Configure the sender and receiver email addresses.
35 Set up SMTP server details.
39 First Run Configuration:
40 Uncomment the register_app() and authenticate_user() functions
41 on your first run, then comment them out for subsequent runs.
42 This will register a new application on your Mastodon instance
43 to otain your Mastodon access tokens.
46 Run the script using Python:
51 Optionally, you can schedule the script to run at regular
52 intervals using cron jobs.
56 Fetches new replies from your Mastodon account.
57 Emails the replies with detailed information.
58 Preserves URL links in the email content.
59 Avoids sending duplicate emails for already fetched replies.
63 Ensure your Mastodon access token and email passwords are
65 Do not share your tokens and passwords in the script when
66 distributing or version controlling.
70 Contributions, bug reports, and feature requests are welcome.
74 Mastomail is free software: you can redistribute it and/or modify it
75 under the terms of the GNU General Public License as published by the
76 Free Software Foundation, either version 3 of the License, or (at your
77 option) any later version.
81 Jason Self - j@jxself.org
85 <https://jxself.org/git/mastomail.git>
88 This file is Copyright (C) 2024 Jason Self <j@jxself.org>.
90 You can redistribute and/or modify this file under the terms of the
91 GNU General Public License as published by the Free Software
92 Foundation, either version 3 of the License, or (at your option) any
95 This file is distributed in the hope that it will be useful, but
96 WITHOUT ANY WARRANTY; without even the implied warranty of
97 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
98 General Public License for more details.
100 You should have received a copy of the GNU General Public License
101 along with this file. If not, see <https://www.gnu.org/licenses/>.