Re: [Django] #31960: Document that Django email validator does not enforce valid emails

2020-08-28 Thread Django
#31960: Document that Django email validator does not enforce valid emails
---+--
 Reporter:  James Pic  |Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  Uncategorized  |  Version:  3.1
 Severity:  Normal |   Resolution:  wontfix
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--

Comment (by James Pic):

 Actually I think there is nothing we can do really, even SMTP VRFY is not
 going to be reliable because some providers block it "to foil spammers":
 https://docs.python.org/3/library/smtplib.html#smtplib.SMTP.verify

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.de0ccf48db8e8dcb524d55b4f3745730%40djangoproject.com.


Re: [Django] #31960: Document that Django email validator does not enforce valid emails

2020-08-28 Thread Django
#31960: Document that Django email validator does not enforce valid emails
---+--
 Reporter:  James Pic  |Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  Uncategorized  |  Version:  3.1
 Severity:  Normal |   Resolution:  wontfix
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by James Pic):

 * status:  new => closed
 * resolution:   => wontfix


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.1acfab0495fabb8632eba313bfc2d599%40djangoproject.com.


Re: [Django] #31960: Document that Django email validator does not enforce valid emails

2020-08-28 Thread Django
#31960: Document that Django email validator does not enforce valid emails
---+--
 Reporter:  James Pic  |Owner:  nobody
 Type:  Uncategorized  |   Status:  new
Component:  Uncategorized  |  Version:  3.1
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Description changed by James Pic:

Old description:

> Currently, Django makes it seem that using an EmailField / EmailValidator
> will protect projects from getting invalid emails in their database, for
> example: emails starting with a dot like ".f...@bar.com" will be invalid
> as expected.
>
> But in reality, users must not count on Django for that:
>
> - https://code.djangoproject.com/ticket/31959
> - https://code.djangoproject.com/ticket/25452
>
> This makes the following documentation statement inaccurate:
>
> > "EmailField: A CharField that checks that the value is a valid email
> address using EmailValidator."
>
> Source :
> https://docs.djangoproject.com/en/3.1/ref/models/fields/#emailfield
>
> It would be only fair to users to document that the EmailValidator will
> let invalid emails through, which will be the cause of SMTPError, and
> that people who don't want invalid emails in their EmailField must
> override and fix Django's default behaviour.

New description:

 Currently, Django makes it seem that using an EmailField / EmailValidator
 will protect projects from getting invalid emails in their database.

 But in reality, users must not count on Django for that:

 - https://code.djangoproject.com/ticket/31959
 - https://code.djangoproject.com/ticket/25452

 This makes the following documentation statement inaccurate:

 > "EmailField: A CharField that checks that the value is a valid email
 address using EmailValidator."

 Source :
 https://docs.djangoproject.com/en/3.1/ref/models/fields/#emailfield

 It would be only fair to users to document that the EmailValidator will
 let invalid emails through, which will be the cause of SMTPError, and that
 people who don't want invalid emails in their EmailField must override and
 fix Django's default behaviour.

 As to why EmailValidator would reject emails starting with a dot like
 ".f...@bar.com" but not emails starting with a hyphen "-f...@bar.com": this
 will remain a mystery.

--

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.8361839330dd11e91f1f0cace8790d49%40djangoproject.com.


Re: [Django] #31960: Document that Django email validator does not enforce valid emails

2020-08-28 Thread Django
#31960: Document that Django email validator does not enforce valid emails
---+--
 Reporter:  James Pic  |Owner:  nobody
 Type:  Uncategorized  |   Status:  new
Component:  Uncategorized  |  Version:  3.1
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Description changed by James Pic:

Old description:

