title: Accessing ddeboer/Imap Mail Header
body: <p>I'm accessing a mailbox using <a href="https://github.com/ddeboer/imap" rel="nofollow noreferrer">ddeboer/imap</a>. Connecting to the Server and retrieving Messages ist not a problem. But <code>$message-&gt;getHeaders()</code> returns the following (shortened Version):</p>
  
  <pre><code>Ddeboer\Imap\Message\Headers Object
  (
      [storage:ArrayIterator:private] =&gt; Array
          (
              [date] =&gt; Fri, 5 Jul 2019 07:00:47 +0200
              [subject] =&gt; Test Mail
              [message_id] =&gt; &lt;108a4850-284e-170a-2c7d-b6f9g5218202@test.de&gt;
  
              [fromaddress] =&gt; "Test" &lt;test@test.de&gt;
              [from] =&gt; Array
                  (
                      [0] =&gt; stdClass Object
                          (
                              [personal] =&gt; Test
                              [mailbox] =&gt; test
                              [host] =&gt; test.de
                          )
  
                  )
  
              [deleted] =&gt;  
              [draft] =&gt;  
              [msgno] =&gt; 1
              [maildate] =&gt;  5-Jul-2019 07:00:49 +0200
              [size] =&gt; 223715
              [udate] =&gt; 1562302849
          )
  
  )
  </code></pre>
  
  <p>How am I supposed to access the Information e.g. <code>udate</code> or <code>from-&gt;mailbox</code>?</p>