[musicbrainz-android] 14dependabot[bot] opened pull request #238 (03dev…dependabot/github_actions/dev/yutailang0119/action-android-lint-4): Bump yutailang0119/action-android-lint from 3 to 4 https://github.com/metabrainz/musicbrainz-andro...
pite_ joined the channel
pite has quit
[musicbrainz-android] 14dependabot[bot] opened pull request #239 (03dev…dependabot/gradle/dev/com.google.devtools.ksp-2.0.0-1.0.24): Bump com.google.devtools.ksp from 2.0.0-1.0.23 to 2.0.0-1.0.24 https://github.com/metabrainz/musicbrainz-andro...
[musicbrainz-android] 14dependabot[bot] opened pull request #240 (03dev…dependabot/gradle/dev/androidx.paging-paging-runtime-ktx-3.3.1): Bump androidx.paging:paging-runtime-ktx from 3.3.0 to 3.3.1 https://github.com/metabrainz/musicbrainz-andro...
[musicbrainz-android] 14dependabot[bot] opened pull request #242 (03dev…dependabot/gradle/dev/io.coil-kt-coil-compose-2.7.0): Bump io.coil-kt:coil-compose from 2.6.0 to 2.7.0 https://github.com/metabrainz/musicbrainz-andro...
[musicbrainz-android] 14akshaaatt merged pull request #238 (03dev…dependabot/github_actions/dev/yutailang0119/action-android-lint-4): Bump yutailang0119/action-android-lint from 3 to 4 https://github.com/metabrainz/musicbrainz-andro...
[musicbrainz-android] 14akshaaatt merged pull request #239 (03dev…dependabot/gradle/dev/com.google.devtools.ksp-2.0.0-1.0.24): Bump com.google.devtools.ksp from 2.0.0-1.0.23 to 2.0.0-1.0.24 https://github.com/metabrainz/musicbrainz-andro...
[musicbrainz-android] 14akshaaatt merged pull request #240 (03dev…dependabot/gradle/dev/androidx.paging-paging-runtime-ktx-3.3.1): Bump androidx.paging:paging-runtime-ktx from 3.3.0 to 3.3.1 https://github.com/metabrainz/musicbrainz-andro...
[musicbrainz-android] 14akshaaatt merged pull request #242 (03dev…dependabot/gradle/dev/io.coil-kt-coil-compose-2.7.0): Bump io.coil-kt:coil-compose from 2.6.0 to 2.7.0 https://github.com/metabrainz/musicbrainz-andro...
<akshaaatt[m]> "https://mubr.app/ mayhem..." <- Related to an idea I had where I'd put the "listening now" from my LB account on my website
I've seen a couple of people do something similar with lastfm as well
bitmap[m]
Jade: hey! I was just reviewing your recent commits. I see you've made a lot of improvements to the Dockerfile and build -- do you think it's ready enough that I can spin up a test version somewhere?
Jade[m]
Yep!
It should be as simple as docker pull metabrainz/mb-mail-service:latest and docker run metabrainz/mb-mail-service
bitmap[m]
awesome, remind me, all configuration is still performed through environment variables?
Jade[m]
Yep
Jade[m] sent a yaml code block: https://matrix.chatbrainz.org/_matrix/media/v3/download/chatbrainz.org/LmlbnChksCFsGnMjtOQxvyeW
Should be a functional docker compose definition
bitmap[m]
ok, it looks like there aren't really any config options that need to change dynamically, so that should be fine
I'll work on setting that up on one of our machines today and try sending out a mail
did you have any luck making progress with the MBS integration?
Specifically, I'm looking at the edit note design, as that's the closest
There's also the 'send to self' option
bitmap[m]
right, I think it will be very similar to the edit note one, except the subject will have to be configurable
Jade[m]
I can do the subject as an interpolation, which is what's already happening for edit notes
I'm thinking that it's probably a good idea to not let users send emails with entirely arbitrary subjects from a metabrainz
* a metabrainz address
bitmap[m]
yeah, maybe. though we don't restrict the body in any case, and I don't think we've had any real issues with this form in the past (which is actually kinda surprising)
Jade[m]
Hah yeah, I would've thought it'd be a prime target for spam!
bitmap[m]
yeah, I guess they just have far more efficient ways of sending out messages to harvested emails from botnets and such already, maybe it's too primitive for them :P
(slightly different since that's not posting JSON)
Jade[m] sent a perl code block: https://matrix.chatbrainz.org/_matrix/media/v3/download/chatbrainz.org/NQnarvVIWbPotVJFBjkmniZa
Jade[m]
Right, that should be functional
Now to figure out how to test it
And push the template in mb-mail-service 😅
bitmap[m]
don't forget a semi-colon at the end of the $header_params (Perl will actually choke there)
if you enable DB_STAGING_TESTING_FEATURES in lib/DBDefs.pm, you'll enable an "Edit user" tab from any user profile, and you can set an email for them (tick "Skip verification")
So I got the normal SMTP sending to work on my local instance
However I'm having trouble getting the LWP instance
`$self->lwp->request` results in "Can't locate object method "lwp" via ..."
`$self->model('MB')->context->lwp->request` results in "can't locate object "model" ..."
What am I missing here?
bitmap[m]
have you tried `$self->c->lwp->request`?
there is a has 'c' in Email.pm
Jade[m]
Sorry about the delay, I got snagged for an imprompu website consultation lol
Jade[m] uploaded a video: (650KiB) < https://matrix.chatbrainz.org/_matrix/media/v3/download/matrix.org/FPUcFutNHJztummjMVNIcTvR/Screencast%20from%202024-08-01%2019-41-52.mp4 >
<bitmap[m]> "have you tried `$self->c->lwp->..." <- Thisn works, thank you!
s/Thisn/This/
It's working! 🎉
Is there a ticket for this already, or should I make one?
bitmap[m]
Jade[m]: I don't think there is, can you? thanks!
Jade[m]
Will do :)
aerozol[m]
Jade: is that the 'contact user' button/form? Let me know if you need design changes, but I think it should fit into one of those templates. Since it's from another user you might like to use the speech bubble box again 😎
Jade[m]
aerozol[m]: Yep!
<Jade[m]> "Screencast from 2024-08-01 19-41..." <- This is it, if you can load the video