[Tickets #7671] Re: Problem with Compose and attachment

bugs at horde.org bugs at horde.org
Tue Dec 23 11:54:16 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7671
------------------------------------------------------------------------------
  Ticket             | 7671
  Updated By         | rsalmon at mbpgroup.com
  Summary            | Problem with Compose and attachment
  Queue              | IMP
  Version            | HEAD
  Type               | Bug
  State              | Resolved
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


rsalmon at mbpgroup.com (2008-12-23 06:54) wrote:

> So long as the same problem doesn't happen with that code...

I found the problem.
It comes from MIME::generateRandomID(). The random ID generated is not  
uniq. When you call this function several time within a sort period of  
time, you always get the same random ID.

quick fix which works here :
     function generateRandomID()
     {
//        return base_convert(dechex(strtr(microtime(), array('0.' =>  
'', ' ' => ''))) . uniqid(), 16, 36);
         return md5(microtime());
     }

hope this helps.







More information about the bugs mailing list