From f3c2d0acf6a78cfea24f325683b6532e15c8b0fb Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 3 Aug 2024 15:13:50 +0300 Subject: [PATCH] Update help --- README.md | 4 ++-- mastodon_email_bridge/mastodon_email_bridge.py | 9 +++++++-- pyproject.toml | 2 +- setup.cfg | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fa2c4a1..aefb682 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ Customize the templates (if you know HTML, CSS and Jinja2) and run the command. Mastodon token with read access. -w, --wait INTEGER Seconds to wait between requests to avoid rate limits. - -r, --recipient TEXT Recipient email to get the posts. + -r, --recipient TEXT Recipient email to get the posts. This can be a Jinja2 template. [required] - -S, --sender TEXT Sender email thant send the posts. + -S, --sender TEXT Sender email thant send the posts. This can be a Jinja2 template. -f, --sent-items-file TEXT File to store the IDs of post already sent by email. -m, --mail-server TEXT SMTP Mail server to send emails. diff --git a/mastodon_email_bridge/mastodon_email_bridge.py b/mastodon_email_bridge/mastodon_email_bridge.py index 105013b..83f73cf 100755 --- a/mastodon_email_bridge/mastodon_email_bridge.py +++ b/mastodon_email_bridge/mastodon_email_bridge.py @@ -283,12 +283,17 @@ class MastodonEmailBridge: @click.option('--limit', '-L', default=0, help='Mastodon token with read access.') @click.option('--limit-per-request', '-R', default=40, help='Mastodon token with read access.') @click.option('--wait', '-w', default=60, help='Seconds to wait between requests to avoid rate limits.') -@click.option('--recipient', '-r', required=True, help='Recipient email to get the posts.') +@click.option( + '--recipient', + '-r', + required=True, + help='Recipient email to get the posts. This can be a Jinja2 template.' +) @click.option( '--sender', '-S', default='mastodon_email_bridge@example.org', - help='Sender email thant send the posts.' + help='Sender email thant send the posts. This can be a Jinja2 template.' ) @click.option( '--sent-items-file', diff --git a/pyproject.toml b/pyproject.toml index 7a29138..2968958 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ Homepage = "https://codeberg.org/adelgado/mastodon_email_bridge" [project] name = "mastodon_email_bridge" -version = "0.0.5" +version = "0.0.6" description = "Redirect your Mastodon Home timeline to your email" readme = "README.md" authors = [{ name = "Antonio J. Delgado", email = "ad@susurrando.com" }] diff --git a/setup.cfg b/setup.cfg index 87c887a..863dee9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = mastodon_email_bridge -version = 0.0.5 +version = 0.0.6 [options] packages = mastodon_email_bridge