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

  • SEARCH
  • Home
  • 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 7699503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:29:38+00:00 2026-05-31T22:29:38+00:00

I’m trying to parse an email which had the following lifecycle (dummy example): Two

  • 0

I’m trying to parse an email which had the following lifecycle (dummy example):

Two days ago :

from : a@a.com

to : b@b.com

Subjet : Hello !

Yesterday :

from : b@b.com

to : a@a.com

Subjet : Re : Hello !

Today :

The mail is forwaded to c@c.com.
I have access to this mailbox and I’m able to retrieve the email via php and imap functions. I’m now able to parse the mail, and get the following informations:

from : a@a.com

to : c@c.com

Fwd : Re : Hello !

Is there anyway i can get the history of that email ? I would like to be able to display something like :

Mails history:

  • From a@a.com to c@c.com – Fwd : Re : Hello ! -Today
  • From b@b.com to a@a.com – Re: Hello ! – Yesterday
  • From a@a.com to b@b.com – Hello ! – Two days ago

edit : to be more accurate, the only thing I really do need to get is what happend to the mail just before it was forwaded to c@c.com (in my example, sent from b@b.com to c@c.com). I do not really need to get what happend before.

I have searched on the Internet for a pretty long time, but since i’m not that fluent in English, I probably didn’t use the best query…

Thanks for your help !

  • 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-05-31T22:29:39+00:00Added an answer on May 31, 2026 at 10:29 pm

    Unless the information is contained in the mail itself, no.

    You can look at the raw mail, including headers and raw body, to see what’s in the mail. If it’s not in there, and you don’t have access to the other accounts it went through first, then you can’t get the history of the message.

    Messages can contain headers like this:

    Message-Id: <6F995D33-8CF3-4F49-AA6A-9D59B4779CCE@example.com>
    In-Reply-To: <795EDCA1-7FD4-429C-88E9-26A85C442A5B@example.com>
    References: <b2hxc23ycjm05kradmfswofk.1332762974483@email.example.com> <D37FF604-43A2-42F8-AD11-2F2012D2E8B7@example.com> <795EDCA1-7FD4-429C-88E9-26A85C442A5B@example.com>
    

    This is only really useful if you have access to the original messages referenced in these headers. If all you got is the last mail in the chain, this is not very useful.

    Your best bet will be to look for quoted content inside the mail, like:

    > On 2012/03/24, b@b.com wrote:
    
    > ...
    
    >> On 2012/03/23, a@a.com wrote:
    
    >> ...
    

    There’s no standardized format for these lines though, each email program inserts its own version, sometimes user customized, sometimes localized. So they’re hard to parse out reliably.

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
I have a text area in my form which accepts all possible characters from
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into

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.