Zulip Chat Archive

Stream: Zulip meta

Topic: please send me a DM via zulip-send


Johan Commelin (Oct 25 2024 at 09:23):

$ zulip-send johan@commelin.net -m "This is a test. This message was brought to you by zulip-send."
ERROR:zulip-send:Invalid email 'johan@commelin.net'

Johan Commelin (Oct 25 2024 at 09:24):

My hypothesis is that my account isn't really linked to an email address, because I'm using Github SSO to login to zulip...

Julian Berman (Oct 25 2024 at 13:03):

  uv tool run --from zulip zulip-send johan@commelin.net --config-file ~/Desktop/zuliprc -m "This is a test. This message was brought to you by zulip-send."                                                                                                                                    julian@Mini
ERROR:zulip-send:Invalid email 'johan@commelin.net'

Julian Berman (Oct 25 2024 at 13:04):

But something is different about you and me (hah, many things) -- but I use GitHub SSO to sign in as well, and putting my email address works fine there (just got the DM to myself).

Johan Commelin (Oct 25 2024 at 13:04):

Mysterious!

Julian Berman (Oct 25 2024 at 13:05):

If you click on Profile Picture > Settings > Account & privacy, is your email listed in the top button?

Julian Berman (Oct 25 2024 at 13:06):

I think no, because even clicking on the three dots shows a difference between you, me and say Adam -- my and Adam's emails are listed, yours isn't

Johan Commelin (Oct 25 2024 at 13:06):

Weird, I see johan@commelin.net there

Julian Berman (Oct 25 2024 at 13:06):

This is what I see:

Screenshot 2024-10-25 at 09.06.17.png
Screenshot 2024-10-25 at 09.06.26.png
Screenshot 2024-10-25 at 09.06.33.png

Julian Berman (Oct 25 2024 at 13:07):

Are you sure you exist?

Johan Commelin (Oct 25 2024 at 13:07):

Can you see it now?

Julian Berman (Oct 25 2024 at 13:07):

Yes!

Johan Commelin (Oct 25 2024 at 13:07):

zulip-send still cannot, on my end

Julian Berman (Oct 25 2024 at 13:07):

Mine neither.

Julian Berman (Oct 25 2024 at 13:07):

Maybe a cache issue.

Johan Commelin (Oct 25 2024 at 13:07):

I made my email address visible to members... (it was only admins + mods, before)

Johan Commelin (Oct 25 2024 at 13:08):

Now it works!

Johan Commelin (Oct 25 2024 at 13:08):

So even guests must be able to see my email address

Johan Commelin (Oct 25 2024 at 13:08):

That's a bit weird

Julian Berman (Oct 25 2024 at 13:09):

The weird part is that you couldn't send one to yourself previously right?

Johan Commelin (Oct 25 2024 at 13:09):

Exactly!

Julian Berman (Oct 25 2024 at 13:10):

I'd expect the permissions on zulip-send bots to match whatever their owners have by default yeah

Johan Commelin (Oct 25 2024 at 13:14):

@Alya Abbott Is this expected behaviour, or is this a bug?

Alya Abbott (Oct 25 2024 at 16:47):

I'd expect the permissions on zulip-send bots to match whatever their owners have by default yeah

Bots have permissions according to their role -- they don't have any special access to their owner's account. So a member bot would be able to see your email only if users with that role can do so.

Johan Commelin (Oct 25 2024 at 19:15):

Thanks, I hadn't thought of that!

Johan Commelin (Oct 28 2024 at 12:47):

@Alya Abbott However... Julian could send me DM's even though he couldn't see my email address. Is it also possible to send DM's with zulip-send using a bot in the scenario where the bot cannot see my email address (because I've hidden it from regular users)?

Johan Commelin (Oct 28 2024 at 12:48):

Or is this a difference between bots and regular users?

Julian Berman (Oct 28 2024 at 13:25):

The docs say to use your user ID hidden email address. But I tried it and it didn't work for me.

Julian Berman (Oct 28 2024 at 13:25):

(At the time yesterday or whenever)

Julian Berman (Oct 28 2024 at 13:26):

What I tried was... uv tool run --from zulip zulip-send user112680@leanprover.zulipchat.com --config-file ~/Desktop/zuliprc -m "This is a test. This message was brought to you by zulip-send." -vvv

Julian Berman (Oct 28 2024 at 13:27):

Let me find where I got that from though I'm sure Alya will know about it.

Julian Berman (Oct 28 2024 at 13:30):

Oh maybe it wasn't docs, it was https://github.com/zulip/python-zulip-api/issues/764#issuecomment-1226343514 I think, so maybe hosted zulip is configured differently, or something has changed since then.

Alya Abbott (Oct 29 2024 at 16:13):

That comment was from before email visitiblity was a personal configuration, it looks like. I don't know the details of this system, so it would be best to ask in https://chat.zulip.org/#narrow/channel/138-user-questions.

Johan Commelin (Jan 08 2025 at 08:59):

I have now posted a variant of this question at https://chat.zulip.org/#narrow/channel/127-integrations/topic/sending.20DMs.20using.20zulip-send/near/2032644

Johan Commelin (Jan 08 2025 at 08:59):

I need this functionality to automatically send people reminders / review requests.


Last updated: May 02 2025 at 03:31 UTC