[imp] Rendering-problem with multipart-mails
Michael Gröne
michael.groene at zew.uni-hannover.de
Fri Jul 2 11:45:48 UTC 2010
I tested the following script on our developement-system (physically
real) and on the productive-version (virtual machine):
----
<?php
echo microtime();
echo "<br>";
echo microtime();
?>
----
On the developement-system the two values are *always* different, on
our productive system they are always the same - it makes me wonder why.
My workaround is to call usleep(1) before calling microtime(), which
results in an unique Content-ID for HTML- and other Parts.
Have you a less dirty solution? ;)
Greets,
Michael
Am Fr 02 Jul 2010 11:32:18 CEST schrieb Michael Gröne
<michael.groene at zew.uni-hannover.de>:
> Why doesn't the function setContentID() return a unique ID?
> -----
> ./lib/Horde/MIME/Part.php:
> -----
> function setContentID($cid = null)
> {
> if (is_null($this->_contentid)) {
> $this->_contentid = (is_null($cid)) ?
> (base_convert(microtime(), 10, 36) . '@' . $_SERVER['SERVER_NAME'])
> : $cid;
> }
> return $this->_contentid;
> }
> -----
>
> Our usual (not working) install is running on a virtualized Ubuntu
> with PHP Version 5.2.10-2ubuntu6.4.
>
> Do you have got any ideas?
>
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
More information about the imp
mailing list