This particular email posted about 70 times, and contains information about the poster's personal schedule as well as contact information for another person.

Can we disable auto comments in comment by email?
This is actually an issue on 2 posts-- the 2nd post is here: https://publiclab.org/notes/eustatic/05-24-2019/balloon-map-of-south-bonfouca-cel-usfws-planting-with-pies-and-toes
Worth noting that the email posting to the comments has a pretty clear "do not share" note at the bottom.

Linking to previously opened issues at #3218 #4562 !
And just to update on the status here, the original fix at #3218 didn't work, or worked for only some autoreplies. I'm closing that in favor of this issue.
https://stackoverflow.com/questions/1027395/detecting-outlook-autoreply-out-of-office-emails
https://stackoverflow.com/questions/9426801/detect-auto-reply-emails-programmatically
geerlingguy/Imap#6
https://github.com/jpmckinney/multi_mail/wiki/Detecting-autoresponders
And copying in the probably helpful notes from one of them:
There's no set of checks for auto-responses that produce perfect behavior (detect all auto-replies with no false positives), but the following checks have worked well so far:
header "Auto-Submitted" with value other than "no" (see RFC 3834)
headers "X-Autoreply" or "X-Autorespond" with any value
header "Precedence" with value "auto_reply"
Apparently we can read the headers like: email.headers["Message-ID"] -- so for the above:
email.headers["Auto-Submitted"] != "no"email.headers["X-Autoreply"]email.headers["X-Autorespond"]email.headers["Precedence"] == "auto_reply"So we'd modify this line:
This is going to be difficult to test out. We can do it manually. But we should try to collect several full autoreply emails from different sources and put them in our fixtures: https://github.com/publiclab/plots2/tree/master/test/fixtures/incoming_test_emails
@bronwen9 if you can fwd me some that would be very helpful
Tests should be easy to write against real captured email samples. I added Comment.is_autoreply(mail) which we can use.
Here is our Outlook test; we could add one more for an Outlook-generated auto-reply:
Similarly with Google and Yahoo auto-replies: https://github.com/publiclab/plots2/tree/4a31189ea8cba15ebe166bfbd3ae2367e0d8cebf/test/integration/incoming_mail_parsing_test
OK, so our next steps would be:
test/fixtures/incoming_test_emails/outlook/autoreply_incoming_outlook_email.emlComment.is_autoreply(Mail.read('test/fixtures/incoming_test_emails/outlook/autoreply_incoming_outlook_email.eml')) -- let's put this in https://github.com/publiclab/plots2/blob/master/test/unit/comment_test.rb !Hey all, just letting folks know I am attempting to solve this issue so it's a work "in progress". Thanks!
thank you, much appreciated!!!
On Sun, Aug 4, 2019 at 12:51 AM enviro3 notifications@github.com wrote:
Hey all, just letting folks know I am attempting to solve this issue so
it's a work "in progress". Thanks!—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/5842?email_source=notifications&email_token=AAAF6J2XIDK3TID36KCEGKTQCXHRVA5CNFSM4HUCCSXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PTZUY#issuecomment-517946579,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAF6J2XVSHP3PMP6ZOWJEDQCXHRVANCNFSM4HUCCSXA
.
Related: #6273
Here's how discourse forums handle it, and they'd be well-exercised:
Docs: https://meta.discourse.org/t/configuring-reply-via-email-e-mail/42026
auto_generated_email_error: happens when at least one of the following criteria is matched: ...Since there is no standard to identify automatic emails we have to use regular expressions to match the most commonly used words and headers. [...]
Thanks, @patcon, this is really helpful. With some of these means of identifying auto-replies, we can develop some new features. However, also noting that @enviro3 in #6137 actually captured some real auto-replies to build our filters around, and began integrating them into a PR there.
That, combined with the observation from Discourse:
the
precedenceheader is set to:list,junk,bulkorauto_reply
the email is frommailer-daemon,postmasterornoreply
any of the headers contain:auto-submitted,auto-replied,auto-replyorauto-generated(non exhaustive list).
should be something we can build the filter around. I'll see if I can help @enviro3 to rebase #6137 cleanly to build on. Thanks all!
OK, i worked a bit on this, and used @enviro3's collected samples of autoreplies from Outlook, Yahoo, and Gmail in addition to @patcon's collected properties to filter for, and wove them together into a Comment.is_autoreply() function.
expanded on @enviro3's tests to create tests to properly identify autoresponses and non-autoresponses; once those properly run, i have filtering code ready to test against the sample emails. Then we can use that filter when processing received emails.
I hope this is resolved, but we'll have to wait and see -- it's a pretty complex little chunk of code. But all of these contributions were critical in solving this issue, so THANK YOU! 🙌 ❤️
And noting that, since the basic mechanism is built now, we can continue to add more sample emails from other email systems, and more precise mail filters, building on #6289 as we go.
Very cool!!!!!!!!
Thanks all
On Mon, Sep 16, 2019, 4:23 PM Jeffrey Warren notifications@github.com
wrote:
And noting that, since the basic mechanism is built now, we can continue
to add more sample emails from other email systems, and more precise mail
filters, building on #6289 https://github.com/publiclab/plots2/pull/6289
as we go.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/5842?email_source=notifications&email_token=AABHNHYDTXGPJVQ2PIQQWBTQJ7TMFA5CNFSM4HUCCSXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62M3MY#issuecomment-531942835,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABHNH2ODN3XK7Z5Y6CZJNTQJ7TMFANCNFSM4HUCCSXA
.
6289 was just merged, potentially solving this. Just wanted to say thanks to:
- @bronwen9 and @ebarry for clearly identifying and describing the issue, with examples
- @enviro3 for carefully and thoroughly collecting sample emails and building tests around them
- @patcon for finding the filter terms to look for
I hope this is resolved, but we'll have to wait and see -- it's a pretty complex little chunk of code. But all of these contributions were critical in solving this issue, so THANK YOU! 🙌 ❤️
Thank you @jywarren for wrapping this up! much appreciated