Imap_Client / streams.

Michael J Rubinsky <[email protected]>
Newsgroups gmane.comp.horde.devel
Message-ID <20150505103141.Horde.BikXSVmvTyzbwd2RgDgZ05a@h4.theupstairsroom.com>
I'm having a hard time trying to track down some memory usage issues  
I'm seeing and in doing so, I'm trying to better understand what is  
going on in HIC;  When fetching a specific mime part, like e.g. an  
attachment, does HIC always use streams, or does it put the entire  
part's contents in memory at some point? E.g:

$bodypart_params = array(
   'decode' => true,
   'peek' => true
);
$query->bodyPart($mime_id, $bodypart_params);

$fetch_res = $this->_imap->fetch(
   $this->_mbox,
   $query,
   array('ids' => new Horde_Imap_Client_Ids(array($uid)))
);


If $mime_id is some large attachment, will it ever be placed  
completely in memory or is at contained in a temporary stream at all  
times?

-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
smime.p7s (application/pkcs7-signature, 5.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.