Closed
Bug 481386
Opened 16 years ago
Closed 15 years ago
Do not send emails from dev copies of AMO
Categories
(addons.mozilla.org Graveyard :: Code Quality, enhancement, P4)
Tracking
(Not tracked)
RESOLVED
FIXED
Future
People
(Reporter: wenzel, Assigned: clouserw)
Details
(Whiteboard: [qa-])
Attachments
(1 file)
533 bytes,
patch
|
wenzel
:
review-
|
Details | Diff | Splinter Review |
I just sent out an erroneous email to a former Mozilla intern while testing. When in development mode, I think AMO should not actually send out emails. Otherwise, testing with production data can way too easily spam users.
I'll attach a patch that should prevent this, yet allow to debug mail sending on a debug level >= 2.
Attachment #365412 -
Flags: review?(clouserw)
Assignee | ||
Updated•16 years ago
|
Attachment #365412 -
Flags: review?(clouserw) → review+
Assignee | ||
Comment 1•16 years ago
|
||
Comment on attachment 365412 [details] [diff] [review]
do not send emails in DEV mode
This seems like the kind of thing that will be forgotten and become frustrating for devs in the future when mail doesn't show up. I wish we had a good way of notifying the dev.
Reporter | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> (From update of attachment 365412 [details] [diff] [review])
> This seems like the kind of thing that will be forgotten and become frustrating
> for devs in the future when mail doesn't show up. I wish we had a good way of
> notifying the dev.
You have a point there. What we could do is add a constant called DEV_EMAIL and if it's set we send all emails there instead of to the original owners, and we mention the real recipients either in the first line of the email or as part of the subject (just thinking out loud)...
How does that sound?
Assignee | ||
Comment 3•16 years ago
|
||
Works for me. We could make it default to the email address for whoever is logged in.
Reporter | ||
Comment 4•16 years ago
|
||
Comment on attachment 365412 [details] [diff] [review]
do not send emails in DEV mode
Good idea, I will write something in that direction.
Attachment #365412 -
Flags: review+ → review-
Reporter | ||
Updated•16 years ago
|
Assignee: nobody → fwenzel
Assignee | ||
Updated•15 years ago
|
Assignee: fwenzel → nobody
Component: Administration → Code Quality
Priority: -- → P4
QA Contact: administration → code-quality
Target Milestone: --- → Future
Reporter | ||
Comment 5•15 years ago
|
||
clouserw just mentioned:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
as a fix for this in Zamboni. Woot.
Assignee: nobody → clouserw
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•