Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7718663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:13:16+00:00 2026-06-01T03:13:16+00:00

My application receives email from users. A response from gmail, for example, comes in

  • 0

My application receives email from users. A response from gmail, for example, comes in like this:

This is some new text

On Sun, Apr 1, 2012 at 3:32 AM, My app <
4f77ed3860c258a567aeabf8@myapp.com> wrote:

> Original...
> message..

Of course, this treatment varies from client to client.

Right now I am identifying the ‘4f77ed3860c258a567aeabf8’ and throwing out everything after, because I know what email address they’ve sent to. This is not a general solution but works for my purposes, except for when there’s a line break in the “Original message” line, like in the above example.

Is there a better, standard way to strip out past message’s from a user’s reply to an email?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:13:17+00:00Added an answer on June 1, 2026 at 3:13 am

    If you want a 100% way to remove anything except the most recent post, compare each character from the new message and the previous one. If you don’t want to write your own diff parser, check out this lib.

    https://github.com/cemerick/jsdifflib

    Or if you want a lightweight algo check this one out

    http://ejohn.org/projects/javascript-diff-algorithm/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I`m developing an application which receives data from my GPS device like coordinates, speed
I have a server application that receives some special TCP packet from a client
I need to perform some action when my application receives focus. I've tried hooking
Currently I have an application that receives an uploaded file from my web application.
I'm designing an application that receives information from roughly 100k sensors that measure time-series
I found that some application, like GoodReader or Docs to Go, once installed can
Is it possible and if yes, how to start application directly from email, or
I have a problem sending email from a linux machine. The application sends several
I received the email from Android Market announcing the new content rating policy and
My application allows users to create and modify files. I would like them to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.