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 7904629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:10:15+00:00 2026-06-03T10:10:15+00:00

I am using Zend Framework for fetching GMail messages. I have been able to

  • 0

I am using Zend Framework for fetching GMail messages.
I have been able to authenticate and fetch all the messages using the zend framework using following code:

$storage = new Zend_Mail_Storage_Imap($imap);

for ($i = 1; $i <= $storage->countMessages() && $i <=10; $i++ ){ 
    echo htmlentities($storage->getMessage($i)->subject);
    echo $storage->getMessage($i)->getContent();
}

But I want to fetch mail using the hash which usually appears in the GMail URL when we read a message. For example in following URL:

https://mail.google.com/mail/?shva=1#inbox/137261701dcae0a6
The part after the last slash is the hash (137261701dcae0a6) which I suppose is in hex.
How can I use this hash to fetch the message using Zend Framework? Please 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-06-03T10:10:19+00:00Added an answer on June 3, 2026 at 10:10 am

    The Google link you provided (https://mail.google.com/mail/?shva=1#inbox/137261701dcae0a6) points to the whole conversation (entire thread).

    137261701dcae0a6 is Gmail’s thread-id in hex.

    It is possible to use X-GM-THRID Gmail’s IMAP extension to search for messages in this thread.

    I don’t know Zend, so I can’t help you with the code, but IMAP communication looks as follows:

    C: 20eeec4bb07a44be UID SEARCH X-GM-THRID 1401511523692802395
    S: * SEARCH 13622
    S: 20eeec4bb07a44be OK SEARCH completed (Success)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi all I am using Zend framework for my PHP project. Basically I have
So I'm using zend framework and I have this code in a file called
I am using Zend Framework and have been trying to do a joined query
I am developing a web application using zend framework. For select statements I have
I have a PHP MVC application using Zend Framework. As presented in the quickstart,
I'm trying to develop a site using Zend Framework, but i have a problem:
I'm using Zend framework, and most of the action controller that I have return
I am using Zend Framework, I have a layout.phtml which renders navigation.phtml. How can
i'm using Zend Framework classes and i don't get code completion for them because
Hi i'm using zend framework and I have a problem on delete cascade. I

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.