> Currently, Django makes it seem that using an EmailField / EmailValidator
> will protect projects from getting invalid emails in their database, for
> example: emails starting with a dot like ".f...@bar.com" will be invalid
> as expected.
>
> But in reality, Django doesn't actually care :
> https://code.djangoproject.com/ticket/31959#ticket
>
> This makes the following documentation statement inaccurate:
>
> > "EmailField: A CharField that checks that the value is a valid email
> address using EmailValidator."
>
> Source :
> https://docs.djangoproject.com/en/3.1/ref/models/fields/#emailfield
>
> It would be only fair to users to document that the EmailValidator will
> let invalid emails through, which will be the cause of SMTPError, and
> that people who don't want invalid emails in their EmailField must
> override and fix Django's default behaviour.

New description:

 Currently, Django makes it seem that using an EmailField / EmailValidator
 will protect projects from getting invalid emails in their database, for
 example: emails starting with a dot like ".f...@bar.com" will be invalid as
 expected.

 But in reality, users must not count on Django for that:

 - https://code.djangoproject.com/ticket/31959
 - https://code.djangoproject.com/ticket/25452

 This makes the following documentation statement inaccurate:

 > "EmailField: A CharField that checks that the value is a valid email
 address using EmailValidator."

 Source :
 https://docs.djangoproject.com/en/3.1/ref/models/fields/#emailfield

 It would be only fair to users to document that the EmailValidator will
 let invalid emails through, which will be the cause of SMTPError, and that
 people who don't want invalid emails in their EmailField must override and
 fix Django's default behaviour.

--

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.e61435f3105145b0f792b5c072f64fc0%40djangoproject.com.


Re: [Django] #31960: Document that Django email validator does not enforce valid emails

2020-08-28 Thread Django
#31960: Document that Django email validator does not enforce valid emails
---+--
 Reporter:  James Pic  |Owner:  nobody
 Type:  Uncategorized  |   Status:  new
Component:  Uncategorized  |  Version:  3.1
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Description changed by James Pic:

Old description:

> Currently, Django makes it seem that using an EmailField / EmailValidator
> will protect projects from getting invalid emails in their database, for
> example: emails starting with a dot like ".f...@bar.com" will be invalid
> as expected.
>
> But in reality, Django doesn't actually care :
> https://code.djangoproject.com/ticket/31959#ticket
>
> It would be only fair to users to document that the EmailValidator will
> let invalid emails through, which will be the cause of SMTPError, and
> that people who don't want invalid emails in their EmailField must
> override and fix Django's default behaviour.

New description:

 Currently, Django makes it seem that using an EmailField / EmailValidator
 will protect projects from getting invalid emails in their database, for
 example: emails starting with a dot like ".f...@bar.com" will be invalid as
 expected.

 But in reality, Django doesn't actually care :
 https://code.djangoproject.com/ticket/31959#ticket

 This makes the following documentation statement inaccurate:

 > "EmailField: A CharField that checks that the value is a valid email
 address using EmailValidator."

 Source :
 https://docs.djangoproject.com/en/3.1/ref/models/fields/#emailfield

 It would be only fair to users to document that the EmailValidator will
 let invalid emails through, which will be the cause of SMTPError, and that
 people who don't want invalid emails in their EmailField must override and
 fix Django's default behaviour.

--

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.95469ce97181348292595c4c1751ddc1%40djangoproject.com.


[Django] #31960: Document that Django email validator does not enforce valid emails

2020-08-28 Thread Django
#31960: Document that Django email validator does not enforce valid emails
-+
   Reporter:  James Pic  |  Owner:  nobody
   Type:  Uncategorized  | Status:  new
  Component:  Uncategorized  |Version:  3.1
   Severity:  Normal |   Keywords:
   Triage Stage:  Unreviewed |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+
 Currently, Django makes it seem that using an EmailField / EmailValidator
 will protect projects from getting invalid emails in their database, for
 example: emails starting with a dot like ".f...@bar.com" will be invalid as
 expected.

 But in reality, Django doesn't actually care :
 https://code.djangoproject.com/ticket/31959#ticket

 It would be only fair to users to document that the EmailValidator will
 let invalid emails through, which will be the cause of SMTPError, and that
 people who don't want invalid emails in their EmailField must override and
 fix Django's default behaviour.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/047.2ca0c9363f778e6401504469eea92e86%40djangoproject.com.