E-mail trimming - parsing

Before I start, please forget my ignorance when it comes to MIME and basic mail structure.
I'm looking for a general way to tell the difference between the latest e-mail reply vs all of the extra replies which are stored in the text body.
For example ThunderBird puts giant
------------------------ Forward -----------------------
or
------------------------ Reply -----------------------
banners, but g-mail doesn't seem to. I read this RFC but it doesn't seem to cover what I want. I'm also looking for a way to remove signatures from e-mails but I'm assuming there is no standard when it comes to handling them.

As far as I know, there is no specification to that. So, the only way to do that would be to track the message ids and then diff the messages against each other, to find out, which parts were part of an earlier message.
That is what the mac mail client does.
But that does not seem to be, what you had in mind.
So: as to my knowledge: There is no magic marker in the body for what you are planning.
As for the signature:
It is good practice to have a double minus + newline before the signature. But you cannot always rely on that.

Related

Why do Microsoft messageRule IDs periodically change

I have a script that queries Microsoft Graph for the mail rules of each user. Each mail rule comes back with an ID which I then store for tracking purposes. However these rule IDs periodically change. I haven't been able to determine what causes this. Is there a predictable way to identify mail rules?
Sadly, you aren't the only one to have this problem. This post has been open for over a year on MS's Q&A Board: messageRule ID not constant?
This answer may provide some insight as to why this is happening: Message-Id header changing when sending via ActiveSync - Answer
Unfortunately, it seems like this is a shortcoming of Outlook (and other MS systems for that matter). Perhaps getting more traction to this issue can finally get MS to shed more light on this...

Receiving email address through Amazon Connect/Lex?

I'm currently trying to set up a bot to collect email address via Connect/Lex using voice. I know this is near impossible to do without spelling it out character by character. I've tried setting custom slots, using AMAZON.EmailAddress, etc, but all options seem to mishear a lot of characters. Has anyone had any luck in implementing this? Thanks!
Sorry Kenny, using AMAZON.EmailAddress is the best approach here.
Unfortunately you are always going to run into issues with email addresses as an address can effectively be a collection of random characters. If you are expecting a particular pattern of email addresses (such as from your company) then you can create your own custom slot with these examples which might have better luck.

Anatomy of a Porch.com SMS lead alert

I would like to design the SMS referral link for a lead alerts application. (So the pro would receive the SMS message on their device with a link to click through to the job request details.) I'd like to make it secure and scalable. The link below arrives in the SMS as a shortened URL. That much I understand.
Porch.com does something similar and I'd like to know what the strategy is behind each segment in the URL (or your best estimation). Can someone help me understand?
Here is an example: (Thanks Porch.com)
https://porch.com/pro/project/3fd55669-d7cf-4655-892e-252080c34a79?c=50145918&email=12345#yahoo.com&referrerSource=sms
Twilio developer evangelist here.
First of all, this isn't really a question for Stack Overflow. This is a place for asking questions about code that doesn't work in order to get it to work.
Having said that, the more I looked at the URL as I was commenting on this question, the more I feel I worked out. This is my idea of what the URL is saying.
Here's the URL again: https://porch.com/pro/project/3fd55669-d7cf-4655-892e-252080c34a79?c=50145918&email=12345#yahoo.com&referrerSource=sms
The random string in the URL, 3fd55669-d7cf-4655-892e-252080c34a79, looks like it is the identifier for the project itself. It's long and random, like a uuid, so it would be hard to guess, but can uniquely identify the project.
The email is presumably the email address of the pro that the SMS was sent to, so that the return on sending SMS projects to them can be measured.
The referrerSource is then used to measure how each of their referring sources is performing.
The only parameter that is impossible to really guess at is the c. Removing it (in fact, removing any or all of the query parameters) didn't change the result of loading the page. This implies that it is just another tracking parameter.
Hope that helps.

prevent outlook stationery from showing up in my email (Outlook 2007)

There are some people in my office who insist on using cute stationery and some of it makes messages difficult to read. I really just want to read email on a white background with no distractions. Is there a way to disable stationery on incoming mail in Outlook? (Without switching to "plain text only")
yeah, I yanked that description from here
but it is very accurate however I've had no luck in finding a solution. Most solutions I see solve the problem by pushing out something to a bunch of users.
like : this
I don't really have the authority to do that. Not only that, that only prevents ME from setting stationery.
this has been asked before to no avail:
I don't have time to deal with this, so hopefully there is something I have overlooked.
Without switching to "plain text only" I want to be able to change a setting on my computer (it can be. a reg hack, I don't care) that will prevent outlook stationery from showing up in my email
it would also be helpful to know how to do it for Outlook 2003 as well.
No such setting/reghack exists. you would need to override the Item_Open event and change the message format from html or RTF (if either are detected) to Plaintext. This is the only way you could reliably strip out all the formatting junk without losing the text.
that or write a custom parsing agent (which would seem to be a bit harder).
either solution involves coding an addin to handle the open event and change the message format before displaying the message.
I'm not aware of a setting, but could you copy the text and paste it in Notepad?
I use that all the time to remove obnoxious formatting.

Is there a semi-standard way to associate a URL with an IRC user?

I'm in the process of doing some identity consolidation, so I'm providing URLs to me at various locations on the internet. I'm quite active on IRC, so this naturally lead me to wonder whether there was a way to provide a link to my IRC presence.
This lead to me finding http://www.w3.org/Addressing/draft-mirashi-url-irc-01.txt which appears to be a draft of an RFC for associating URLs with IRC, which suggests that I would be
irc://irc.freenode.net/DRMacIver,isnick
Which seems a little on the lame side. Further, this RFC draft has very thoroughly expired (February 28 1997). On the other hand it seems to be implemented in chatzilla at least:
http://www.mozilla.org/projects/rt-messaging/chatzilla/irc-urls.html
So does anyone know if there's a superseding RFC and/or any other de facto standard for this?
I've been an IRC user for many years and I have never heard of any standards that allow you to do this (other than the RFC you mentioned).
I've always found IRC a very tricky place to keep track of users since it is such a simple thing to set up a bouncer and change your ident so easily.
There's a newer draft https://datatracker.ietf.org/doc/html/draft-butcher-irc-url-04 that looks like it's basically the same except using isuser instead of isnick. It seems that isnick is more widely supported so it's probably better to use that.

Resources