Skip to content

Conversation

fluoriteByte
Copy link

gmail has a 500 correspondants limit per day, after which it stops sending messages to people, this should be alerted to users before they try to use their gmail account with DC, while there is a link to an article about the rate limits, i think most users, don't click on it, so it should be more explicit and in the face of the users how much the limit it

idk why i made pr message this long lmao

gmail has a 500 correspondants limit per day, after which it stops sending
messages to people, this should be alerted to users before they try to
use their gmail account with DC
Copy link
Contributor

@missytake missytake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a good hint, maybe a bit long; not sure how it is displayed in the app. Let's wait for a second opinion.

@fluoriteByte
Copy link
Author

fluoriteByte commented May 21, 2025

don't think there's like another way to rewrite it to make it shorter, since just saying there's a ratelimit might make users think that the ratelimit works differently, or that its less severe than it really is

delete_to_trash: true
before_login_hint: |
For Gmail accounts, you need to have "2-Step Verification" enabled and create an app-password.
For Gmail accounts, you need to have "2-Step Verification" enabled and create an app-password. Gmail also has a 500 correspondents limit per day (if you have a group chat with 100 users, sending 5 message is enough to reach the limit.)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See https://support.google.com/mail/answer/22839?hl=en#zippy=%2Cyou-have-reached-a-limit-for-sending-mail:

You may see this message if you send an email to a total of more than 500 recipients in a single email and or more than 500 emails sent in a day.

So, in fact there are two separate limits with the same value of 500. Gmail doesn't multiply number of messages by number of recipients. I use Gmail and can confirm this, i definitely have sent more than 100 messages in a day in groups of more than 10 participants.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, that means it is less severe.

As Delta Chat splits up the mail into several smaller ones, you will never send to 500 recipients in a single email, so it can be shortened tremendously, as its only about 500 messages per day.

That might limit some people, as webxdc updates & read receipts are also single mails.

Copy link
Contributor

@missytake missytake Sep 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For Gmail accounts, you need to have "2-Step Verification" enabled and create an app-password. Gmail also has a 500 correspondents limit per day (if you have a group chat with 100 users, sending 5 message is enough to reach the limit.)
For Gmail accounts, you need to have "2-Step Verification" enabled and create an app-password. Gmail limits how many messages you can send per day.

This should be enough to discourage users, but give them a clear hint on how to improve their situation if they use Gmail anyway (disabling read receipts).

Copy link
Contributor

@iequidoo iequidoo Sep 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may see this message if you send an email to a total of more than 500 recipients in a single email and or more than 500 emails sent in a day.

Btw, this may also be interpreted like Gmail sums unique recipients from all daily emails. But i can't say much here, i've never messaged > 500 recipients in a day.

As for read receipts, i'm not sure. Never had problems because of them. Gmail says that these limits exist "To help prevent spam and keep accounts safe", so i guess read receipts are irrelevant.

EDIT: But as we encrypt read receipts, they may cause hitting these limits. This needs an investigation.
EDIT: Anyway, providing a link (https://support.google.com/mail/answer/22839?hl=en#zippy=%2Cyou-have-reached-a-limit-for-sending-mail) should help users understand the limits. At least this way we aren't responsible for any incorrect interpretation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked that > 500 MDNs to the same contact isn't a problem. Probably to any number of contacts <= 500. Indeed it seems that Gmail counts unique recipients per day.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link is already in the long description. Generally, tracking rate limits of all those different providers is out of scope of this project though, as they are too hard to check.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright, cool :3
we shouldn't really overload the user with lots of numbers n info so i am going to implement the suggestion by missytake (when ever i get home lol)
also, i guesstimated the 5 to 100 limit based on the experience of a user in the DC community chat

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.

3 participants