Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticate mails sent by MaMpf #590

Merged
merged 8 commits into from
Mar 19, 2024
Merged

Authenticate mails sent by MaMpf #590

merged 8 commits into from
Mar 19, 2024

Conversation

Splines
Copy link
Member

@Splines Splines commented Feb 12, 2024

Mails have been sent unauthenticated internally via the Mathi mail server. This PR introduces user/password authentication.

The change I had to introduce in f40080e is unfortunate but necessary due to #542. Hopefully, we can fix this in the near future. Fixed in 4d066c3 (merge commit), now we don't have , nil anymore. See also issue #542.

TODO

  • Respective env variables have to be added to the server env files.

Splines and others added 6 commits January 11, 2024 19:05
* Reapply first fix for Reader/Media

See discussion on #574 for further details.
Previous PR for this was #576, closed in favor of this one
as this directly branches off the new "dev" branch.

* Correctly show latest post (might be current_user's comment)

* Fix update of unread comments logic in comments controller

* Fix update icon logic and latest post comment

* Simplify latest comment logic

* Improve code comments

* Further improve comments

* Fix wording in comment

* Fix construction of media array & use `.blank?` instead of `.empty?`
* Add dummy migration

* Implement migration for unread comment flag

* Remove unnecessary comment

* Declare migration as not idempotent

* Use array.length instead of counting

* Throw error to prevent revert of migration

* Fix severe flaws in unread comments migration

* Simplify Reader retrieval

* Use the more explicit `.nil?` method

* Update migration date

* Fix annoying bug: don't use `.select!` but `.select`

* Polish migration

e.g. update comment, more suitable name for the method etc.

* Rename method according to #585
@Splines Splines self-assigned this Feb 12, 2024
@Splines Splines marked this pull request as ready for review February 13, 2024 11:25
@Splines Splines marked this pull request as draft February 13, 2024 12:33
@Splines
Copy link
Member Author

Splines commented Feb 13, 2024

Converted back to draft as I'd like to have #542 fixed first as we may silently introduce errors otherwise (and potentially break the mailing delivery in this case).

@Splines Splines marked this pull request as ready for review March 19, 2024 10:55
@Splines
Copy link
Member Author

Splines commented Mar 19, 2024

Will merge without review as Denis is on vacation.

@Splines Splines merged commit 469bb11 into dev Mar 19, 2024
5 checks passed
@Splines Splines deleted the feature/mails-auth branch March 19, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant