title: How to fetch a GMail message using GMail URL Hash in Zend Framework
body: <p>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:</p>
  
  <pre><code>$storage = new Zend_Mail_Storage_Imap($imap);
  
  for ($i = 1; $i &lt;= $storage-&gt;countMessages() &amp;&amp; $i &lt;=10; $i++ ){ 
      echo htmlentities($storage-&gt;getMessage($i)-&gt;subject);
      echo $storage-&gt;getMessage($i)-&gt;getContent();
  }
  </code></pre>
  
  <p>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:</p>
  
  <p><a href="https://mail.google.com/mail/?shva=1#inbox/137261701dcae0a6" rel="nofollow">https://mail.google.com/mail/?shva=1#inbox/137261701dcae0a6</a>
  The part after the last slash is the hash <strong>(137261701dcae0a6)</strong> which I suppose is in hex.
  How can I use this hash to fetch the message using Zend Framework? Please help.</p>