Closed Bug 1215199 Opened 10 years ago Closed 10 years ago

Draft email to be sent when Akismet check fails

Categories

(developer.mozilla.org Graveyard :: Editing, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hoosteeno, Assigned: jwhitlock)

References

Details

(Keywords: in-triage)

The spec for Akismet integration requires an email to go out when... * Akismet fails to respond in a certain time or * Akismet responds with an error The email will go out to the spam watch list. What should be in the email? This bug will be resolved by the answer.
FWIW, the email I've wrote up looks like this: https://github.com/mozilla/kuma/pull/3482/files#diff-d251fd4742c12018ec5b4dbbad320cf8 Or when rendered it would look like this: * SPAM ATTEMPT * Title: Download this torrent now!!1! Slug: Web/HTML/HTML5 Detected at: 2015-10-15 08:12:12 Admin link: https://developer.mozilla.org/admin/wiki/documentspamattempt/123456 * USER * Name: jezdez ID: 123456 Joined at: 2011-01-01 10:00:01 Profile link: https://developer.mozilla.org/en-US/profiles/jezdez Admin link: https://developer.mozilla.org/admin/users/user/123456 * DOCUMENT * Title: HTML5 Slug: Web/HTML/HTML5 Language: en-US Last modified: 2015-10-15 08:12:11 Site link: https://developer.mozilla.org/en-US/Web/HTML/HTML5 Admin link: https://developer.mozilla.org/admin/wiki/document/123456 Does that suffice?
Severity: normal → enhancement
Keywords: in-triage
I'm not certain that that stuff is ordered optimally, but I think we should for the most part go with it for now and we can iterate later once we know what it feels like to use it. Rearranging the text in an email is relatively trivial. It would be nice, though, if you could add an indicator showing whether or not the spam is in a newly-created page or one that previously existed. Just adding "[NEW]" after the title even would do. Also, please include the time zone by the timestamps for people like me who can never remember where our server is. :)
Jannis what will be the title of the e-mail?
Flags: needinfo?(jezdez)
:teoli the subject will be "[MDN] Wiki spam attempt recorded"
Flags: needinfo?(jezdez)
This has been merged via bug 1188029, but I'm going to leave this ticket open in case we decide to improve upon the current email as mentioned in past comments.
Flags: needinfo?(eshepherd)
Eric's requests from comment 2 are: 1) Add the time zone to the dates 2) Indicate if the document was newly created or an update I'll implement those so we can close this bug and start fresh with new suggestions.
Assignee: eshepherd → jwhitlock
Status: NEW → ASSIGNED
Flags: needinfo?(eshepherd)
PR 3813 [1] converts all times to UTC and displays them with "+00:00" to indicate that it is UTC. If/when that is merged to master, the bug will be auto-updated. The existing email template indicates if the document is new, with a "[NEW]" tag by the title, and "The spam attempt doesn't have a document attached" in the "* DOCUMENT *" section. For attempted changes to existing documents, there is no "[NEW]" tag, and the "* DOCUMENT *" section includes details about the document. [1] https://github.com/mozilla/kuma/pull/3813
New spam template is in production. Closing as fixed. Email for new document looks like: * SPAM ATTEMPT * Title: User:jwhitlock:spam_test [NEW] Slug: User:jwhitlock:spam_test Detected at: 2016-03-14 17:56:53.112985+00:00 Admin link: https://developer.allizom.org/admin/wiki/documentspamattempt/10/ * USER * Name: viagra-test-123 ID: 297014 Joined at: 2016-03-14 17:54:46+00:00 Profile link: https://developer.allizom.org/en-US/profiles/viagra-test-123 Admin link: https://developer.allizom.org/admin/users/user/297014/ * DOCUMENT * The spam attempt doesn't have a document attached
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.