From 876cea96736922832207e559a2a2e9721ee51a0a Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 28 Nov 2024 10:14:42 +0100 Subject: [PATCH] new: [bluesky] add ``email-from`` option to set email field for confirmation --- bluesky/README.org | 11 ++++++++++- bluesky/lib/common | 5 +++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/bluesky/README.org b/bluesky/README.org index 1f4feeb..4510765 100644 --- a/bluesky/README.org +++ b/bluesky/README.org @@ -30,7 +30,6 @@ provide settings for an external SMTP service: #+begin_src yaml bluesky: - charm: bluesky ## line is optional if your service name is "bluesky" # ... myemail: @@ -43,6 +42,16 @@ myemail: password: mypassword #+end_src +Your SMTP might require a sensible email-from field, so to set it: + +#+begin_src yaml +bluesky: + # ... + options: + email-from: no-reply@mydomain.com +#+end_src + + ** request a new invite To be able to add account, you need to create new invites from your diff --git a/bluesky/lib/common b/bluesky/lib/common index cc2c2ea..e4b622f 100644 --- a/bluesky/lib/common +++ b/bluesky/lib/common @@ -64,4 +64,9 @@ PDS_CRAWLERS=https://bsky.network LOG_ENABLED=true EOF + if email_from=$(options-get "email-from" 2>/dev/null) && [ -n "$email_from" ]; then + echo "PDS_EMAIL_FROM_ADDRESS=${email_from}" >> "$PDS_ENV_FILE" + fi + + }