Automatically strip email signatures from discussions created via email
It's fine for private discussions, but it would rock for ones we want to publish!
Discussions are closed to public comments.
If you need help with Tender please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

1 Posted by Kyle Neath (Git... on 13 Jan, 2009 09:07 AM
Do you have any examples of signatures that aren't getting parsed out? We strip out some signatures, but I think we might be missing some patterns.
2 Posted by tobi on 13 Jan, 2009 02:50 PM
Apple mail's signature reads like this:
On 13-Jan-09, at 9:17 AM, Shopify Support wrote:That would be great to get stripped out but it's just one example.
Here is a pie in the sky idea: Can't you guys start a (quick) open source github project that contains a small one method library that takes email input and returns a well formed email with a header, body and signature split in three parts? I'm sure you guys have this already. Setup a nice test harness and allow the ruby community to improve it over time so that eventually it's able to deal with all email client's intricacies.
This is essentially what we did with Active Merchant and it's been great.
3 Posted by Kyle Neath (Git... on 13 Jan, 2009 09:10 PM
Ah, you're talking about the first sentence that Mail adds. Yeah, I think we need to figure out a better way to strip that out.
P.S. Our whole email parsing program is actually on GitHub :) http://github.com/entp/astrotrain/tree/master
4 Posted by rick on 14 Jan, 2009 09:18 AM
Hey, I needed my X for today... Here's the date parsing code and its specs.
It hasn't been deployed quite yet.
Also, we don't actually strip signatures, we strip previous replies from tender notifications. This usually removes the signature too. I've been told there's a spec for signatures, or at least a common convention:
I'd like to get that into Astrotrain at that point too.