Update help
This commit is contained in:
parent
9e734706f7
commit
f3c2d0acf6
4 changed files with 11 additions and 6 deletions
|
@ -37,9 +37,9 @@ Customize the templates (if you know HTML, CSS and Jinja2) and run the command.
|
||||||
Mastodon token with read access.
|
Mastodon token with read access.
|
||||||
-w, --wait INTEGER Seconds to wait between requests to avoid
|
-w, --wait INTEGER Seconds to wait between requests to avoid
|
||||||
rate limits.
|
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]
|
[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
|
-f, --sent-items-file TEXT File to store the IDs of post already sent
|
||||||
by email.
|
by email.
|
||||||
-m, --mail-server TEXT SMTP Mail server to send emails.
|
-m, --mail-server TEXT SMTP Mail server to send emails.
|
||||||
|
|
|
@ -283,12 +283,17 @@ class MastodonEmailBridge:
|
||||||
@click.option('--limit', '-L', default=0, help='Mastodon token with read access.')
|
@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('--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('--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(
|
@click.option(
|
||||||
'--sender',
|
'--sender',
|
||||||
'-S',
|
'-S',
|
||||||
default='mastodon_email_bridge@example.org',
|
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(
|
@click.option(
|
||||||
'--sent-items-file',
|
'--sent-items-file',
|
||||||
|
|
|
@ -7,7 +7,7 @@ Homepage = "https://codeberg.org/adelgado/mastodon_email_bridge"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "mastodon_email_bridge"
|
name = "mastodon_email_bridge"
|
||||||
version = "0.0.5"
|
version = "0.0.6"
|
||||||
description = "Redirect your Mastodon Home timeline to your email"
|
description = "Redirect your Mastodon Home timeline to your email"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "Antonio J. Delgado", email = "ad@susurrando.com" }]
|
authors = [{ name = "Antonio J. Delgado", email = "ad@susurrando.com" }]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = mastodon_email_bridge
|
name = mastodon_email_bridge
|
||||||
version = 0.0.5
|
version = 0.0.6
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
packages = mastodon_email_bridge
|
packages = mastodon_email_bridge
|
||||||
|
|
Loading…
Reference in a new issue